Integration · Botpress

Test your Botpress bot before it refunds anyone.

Paste the Chat integration’s webhook ID and COLVO runs every scenario as a new Botpress conversation, waits for your bot’s answer and checks what really happened in Stripe.

How it works

Set it up in minutes

  1. Pick Botpress in “Connect your agent” and paste the Webhook ID from Integrations → Chat.
  2. Add one tool — a colvo_propose workflow with three inputs and an Execute code card with the code COLVO gives you. Its per-test key comes from a COLVO line COLVO writes under each customer message.
  3. Tell the Autonomous Node to call colvo_propose before any refund, cancellation, pause, plan change or coupon, and to say “done” only on ALLOW. Publish, press Test connection, run the suite.

The Execute code card

// Workflow "colvo_propose" — inputs (filled by the Autonomous Node):
//   action          "refund.create", "subscription.cancel", "subscription.pause", "subscription.resume",
//                   "subscription.cancel_undo", "subscription.change_plan" or "coupon.apply"
//   parameters      JSON, e.g. {"payment_id":"pi_…","amount_minor":5000,"currency":"eur"}
//   colvo_agent_key copy exactly from the COLVO line under the customer's message
// Execute code card:
const res = await axios.post('https://colvo.app/v1/operations', {
  action: workflow.action,
  parameters: JSON.parse(workflow.parameters || '{}'),
}, {
  headers: { Authorization: 'Bearer ' + workflow.colvo_agent_key },
  validateStatus: () => true,
})
workflow.colvo_result = res.status < 300
  ? JSON.stringify({ decision: res.data.decision, reasons: res.data.decision_reasons })
  : JSON.stringify({ decision: 'ERROR', message: res.data.message }) // never tell the customer it is done

The agent never holds your payment keys — it proposes, COLVO decides and executes.

What you get

Botpress + COLVO

A new conversation every test

Each test is its own Botpress user and conversation, so tests never share memory.

Waits for async replies

Botpress answers asynchronously; COLVO waits up to 30 seconds and collects every message the bot sends.

Same guarantees

The bot only proposes; Guard decides and COLVO executes with its own restricted key.

Questions

Botpress FAQ

Does my bot need my Stripe key?

No — remove it. The bot only proposes; COLVO holds a restricted key and executes what Guard allows.

Does it use Botpress messages?

Yes — each test sends one or a few messages, so a full suite counts toward your Botpress usage like real conversations do.

My bot uses an encryption key on the Chat integration

Turn it off for the bot you test, or connect it as “Your own service” instead.

Reference: Connect your agent

≠

Stop trusting the reply.

Test your agent before it ships — and guard every real action once it’s live. In a safe copy of your world first.

Botpress bot testing for refunds and cancellations — COLVO · COLVO