Kimaya kapoor: Initiate a session and send messages to a designated Dialog Task

My name is Kimaya Kapoor, and I’m eager to set up a complete conversation using a single dialog task via the API. I successfully identified the user intent with findIntent in my first attempt, but I’m unclear on how to send messages to that specific dialog task to get a response. Despite searching the documentation and other resources, I haven’t come across any useful guidance.

Thank you!

@kimayakapoor , If your bot only contains a single dialog task, you can simplify the user experience by starting the conversation directly from that dialog. You can do this by triggering the dialog task using the OnConnect event. This allows you to display greeting messages and guide the user on the next steps right away which you have set inside the dialog task.

If you prefer to trigger the dialog task dynamically based on user input, you’ll need to train it with specific utterances. Without training, the dialog cannot be invoked dynamically. To do this, go to the Train section of your dialog task in the builder, add relevant utterances, and initiate training.

For more details, refer to the following documentation:

2 Likes