Docs / Playbooks

Conversation Playbooks

Create automated conversation flows with the visual Playbook builder. Design custom responses, set up triggers, add conditions, and build sophisticated chatbot behaviors without writing code.

What are Playbooks?

Playbooks are visual conversation automation tools that let you define specific chatbot behaviors for different scenarios. Think of them as "recipes" that tell your chatbot exactly how to handle certain types of customer interactions.

🎯
Trigger-Based Activate playbooks based on keywords, phrases, or customer intents
🔀
Conditional Logic Add branching paths based on customer responses or data
📝
Custom Responses Define exact messages with dynamic variables
🤖
AI Integration Combine automated flows with AI-generated responses
Playbooks List View
The Playbooks management panel showing all configured conversation flows

Accessing Playbooks

To manage your playbooks:

  1. Open WooAI Menu

    In WordPress admin, navigate to WooAI Chat in the left sidebar.

  2. Select Playbooks

    Click on Playbooks to open the playbook management panel.

  3. View All Playbooks

    You'll see a list of all existing playbooks with their status, triggers, and actions.

Creating a New Playbook

Step 1: Start New Playbook

  1. Click "Create New"

    In the Playbooks panel, click the Create New Playbook button.

  2. Enter Basic Info

    Provide a name and optional description for your playbook (e.g., "Shipping Inquiry Handler").

  3. Open Editor

    Click Edit to open the visual playbook editor.

Playbook Visual Editor
The visual Playbook editor with drag-and-drop node interface

Step 2: Add a Trigger

Every playbook starts with a trigger - the condition that activates the playbook.

🎯
Trigger Node
Defines when the playbook activates. Can be based on keywords, intents, or specific conditions.
Example: Trigger when message contains "shipping", "delivery", or "track order"

Available Trigger Types

Trigger Type Description Use Case
Keyword Match Activates when specific words are detected FAQ responses, common queries
Intent Detection Activates based on AI-detected user intent Complex inquiries, sentiment-based
Page Context Activates on specific pages Product pages, checkout, cart
User Property Activates for logged-in users or specific roles VIP customers, wholesale users
Time-Based Activates during specific hours/days After-hours, weekend messages

Step 3: Add Response Actions

After a trigger fires, add nodes to define what happens next.

💬
Message Node
Sends a predefined message to the customer. Supports variables and formatting.
Example: "Hi {{customer_name}}! Our standard shipping takes 3-5 business days."
🤖
AI Response Node
Generates a response using AI with specific instructions or context.
Example: "Generate a friendly response about shipping options using RAG context"
Action Node
Performs system actions like collecting data, sending emails, or updating records.
Example: "Collect customer email" or "Create support ticket"

Step 4: Add Conditions (Optional)

Use conditional nodes to create branching paths based on customer responses or data.

🔀
Condition Node
Evaluates a condition and routes the conversation accordingly.
Example: If order status is "shipped" → show tracking link, else → show estimated date

Condition Types

  • Text comparison: Check if response contains/equals specific text
  • Number comparison: Compare values (cart total > $100)
  • Boolean check: True/false conditions (is_logged_in)
  • Data existence: Check if a variable exists
  • Multiple conditions: AND/OR combinations

Dynamic Variables

Playbooks support dynamic variables that get replaced with real data at runtime.

Available Variables

Variable Description Example Output
{{customer_name}} Logged-in customer's name John Smith
{{customer_email}} Customer's email address john@example.com
{{cart_total}} Current cart total $149.99
{{cart_items}} Number of items in cart 3
{{current_page}} Current page URL /product/blue-shirt
{{product_name}} Current product (if on product page) Premium Blue Shirt
{{product_price}} Current product price $49.99
{{store_name}} Your store name Fashion Store
{{current_time}} Current time 2:30 PM
{{user_input}} Last message from customer Do you ship to Canada?
💡 Using Variables

Wrap variable names in double curly braces: {{variable_name}}. Variables that don't exist will be replaced with empty strings, so always test your playbooks.

Playbook Templates

WooAI Chatbot Pro includes pre-built templates to help you get started quickly.

📦 Shipping Information
Popular
Automatically responds to shipping-related questions with your store's shipping policies, rates, and estimated delivery times.
Keyword Trigger Message + RAG
🔄 Return & Refund Policy
Essential
Handles return requests and refund inquiries, explaining your store's policies and guiding customers through the process.
Intent Detection Branching Logic
📍 Order Tracking
Popular
Helps customers track their orders by collecting order IDs and providing tracking information from your WooCommerce data.
Data Collection API Integration
🛒 Cart Abandonment Recovery
Pro Feature
Proactively engages customers who have items in their cart but haven't checked out, offering assistance or incentives.
Time-Based Cart Context
🌙 After-Hours Response
Essential
Automatically responds outside business hours, letting customers know when they can expect a human response.
Time-Based Trigger Email Collection
👋 Welcome Message
Essential
Greets new visitors with a personalized welcome message and offers to help them find what they're looking for.
First Visit Quick Replies

Using Templates

  1. Browse Templates

    In the Playbooks panel, click Templates to view available templates.

  2. Preview Template

    Click on any template to see its structure, triggers, and responses.

  3. Import Template

    Click Use This Template to create a new playbook based on the template.

  4. Customize

    Edit the imported playbook to match your store's specific needs and branding.

Playbook Examples

Example 1: Product Recommendation

A playbook that recommends products based on customer preferences.

