My AITask is not running properly. Could you help ...
# 🤝help
s
So, I have been setting this bot for some time now, because I don't want to use templates and actually learn. I still dont have any real coding knowledge. However, I gave my AI Task prompts about all the information, but once I ask him about the information, it shows no content matched the query. Could you help me make it actually take information that I provided him? Check pics for more info.

https://cdn.discordapp.com/attachments/1132419653394768013/1132419653646434364/Screenshot_2023-07-22_at_23.08.16.png

https://cdn.discordapp.com/attachments/1132419653394768013/1132419653986156634/Screenshot_2023-07-22_at_23.08.41.png

https://cdn.discordapp.com/attachments/1132419653394768013/1132419654413983887/Screenshot_2023-07-22_at_23.08.50.png

https://cdn.discordapp.com/attachments/1132419653394768013/1132419654648873050/Screenshot_2023-07-22_at_23.11.02.png

@rich-battery-69172 @User
also, here is my ai task input:

https://cdn.discordapp.com/attachments/1132419653394768013/1132421134822944788/image.png

d
What if you ask the bot the answer the question of the user? For now, your prompt seems to let him know that he should give a detailled response, while you are expecting a question to his answer
on the same aspect, do you think full history as ai input is a good idea? may be you should try with just the last question, in fact it should be event.state.preview (you can check the doc for that), and then add the event.state.session.fullhistory inside the instructions. Just my point of view
s
hmm, tbh i dont really understand AI Task as much. This is what I seen others do. Would you mind me asking you aa few questions in the dm?
would help a lot to have someone explain how to use this feature in full capacity, understand if you dont want to.
also, what doc do you mean?
d
yes you can ask, no problem
by docs, i mean mainly tutorials, videos tutorials for example, there is one specific about ai task on botpress youtube channel
s
yeah I am watching it for the whole day haha, without coding ever, hard to understand what he puts inside...
d
hum, i get it.
s
if any beginners like me need a solution: Create a knowledge base, take the knowledge base variable and put it in AI Input ( {{turn.KnowledgeAgent.answer}} ), and give your AI task instructions to your preferred liking:)
2 Views