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.
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.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.// 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 doneThe agent never holds your payment keys — it proposes, COLVO decides and executes.
Each test is its own Botpress user and conversation, so tests never share memory.
Botpress answers asynchronously; COLVO waits up to 30 seconds and collects every message the bot sends.
The bot only proposes; Guard decides and COLVO executes with its own restricted key.
No — remove it. The bot only proposes; COLVO holds a restricted key and executes what Guard allows.
Yes — each test sends one or a few messages, so a full suite counts toward your Botpress usage like real conversations do.
Turn it off for the bot you test, or connect it as “Your own service” instead.
Reference: Connect your agent
Test your agent before it ships — and guard every real action once it’s live. In a safe copy of your world first.