Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
AyeshaChhapra
Contributor II
Contributor II

How to apply user filters in Qlik Narrative API responses?

I’ve been working with the Qlik APIs for narrative responses and noticed something I can’t resolve.

  • Current API in use: /api/v1/questions/actions/ask
    Docs

  • Previously used API: /api/v1/nl/query
    Docs

→ These endpoint doesn’t seem to provide an option to pass filters.

The issue is that I want the narrative response to reflect user-applied filters, but currently the APIs only return unfiltered data values.

 

Labels (3)
2 Replies
Karen763Purvis
Contributor
Contributor

Hello! MyWisely

Qlik’s narrative API endpoints don’t directly support user-applied filters, so responses often reflect unfiltered data. To work around this, ensure filters are applied within the app context or use session-based selections. You can also explore passing filter logic through the context field, though results may vary. For precise control, consider filtering data before sending it to the narrative layer. 

sienjoe5
Contributor
Contributor

Applying user filters in Qlik Narrative API responses involves passing the appropriate filter conditions directly within your API request so the returned narrative is tailored to the user’s selected data. bright luggage swing tags