🎯 Trigger

Keywords: "recommend", "suggest", "looking for", "help me find"

Flow:
1. Trigger: Keyword match detected
2. Message: "I'd love to help you find the perfect product!
   What category are you interested in?"
3. Quick Replies: [Clothing] [Electronics] [Home & Garden] [Other]
4. Condition: Based on selection
5. AI Response: "Search for top products in {selected_category}
   using RAG and recommend top 3"
6. Message: "Would you like me to add any of these to your cart?"

Example 2: Order Status Check

A playbook for customers checking their order status.

🎯 Trigger

Intent: order_status OR Keywords: "order", "tracking", "where is my"

Flow:
1. Trigger: Intent or keyword detected
2. Condition: Is customer logged in?
   ├── Yes: Fetch recent orders automatically
   │   └── Message: "I found your recent orders: {{recent_orders}}
   │       Which order would you like to check?"
   └── No: Message: "Please provide your order number (e.g., #12345)"
       └── Action: Collect order_id input
3. Action: Lookup order status
4. Condition: Order found?
   ├── Yes: Message: "Your order {{order_id}} is {{order_status}}.
   │       {{tracking_info}}"
   └── No: Message: "I couldn't find that order. Please check the
       number and try again, or contact support@store.com"

Example 3: Size Guide Help

A playbook specifically for product pages that helps with sizing.

🎯 Trigger

Page Context: Product page + Keywords: "size", "fit", "measurements"

Flow:
1. Trigger: On product page + size keyword
2. Action: Fetch product size guide
3. Condition: Size guide exists?
   ├── Yes: Message: "Here's the size guide for {{product_name}}:
   │       {{size_chart}}"
   │   └── Message: "What size do you normally wear?
   │       I can help you find your best fit."
   └── No: Message: "This product doesn't have a specific size guide.
       Standard sizing applies. What size do you usually wear?"
4. AI Response: "Based on their answer, provide personalized
   size recommendation"

Testing Playbooks

Always test your playbooks before activating them for customers.

Using Test Mode

  1. Enable Test Mode

    In the playbook editor, click the Test button in the toolbar.

  2. Enter Test Input

    Type messages that should trigger your playbook.

  3. Review Flow

    Watch how the playbook executes, see which nodes are triggered, and verify responses.

  4. Check Variables

    Verify that dynamic variables are being replaced correctly.

⚠️ Test Before Publishing

Always test playbooks thoroughly before enabling them. A broken playbook can frustrate customers and may cause them to leave without purchasing.

Testing Checklist

  • ✓ All triggers fire correctly
  • ✓ Conditions evaluate as expected
  • ✓ Variables display correct values
  • ✓ Messages are grammatically correct
  • ✓ Flow ends properly (no dead ends)
  • ✓ Edge cases are handled
  • ✓ Works for both logged-in and guest users

Managing Playbooks

Enabling/Disabling Playbooks

Each playbook has an Active toggle that controls whether it's live:

  • Active (ON): Playbook is live and will trigger for customers
  • Inactive (OFF): Playbook won't trigger but remains saved for later use

Priority Order

When multiple playbooks could match a customer's message, the system uses priority order:

  1. Playbooks are evaluated in the order shown in your list
  2. The first matching playbook executes
  3. Drag and drop playbooks to reorder priority
💡 Priority Tip

Put more specific playbooks higher in the list. For example, "Track my order #12345" should come before general "Help with orders" to catch specific requests first.

Duplicating Playbooks

To create a variation of an existing playbook:

  1. Click the menu on the playbook card
  2. Select Duplicate
  3. Edit the copy as needed
  4. Rename to distinguish from the original

Deleting Playbooks

To delete a playbook:

  1. Click the menu on the playbook card
  2. Select Delete
  3. Confirm the deletion
⚠️ Deletion is Permanent

Deleted playbooks cannot be recovered. Consider disabling instead if you might need the playbook again.

Best Practices

Design Guidelines

  • Keep it conversational: Write responses like a helpful human, not a robot
  • Be specific with triggers: Avoid overly broad keywords that match too many queries
  • Provide escape routes: Always offer ways to reach human support
  • Use quick replies: Offer clickable options when choices are limited
  • Limit depth: Avoid flows deeper than 5-6 steps to prevent frustration

Performance Tips

  • Test regularly: Review playbook performance monthly
  • Monitor analytics: Check which playbooks are triggered most often
  • Update seasonally: Adjust for sales, holidays, and promotions
  • Gather feedback: Use customer feedback to improve flows

Common Mistakes to Avoid

  • ❌ Triggers that are too broad (matching everything)
  • ❌ Dead ends with no way forward
  • ❌ Overly long messages that overwhelm customers
  • ❌ Missing fallback for unexpected responses
  • ❌ Not testing with real scenarios
  • ❌ Forgetting to update after policy changes

Troubleshooting

Playbook Not Triggering

  • Verify the playbook is set to Active
  • Check trigger keywords/conditions are correct
  • Ensure no higher-priority playbook is matching first
  • Test the exact phrase customers are using

Variables Not Replacing

  • Check variable syntax: {{variable_name}}
  • Verify the variable exists for the context (e.g., cart_total only works with cart)
  • Test with a logged-in user for user-specific variables

Conditions Not Working

  • Review condition logic carefully
  • Check data types match (string vs number)
  • Use test mode to see actual values at runtime
  • Simplify complex conditions to isolate issues
← RAG & Search Appearance →