https://discord.gg/botpress logo
AI Task not retrieving data from table
# 🤝help
g
I'm currently building a custom AI bot that should generate a price estimate for a t-shirt order, using data stored in a custom table I created in Botpress (named prix-t-shirt). Here’s the issue: I’ve created and uploaded the table successfully. The AI Task is supposed to search this table to retrieve the correct pricing based on user inputs (such as fabric type, sleeve length, quality, and quantity). However, during testing, the AI bot does not retrieve any of the values from the table, and instead either uses random prices or gives incorrect estimations. Thanks in advance 😄
p
AI Tasks are not designed to query a table, there are other cards to achieve this like the findRecords one. Hope this helps!
n
Try using Query Knowledge Bases too
g
Thanks @prehistoric-airplane-85682 And @narrow-planet-91101 ! SincE the bot needs to calculate a price based on informations found in a table, does the findrecords can work? Or the query knowledge base too? And if yes, where can I find how to use them (Newbie here 🥲)
p
You might need to use an Ai task after you've queried the table. Alternatively, Using and utonomous node would solve your issue as it can do both at once. Hope this helps!
3 Views