The chatbot is saying the AI task is complete, but...
# 🤝help
i
Hi everyone. I have my chatbot setup where it is supposed to run an AI task for me after the user submits an answer. For example, the chatbot asks if it's answer resonates with the user, the user then selects yes and the chatbot is supposed to run the AI task then provide a solution in the chat. However it is saying AI task complete but not posting the answer in the chat. I have posted 3 screenshots. Image 3 is the whole card, it is supposed to post an image, run the AI task, post the AI task output in the chat, then ask a single choice question. Image 1 is the AI task Image 2 is the output i get in the chat. Does anyone have any solutions? Much appreciated.
a
Hey @incalculable-rose-89731, what's in the aiagetate variable? If it contains a lot of text, you could be going over the 4,000 char limit in the prompt, in which case the AI task gets skipped.
i
Hey @acceptable-kangaroo-64719 thanks for replying. How do i check what's in the aiagetate variable? One thing i've noticed is it is giving me two responses fpr the aiagitate. If you look at the attached screenshot, there should only be one response after the user inputs "customer service". However it is outputting two. Perhaps that is whats causing the issue? any assitance is greatly appreciated 🙂
a
It is probably because knowledge is turned on for your "Agitate" node. Unless this option is enabled on the KB agent, the agent will jump in and provide an answer if it has one
i
ok, so where should i paste this code: {{turn.KnowledgeAgent.answer}} ?
i do have the knowledge agent enabled FYI
i just turned the knowledge agent off, and now i do not get two responses - which is good. However the original probelm i started with is still there. The AI task is running but it is not putting the task output in the chat. Are you aware of any other solutions?
a
You can put it inside the AI task prompt or as an input if you want to pass the knowledge base answer to the AI. Or you could put it in the capture card if you want to tell it to the user and then offer them a yes/no choice
i
@acceptable-kangaroo-64719 I have put that code in the prompt and i am still getting the same issue. Are you aware of what else the issue could be?\
a
you need to put it in the AI Task Input part
i
@acceptable-kangaroo-64719 thank you, that has assited with preventing two responses from the chatbot. However it is still giving me the original issue. If you look at the screenshot below, it is sayin no valid answer found. But if i look at the event debugger, it is putting the answer in the correct variable 'AI Solution'. Any idea on what to do next?
a
the "No valid answer" referrs to nothing relevant being found in the knowledge base. Do you have relevant information in your bot's knowledge base?
i
@acceptable-kangaroo-64719 Yes i do, i even siumulated a conversation where i asked and provided answers for the exact questions im asking the chatbot. You can also see in the screenshot above that it is actually coming up with a response, it is just not posting it in the chat and instead putting it in the variable 'AISolution'
a
if the aiSolution variable has the right info, then all you need to do is make a text card and put
@aiSolution
. Or write
@aiSolution
in your capture card question area.
i
thank you gordy, that has worked. I appreciate your help, take care 🙂
21 Views