Documentation Index
Fetch the complete documentation index at: https://docs.chatcrafterai.com/llms.txt
Use this file to discover all available pages before exploring further.
Connecting Stripe to ChatCrafterAI
Follow these steps to connect your Stripe account to ChatCrafterAI.Prerequisites
Before starting, ensure you have:- A Stripe account (create one at stripe.com if needed)
- API keys ready (publishable and secret key)
- Webhook secret from Stripe
Step-by-Step Setup in ChatCrafterAI
- Navigate to Agent Settings → Integrations
- Click Add Integration → Select Stripe
- Choose mode: Production or Test
- Paste your Publishable Key
- Paste your Secret Key
- Paste your Webhook Secret
- Click Connect
- Verify the status shows Connected
- Click Test Connection to verify the agent can communicate with Stripe
Finding Your Credentials in Stripe
API Keys
- Log into your Stripe dashboard at stripe.com/dashboard
- Go to Developers → API keys
- Copy the Publishable key (starts with
pk_) - Copy the Secret key (starts with
sk_)
Webhook Secret
- In Stripe dashboard, go to Developers → Webhooks
- Find the ChatCrafterAI webhook endpoint (or create one if missing)
- Click to view details
- Copy the Signing secret (starts with
whsec_)
Test vs Production Mode
Test Mode:- Use this first to experiment without real transactions
- Test card numbers available (see Testing Guide)
- No actual charges processed
- Use when ready for real customer transactions
- Real charges will be processed
- Requires production API keys
Webhook Setup
ChatCrafterAI automatically creates a webhook endpoint in your Stripe account when you connect. If you need to create it manually: Endpoint URL:https://api.chatcrafterai.com/stripe/webhook
Events to enable:
payment_intent.succeededcustomer.subscription.updatedinvoice.payment_succeededcharge.refunded
Verification
After setup, verify the connection:- Open Chatlab (testing environment)
- Send a test message: “What’s my balance?”
- Agent should return a success message with balance amount
- If you see an error, check that:
- Keys are copied exactly (no extra spaces)
- You’re using the correct mode (test vs production)
- Webhook secret matches exactly
Troubleshooting Setup
Connection failed?- Verify API keys are correct (no spaces before/after)
- Ensure you’re using keys from the correct mode
- Check your Stripe account is active
- Confirm webhook secret is copied correctly
- Verify webhook endpoint is reachable
- Check Stripe webhook dashboard for delivery status