https://discord.gg/botpress logo
Is the cost per message tracked in real time?
# 🤝help
t
I need to calculate my cost per message on average and wondering what the best way to do this is? Does Botpress track this in real time in a variable I can reference and send out via webhook at the end of every conversation?
l
This might be helpful: https://botpress.com/ai-spend-calculator Keep in mind that actual costs vary with the model, prompt length, and token usage, so this is a rough estimate
you can also see the cost of each message in the logs
t
Great thank you! Does this also include the AI token cost?
l
I believe so!
w
in the logs you can see the ai cost for individual ai actions such as the main prompt and other sub-tasks such as the AI summary
then an aggregated sum at the end
3 Views