Skip to content
Hypamoon

Botpress spend per conversation each week: Know which conversations cost the most.

With the spend table from the Botpress guide: a weekly overview by day and bot, and an email when one chat costs more than you set.

Example

A weekly spend overview from my Botpress spend table, and an email when one conversation costs more than I set.

Most expensive conversations

ConversationBotTurnsCost
10482Support bot640.91
10517Support bot220.34
10530Booking bot150.12

Example data, cost in the currency of your plan

  • Every Monday you get the spend of last week from your spend table, per day and per bot, with the ten most expensive conversations and a link to each.
  • When a single conversation passes the amount you set, you get an email the same day, so you can look at it while it is still running.

From your Botpress account As a list

Paste this in your chat

Your chat builds it and runs it every time, on your own Botpress data. No account needed to try.

The sentence

With Hypamoon, every Monday, email me last week's spend from my Botpress spend table per day and per bot, with the ten most expensive conversations. Email me the same day when one conversation passes the amount I set.

Hypamoon not in your chat yet? The button adds it first, without an account, and then opens your chat with this sentence.

How it goes today

  1. Add the After Turn End hook from the guide that writes cost to a table.
  2. Open the spend table now and then and sort it by cost by hand.
  3. Check the usage page in the workspace settings before the month ends.
  4. Raise the monthly limit after the bot has already gone quiet.

How it can go

Every Monday you get the spend of last week from your spend table, per day and per bot, with the ten most expensive conversations and a link to each. When a single conversation passes the amount you set, you get an email the same day, so you can look at it while it is still running.

What you need

What Botpress shares
Botpress charges model usage as a monthly spend with a limit, and when the limit is reached the bot stops answering. The docs show a hook that writes the cost of every turn to a table. Reading that table and spotting a runaway conversation is left to you.
Access
You paste your Botpress key in the portal, never in the chat.
Your key
You create a personal access token in your Botpress profile settings and add your bot ID. The token acts with your own permissions and stays yours.