Using AI Task Feature for Conversation Flow
# 🤝help
s
Hey team, I'm wanting to create a chatbot that asks a series of questions to qualify the user and stores their answers in variables in a table. For example - a dentist client. The user might ask a question about the pricing and the chatbot provides the answer but then asks a question back to the user about why they're needing to visit the dentist. They answer about a pain they're having and then the chatbot can ask a few more questions back to find out more information. With the AI task feature I have it working where it can do this once or twice but I want it to be an ongoing conversation where it can chat autonomously back and forth with the user. I also want to give the Chatbot a goal of where it's trying to move the conversation. In this example, it would be converting the conversation into a booked appointment. Is the AI Task card the best way to approach this? Or could there be a better way? If it is, how do you set up the workflow so that the conversation keeps flowing and doesn't end after an AI Task answer is provided.
g
I think Ai task is the best way to approach this (with Ai transition)
s
Cool and then do you just creating node after node to keep the conversation going? Aiming to set it up so that it remembers the context of the whole conversation
g
You should give the transcript of the conversation to the bot, in the Ai task input section of the AI task card if you want it to remember what it was talking about with the user : {{conversation.SummaryAgent.transcript}}
s
g
Do you mean the Ai asking questions and replying ?
The problem here if you want the bot to be able to ask questions and still answer the user's questions is to tell apart question from no question remaining on that topic
The best thing to tell apart without the user having to answer something would be to set a time for answering and if the user still hasnt written, ask a question
But the simplest way to do that would be to ask if the user got any questions left