Overview
The Customer Created trigger starts a workflow when a new customer is added to your CaptainBook system.
When It Triggers
A new customer record is created
Customer information is first entered into the system
Works for all customer creation methods (manual entry, API, import, etc.)
Use Cases
Send welcome emails
Add customers to mailing lists
Create onboarding tasks
Sync to CRM systems
Send welcome offers or discounts
Assign customer tags or segments
Notify sales team
Set up customer preferences
Configuration
This trigger requires no additional configuration. It automatically triggers when any customer is created.
Available Data
When this trigger fires, it provides a customer object with comprehensive customer information.
Customer Object Structure
Contact Information
name- Customer nameemail- Primary email addresssecondary_email- Secondary email addressphone- Phone numbercountry- Country code
Address Information
address- Street addresscity- Cityregion- State/regionzip_code- Postal/ZIP code
Payment Information
stripe_id- Stripe customer IDpm_id- Payment method IDpm_type- Payment method typepm_last4- Last 4 digits of payment methodpm_expires_at- Payment method expiration date
Preferences
locales- Preferred languages/locales
Timestamps
created_at- Customer creation dateupdated_at- Last update date
Accessing Customer Data
{customer.name}
{customer.email}
{customer.phone}
{customer.country}Example Workflows
1. Welcome Email
Workflow Steps:
Trigger: Customer Created
Action: Send Notification
To:
{customer.email}Subject: "Welcome onboard!"
Body: Welcome message with onboarding information
2. Add to CRM
Workflow Steps:
Trigger: Customer Created
Action: Send Webhook
URL: CRM system endpoint
Payload: Customer data
3. Welcome Offer
Workflow Steps:
Trigger: Customer Created
Action: Delay (1 hour)
Action: Send Notification
Subject: "Special Welcome Offer"
Body: Include discount code
4. Onboarding Sequence
Workflow Steps:
Trigger: Customer Created
Action: Send Notification (Welcome email)
Action: Delay (1 day)
Action: Send Notification (Getting started guide)
Action: Delay (3 days)
Action: Send Notification (First booking offer)
5. Team Notification
Workflow Steps:
Trigger: Customer Created
Condition: If
{customer.country}equals specific countryAction (True): Send Notification to regional sales team
Testing
When testing this trigger:
Select a customer from your system
The workflow will use that customer's data
Review execution logs to see customer information
Test Data
The trigger provides access to the last 20 customers (excluding default/placeholder customers) for testing.
Best Practices
Verify email - Check that customer email exists before sending
Respect preferences - Check locale/language preferences
Avoid spam - Use delays to space out welcome communications
Personalize - Use customer name and other details
Track source - Log where customers came from if available
Handle duplicates - Consider checking for existing customers
