Prerequisites
Before you begin, make sure you have:- A BoostGPT account (sign up free)
- An AI agent created and trained with your content
- Access to your website’s code
Step 1: Create an Event
Events define the friction points where you want to engage users.- Go to your agent’s Events page in the dashboard
- Click Create Event
- Fill in the details:
- Name:
checkout_abandoned(use snake_case, no spaces) - Label: “Checkout Abandoned” (display name)
- Description: “User started checkout but didn’t complete”
- Prompt Template:
- Name:
- Click Save
Step 2: Add the Trigger Script
Add this script to your website, preferably in the<head> section:
YOUR_AGENT_UUID with your agent’s UUID from the dashboard.
Step 3: Trigger on Friction Points
Callboostgpt.trigger() when users hit friction points:
Step 4: Test Your Trigger
- Open your website in a browser
- Navigate to the page where you added the trigger
- Trigger the condition (e.g., sit idle for 30 seconds)
- You should see the trigger UI appear
- Click it to start a conversation with context
Customizing the Trigger UI
By default, triggers show as a floating button. Customize the appearance:What Happens When User Clicks
When the user clicks the trigger:- The trigger script calls the BoostGPT API with the event and context
- Your agent receives a message built from the prompt template + context
- The agent generates a contextual response
- User is redirected to a chat with the agent already responding
“Hi! I noticed you were about to leave without completing your order. Your cart has $149.00 worth of items. Is there anything I can help with? Maybe you have questions about shipping, returns, or payment options?”
Next Steps
Events Overview
Learn more about events and context
Trigger Types
Explore button, toast, banner, and inline styles
Configuration
All available options
Use Case Guides
Real-world implementation examples