https://discord.gg/botpress logo
Limit for AI processes
# 🤝help
e
I had a talk with my client today and when we discussed about the costs, he asked me about cybersecurity and costs in general. He made a point that some people may use the robot with evil intent to waste company's money. So im asking for a feature that limits AI spend for processes. For example, maxium amount a bot can use for its processes is $0,10 per message. When a user asks a question, the bot scans /analyses predicted cost. And if that process price limit is exceeded, it guides the conversation in different direction or choses a different approach to process that task.
l
Hey @eager-lawyer-39255 A direct feature to set a maximum AI spend limit per message is not currently a built-in functionality. However I do understand the value this could potentially provide so I would love for you to drop this in #feature-requests so the team can take note! As I had mentioned in #🌎general You can manage your monthly billing limits in your dashboard
e
Yes! I've dropped this in the #feature-requests . I understand about the monthly billing limits. But what if someone asks some complicated or weird question that the AI, while processing, drains all of the monthly budget. Is that theoretically possible? Is there some kind of safety or protection for cases like this in the botpress system?
w
In general, the costs associated with large language models (LLMs) depend on the input and output tokens, rather than the processing of the request. You can only work on output tokens; for input, you should count the words and ask the user to write less. However, is that really a good practice? The first step is to instruct the AI to provide concise responses by working on the prompt, defining guardrails, utilizing a knowledge base (KB), and using Botpress Agents. For more information, visit the [Personality Agent documentation](https://botpress.com/docs/learn/reference/agents/personality-agent) and the [Policy Agent documentation](https://botpress.com/docs/learn/reference/agents/policy-agent).
e
I was wondering. Maybe a solution to the AI spend limit, may be limiting chatacter and word count. Is that possible?
w
3 Views