Ai task understanding issue
# 🤝help
s
Hi, I'm creating a bot which is supposed to recommend places if you want to make a trip. I setted some info capture cards and one of them is supposed to ask the possible client their maximum profit and other one asks client the total duration of the trip. The thing is, if I the client tells the bot their maximum profit is 2000 USD for a one month trip (just an example) the bot will recommend hotels that cost up to $500 per night which obviously doesn't fit the profit of the client. In the screenshot I share my code. If anyone can answer i'd really appreciate it

https://cdn.discordapp.com/attachments/1136411642687651950/1136411643119685732/Captura_de_pantalla_2023-08-02_183340.png

c
I think issue will be fixed soon check this out https://discord.com/channels/1108396290624213082/1135590661316415658
b
> if I the client tells the bot their maximum profit is 2000 USD for a one month trip (just an example) the bot will recommend hotels that cost up to $500 per night which obviously doesn't fit the profit of the client. Do you mean budget and not profit? I see you're writing this in Spanish so I could see this as a translation thing. One thing I'd suggest; maybe create a KB article for reference on how trips are planned budget-wise? The bot has no concept of budgeting so technically, $500 a night makes sense.
I don't know if you indicate anywhere else that these activities, for example, could also cost money.
s
yeah it's budget you're right
Hey @bland-kilobyte-76692 I created the KB article you told me about but how do I make the bot learn from that article and then answer based on that?
b
At the bottom of the cards panel is
Query Knowledge Bases
s
yeah
b
Add that to the appropriate card and then create your Query
s
what should I introduce in the query?
this is what i did

https://cdn.discordapp.com/attachments/1136411642687651950/1136422869648294038/image.png

To calculate how much to spend on a hotel, take 35% of your total budget and divide it by the amount of nights you're going to be staying in these hotels. So, For example: If your total budget is 4000 USD, you should take the 35% of that which is 1400 USD and divide that by the amount of nights you're staying, let's say 14. So you're going to try to spend around 100 USD per night in hotels. Activities also cost money so you should be spending 10-20% of your total budget in them. So if your budget is 4000USD, you should spend around 600USD on activities. This also depends on the duration of the trip. If its longer than 2 weeks you should be spending a bit more, about 25%. Before going on a trip you should investigate the costs of the activities you're gonna do and take them in consideration.
that's the KB I created
b
Oh you wouldn't need a KB for something that small. If you wanted to you could add a Web Search and point it at a site that has a lot of information on planning and budgeting vacations by region.
s
But is there a way to get the bot to analyze that small text and then answer correctly?
because I keep getting the same $500 per night hotels lol
b
their may be some contradiction or complexity in the task that's causing it to do this. You may want to implement a chain of thought workflow to streamline the task.
2 Views