Add custom payload in Prompt (in Action and Parameters section) Dialogflow

817

Simply try this:

{
  "message": "$VegPizzaNames"
}
Share:
817
Ronak Thakkar
Author by

Ronak Thakkar

Experienced Android Developer with a demonstrated history of working in the information technology and services industry. Skilled in SQLite, Java, Kotlin, and Android Development. Strong engineering professional with a Bachelor's degree focused in Computer Engineering.

Updated on December 13, 2022

Comments

  • Ronak Thakkar
    Ronak Thakkar over 1 year

    Query Description: I am working on a chatbot feature in a flutter app in which I have used Dialogflow SDK to implement the same. I am dynamically generating UI (Widgets)based on the response of Dialogflow so that user will not have to type everything manually and they can just give the answer by taping on the given options.

    To create the widgets dynamically I am using Custom payload response as shown in the image.CustomPayload to create widgets dynamically

    This is working absolutely fine. The problem which I'm getting is, I want to add such custom payload in Prompt type response as shown in below image.Custom payload in prompt

    Whatever I am adding in Prompt is not going in payload object. How can I add JSON(custom payload) in Prompt?