Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
vighnesh2022
Partner - Contributor III
Partner - Contributor III

Qlik Sense Natural Language API doesnt return any nebula charts expect bar chart

Hi Team,

 I am trying to create chatbot in qliksense mashup using this tutorial. https://qlik.dev/embed/gen-ai/create-chatbot-nl-api/.  this tutorial uses this endpoint {qliksenseurl}/api/v1/questions/actions/ask to generate response either text or nebula js chart to show in chatbot. (https://help.qlik.com/en-US/sense-developer/February2024/Subsystems/NLBrokerAPI/Content/methods-post...)

I was able to follow tutorial and able to create chatbot which return nebula bar chart as response when ask by user but when I try to customize it to add other chart. It doesnt work.

I even tried with POSTMAN and it gave same result. I was able to retrive nebula bar chart but not others.

this are details I sent to this url:

method: POST

url endpoint: https://qliksense url/api/v1/questions/actions/ask

headers: 

headers: {
      Authorization: `Bearer token`,
      "Content-Type": "application/json",
      "qlik-web-integration-id": "web-integration-id",
    }
 
body: 
{
    "text""give me piechart of country and revenue",
    "app": {
        "id""d66d8e63-55a7-4794-8ff9-4a94a42ddf3b",
        "name""CRM"
    },
    "enableVisualizations"true,
    "visualizationTypes": [
        "piechart"
    ]
}
 
Labels (4)
0 Replies