https://discord.gg/botpress logo
Unusually high LLM usage
# 🤝help
s
40 users, 400 messages, 750 LLM calls, 3 average bot messages per session - 2 of these are Hi(s) and Thankyou(s) - Using GPT 4o (Nov), got $11 in less than 2 days? Can I somehow check these LLM calls? Also, any chance the agi/improvement plugin is the culprit? (Because I know agi/connor uses a lot of table quota for some weird reason) https://cdn.discordapp.com/attachments/1389852932345692201/1389852932866048091/image.png?ex=686620e9&is=6864cf69&hm=98a0be46319698e6bbfe2ea79a275a1882de8edba86becaca38859eb9d66f079&
w
I don't think it comes from agi/improvement , just from autonomous node running with gpt4o
Jul 2, 2025, 1:25:24 PM [webchat] Sending outgoing message { text: 'Thanks for visiting!' } Jul 2, 2025, 1:25:24 PM [e5a43aca04] [dm] : Transition from (flow:Conversation End) [node:Handler] to [node:End] Jul 2, 2025, 1:25:24 PM [e5a43aca04] [dm] : Saved states: agentsConversationVariables, context, session, conversationVariables, conversation (Conversation: conv_01JZ53G31FJD7XCVJSG5DS365R) Jul 2, 2025, 1:25:24 PM [e5a43aca04] [dm] : Session has been reset for the conversation. Jul 2, 2025, 1:25:28 PM [6dd54ad2c6] [dm] : Bot action "tablesRecomputeRows" received. Jul 2, 2025, 1:25:31 PM [6dd54ad2c6] [dm] : Billed Tokens: [object Object][object Object][object Object][object Object][object Object] | Total Tokens: [object Object][object Object][object Object][object Object][object Object] | Billed Cost: $NaN | Total Cost: $NaN | Cache Savings: 0%
Also This ^ is weird as well. Not a single instance btw
p
Could you provide the metrics for one demo conversation? Also, you might want to look how many token your autonomous node prompt requires.
s
Do you guys have a video on this? I think Botpress team needs one if you don't. Bot builders here need to be more aware where there AI spend is being consumed. https://cdn.discordapp.com/attachments/1389852932345692201/1390218481605283891/Screenshot_2025-07-03_113037.png?ex=6867755b&is=686623db&hm=c5f3bc3256b4b2595ca7a13d9ac0e60a8aec792de4cd72b424c6b125b7a602c1&
agi/connor needs to be optimized, why does it have to be using one of the expensive models (by default) for simple tasks, and WHY does it consume hidden table rows. I'm sure 90% of users don't even realize these things. https://cdn.discordapp.com/attachments/1389852932345692201/1390219992925999176/image.png?ex=686776c3&is=68662543&hm=050892d0f010e596efe7f34b7fd78ad926b2f3351bc5e3bd270bc99c24e021ec&
Another funny thing about it, it doesn't even let you use code 🤷‍♂️
OR the LLM even 😵‍💫
p
The conversation table has a row factor of 30 because conversations can be large and the table holds a lot of data.
Can you elaborate what exactly the video you are looking for would explain?
s
Shouldn't this be decided by the user though? I have 200 rows actually occupying ~3000 worth of rows because of this factor. The conversations are not even more than 5 6 messages mostly. The LLMs model for computation as well. $7 in 3 days just because I'm not allowed to change the model. projecting $126 by the end of month.
A detailed AI spend analysis? Or agi/connor related (since its owned by botpress) Most builders won't even realize their $126 bill came from 20  background tool calls, not the two messages they wrote. By showing exactly where costs accumulate and how to control them, the video would save new users money and cut support tickets about “mystery spend.”
Hey buddy, do you know how I can replicate agi/connor but with my own configuration? I have duplicated a table, but I don't know how to connect the hook to the table
w
I agree this consumes so much AI 😅
@prehistoric-airplane-85682 as an idea for improvements (i'll write a post in #feature-requests as well), it should definitely leave the choice of the model to the user, or at least use "fast model"/"best model" as default model (and not gpt4o only, because just like @square-evening-72346 the computed columns of this table is 95% of my AI spend -- I spend hours optimizing AI spend/prompts/models and all the work get ruined by the single configuration i cannot change. The integration is very useful and i do want to use it but not at this cost)
4 Views