Docs Automation

Automation

Create automated workflows, schedule broadcasts, set triggers, and streamline repetitive tasks.

Overview

The Automation module in Helpon lets you build intelligent workflows and broadcast messages to your contacts without manual intervention. Access it from Helpon → Automation in your WordPress admin sidebar.

There are two primary automation types:

  • Workflows — Trigger-based sequences that execute automatically when a specific event occurs (e.g., a new conversation starts, a tag is added, or an appointment is booked). Workflows run per-contact and can include conditions, delays, and multiple actions.
  • Broadcasts — One-time or scheduled bulk messages sent to a selected audience (a segment, a tag group, or all contacts). Broadcasts are ideal for announcements, promotions, and follow-up campaigns.
ℹ️
Workflows vs. Flows

Workflows automate backend actions (send email, add tag, assign agent) in response to events. Flows (built in the Flow Builder) define conversational paths for the chat widget. You can trigger a workflow from inside a flow, and vice versa.

Workflows

A workflow is a sequence of actions that execute automatically when a trigger event fires and all conditions are met. Each workflow has a name, a single trigger, optional conditions, and one or more actions arranged in order.

Creating a Workflow

1

Open the Automation Panel

Navigate to Helpon → Automation. Click the Workflows tab at the top of the page.

2

Create New Workflow

Click the + New Workflow button. Enter a descriptive name (e.g., "Welcome Series" or "Post-Appointment Follow-Up").

3

Select a Trigger

Choose the event that starts the workflow. See the Triggers section below for all available trigger types.

4

Add Conditions (Optional)

Narrow execution with filters such as tag, segment, channel, or custom field value. See Conditions & Filters.

5

Define Actions

Add one or more actions to the sequence. Actions execute in order from top to bottom. You can drag to reorder. See Actions.

6

Enable the Workflow

Toggle the workflow status to Active. Inactive workflows are saved but will not fire. Click Save Workflow.

Workflow Name *
Welcome Series
Trigger Event
New Conversation Started ▾
Status
Active
Version
v1.0

Versioning

Every time you save changes to an active workflow, Helpon creates a new version. You can view the version history by clicking the Version History link on the workflow editor. Previous versions can be restored at any time, ensuring you never lose a working configuration.

Pro Tip

Test new workflows by setting them to Inactive first, then using the Test Run button to simulate execution against a sample contact before going live.

Triggers

A trigger is the event that starts a workflow. Each workflow has exactly one trigger. When the event occurs and the workflow is active, it enters the condition evaluation phase.

Trigger Fires When Available Data
New Conversation A visitor starts a new chat conversation Contact, channel, initial message
Tag Added A specific tag is applied to a contact Contact, tag name, applied by
Tag Removed A specific tag is removed from a contact Contact, tag name, removed by
Lifecycle Stage Changed A contact moves to a different lifecycle stage Contact, old stage, new stage
Appointment Booked A contact books an appointment through Helpon Contact, appointment details, date/time
Appointment Cancelled A contact cancels an existing appointment Contact, appointment details, reason
Form Submitted A visitor submits a Helpon-connected form Contact, form name, field values
Conversation Closed An agent or system closes a conversation Contact, conversation ID, closed by
Contact Created A new contact record is created in the CRM Contact, source, creation method
Custom Event A custom event is fired via the Helpon API or webhook Contact (if linked), event name, payload
ℹ️
Custom Events

Fire custom events from external systems using the REST API endpoint POST /wp-json/helpon/v1/events. Include the event name and an optional contact ID to link the workflow to a specific contact record.

Conditions & Filters

Conditions let you narrow which contacts a workflow applies to when the trigger fires. If no conditions are set, the workflow runs for every contact that triggers it. You can combine multiple conditions using AND (all must match) or OR (any can match) logic.

Available Filter Types

  • Tag — Contact has (or does not have) a specific tag
  • Segment — Contact belongs to a particular saved segment
  • Channel — Conversation originated from a specific channel (web chat, WhatsApp, Instagram, etc.)
  • Time — Current time falls within a defined window (e.g., business hours only)
  • Visitor Property — Browser language, device type, country, or referral URL
  • Custom Field — A custom CRM field equals, contains, or matches a value
  • Lifecycle Stage — Contact is at a specific stage (lead, prospect, customer, etc.)
  • Last Activity — Days since the contact's last conversation or interaction
Filter Conditions
Property
Tag ▾
Operator
is ▾
Value
VIP Patient ▾
AND switch to OR
Property
Channel ▾
Operator
is ▾
Value
WhatsApp ▾
+ Add another condition
💡
Condition Logic

Use AND when all conditions must be true simultaneously. Use OR when matching any single condition is sufficient. You can nest condition groups for more complex logic by clicking Add Group.

Actions

Actions are the tasks a workflow performs once triggered and conditions are satisfied. You can chain multiple actions in sequence, with optional delays between them. Actions execute from top to bottom.

Action Description Configuration
Send Message Send a chat message to the contact through the active conversation channel Message content, channel (auto or specific)
Send Email Send an email to the contact's registered email address Subject, body (HTML/plain), from name, reply-to
Add Tag Apply one or more tags to the contact record Tag name(s), create if not exists
Remove Tag Remove a specific tag from the contact record Tag name(s)
Assign Agent Assign the conversation to a specific agent or team Agent, team, or round-robin pool
Update Field Set or update a custom field value on the contact Field name, new value (supports variables)
Change Lifecycle Stage Move the contact to a different lifecycle stage in the CRM Target stage
Trigger Webhook Send an HTTP POST request to an external URL with contact and event data URL, headers, payload template
Delay Pause the workflow for a specified duration before the next action Duration (minutes, hours, or days)
Create Appointment Automatically create an appointment for the contact Service, provider, date/time or offset
Start Flow Trigger a Flow Builder conversation flow for the contact Flow ID, entry node
End Workflow Immediately stop the workflow for this contact None

Using Variables in Actions

Actions that accept text content support dynamic variables. Insert them using double curly braces:

Variables
Hi {{contact.first_name}}, thanks for reaching out!

Your appointment on {{appointment.date}} at {{appointment.time}} is confirmed.

Assigned agent: {{agent.name}}
Conversation ID: {{conversation.id}}
⚠️
Webhook Security

When using the Trigger Webhook action, always use HTTPS endpoints. Helpon signs webhook payloads with an HMAC-SHA256 signature in the X-Helpon-Signature header. Verify this signature on your receiving server to ensure authenticity.

Broadcasts

Broadcasts allow you to send a message to many contacts at once. Unlike workflows, broadcasts are not triggered by events — you create and schedule them manually. Use broadcasts for announcements, promotions, appointment reminders, and re-engagement campaigns.

Creating a Broadcast

1

Open Broadcasts

Go to Helpon → Automation → Broadcasts tab and click + New Broadcast.

2

Name and Select Channel

Give the broadcast a name (e.g., "March Promo"). Choose the delivery channel: Chat Widget, WhatsApp, Email, or SMS.

3

Define the Audience

Select who receives the broadcast: All Contacts, a Segment, contacts with a specific Tag, or a Custom Filter built with the same filter builder used in workflows.

Broadcast Name *
March Health Tips
Channel
WhatsApp ▾
Audience
Segment: Active Patients ▾
Estimated Recipients
1,247 contacts
4

Compose the Message

Write your message content. You can use dynamic variables (e.g., {{contact.first_name}}), rich formatting, and media attachments depending on the channel. Preview how the message will look before sending.

5

Schedule or Send

Choose Send Now for immediate delivery, or Schedule to pick a future date and time. See Scheduling for advanced options like recurring sends and timezone handling.

6

Review Delivery Report

After the broadcast completes, check the delivery report for sent, delivered, read, failed, and opted-out counts. Click any metric to see the individual contacts.

Test Before Sending

Use the Send Test button to deliver the broadcast to yourself or a small test group before releasing it to the full audience. This helps catch formatting issues and broken variables.

Scheduling

Helpon's scheduling system gives you precise control over when broadcasts and delayed workflow actions execute. Configure schedules from the broadcast editor or from the Delay action in a workflow.

Schedule Broadcast
Send Date
2026-03-15
Send Time
09:00 AM
Timezone
Contact's Local Time ▾
Repeat
Weekly ▾
Throttle Limit
200 messages/minute
Send Window
Business Hours Only ▾

Scheduling Options

  • One-Time — Send the broadcast once at the selected date and time.
  • Recurring — Repeat daily, weekly, bi-weekly, or monthly. Set an optional end date or number of occurrences.
  • Timezone Handling — Choose between sending at a fixed time in your business timezone, or in each contact's local timezone (Helpon uses the contact's IP-based or manually set timezone).
  • Throttle Limits — Control the number of messages sent per minute to avoid channel rate limits. Helpon queues excess messages and sends them in batches.
  • Send Windows — Restrict delivery to specific time windows (e.g., business hours 9 AM – 5 PM). Messages outside the window are held until the next eligible window.
⚠️
WhatsApp 24-Hour Rule

WhatsApp requires the use of pre-approved template messages for contacts who have not messaged you within the last 24 hours. Helpon automatically selects the appropriate template when broadcasting to WhatsApp outside the session window.

Templates

Workflow templates are pre-built automation sequences that you can import and customize. They help you get started quickly with common automation patterns without building from scratch.

Built-In Templates

Template Trigger Actions
Welcome Series Contact Created Send welcome message → Delay 1 day → Send tips email → Add "onboarded" tag
Post-Appointment Follow-Up Appointment Booked Send confirmation → Delay until appointment → Send reminder → Delay 1 day after → Send feedback request
Appointment Reminder Appointment Booked Delay until 24h before → Send reminder message → Delay until 1h before → Send final reminder
Feedback Request Conversation Closed Delay 30 minutes → Send satisfaction survey → Add "feedback-requested" tag
Lead Nurture Tag Added ("lead") Send intro email → Delay 3 days → Send case study → Delay 5 days → Send offer → Change stage to "prospect"
Re-Engagement Custom Event ("inactive_30d") Send "We miss you" message → Delay 7 days → Send special offer → Add "re-engagement" tag

Using a Template

1

Browse Templates

Navigate to Helpon → Automation → Templates. Browse the template library or use the search bar to find a template by name or category.

2

Preview and Import

Click on a template card to preview its trigger, conditions, and actions. Click Use Template to import it as a new draft workflow.

3

Customize

Edit the workflow name, adjust message content, change delay durations, and modify conditions to match your business needs. All template values are editable.

4

Activate

Once satisfied, toggle the workflow to Active and save. The imported template now runs as a standard workflow.

Import / Export

You can export any workflow as a JSON file and import it on another Helpon installation. This is useful for agencies managing multiple client sites or for sharing workflows between staging and production environments.

Export via WP-CLI
wp helpon automation export --workflow=12 --output=welcome-series.json
wp helpon automation import --file=welcome-series.json

Analytics

The Automation Analytics dashboard provides real-time visibility into how your workflows and broadcasts are performing. Access it from Helpon → Automation → Analytics.

Workflow Metrics

Metric Description Scope
Total Executions Number of times the workflow has been triggered and started Per workflow
Completion Rate Percentage of executions that reached the final action without errors or exits Per workflow
Active Contacts Contacts currently in-progress within the workflow (waiting at a delay step) Per workflow
Error Rate Percentage of executions that encountered an error (failed action, missing data) Per workflow
Average Duration Average time from workflow start to completion including delays Per workflow

Broadcast Metrics

Metric Description Channels
Sent Total messages dispatched from the Helpon server All
Delivered Messages confirmed as delivered to the recipient's device or inbox All
Read / Opened Messages opened or read by the recipient (read receipts or open tracking pixel) WhatsApp, Email
Click Rate Percentage of recipients who clicked a link in the message Email, Chat
Failed Messages that could not be delivered (invalid number, bounced email, channel error) All
Opted Out Contacts who unsubscribed or opted out after receiving the broadcast All
Conversion Rate Percentage of recipients who completed a tracked goal (booked appointment, submitted form) within the attribution window All
ℹ️
Conversion Tracking

To track conversions, define a conversion goal in the broadcast settings (e.g., "Appointment Booked" or "Form Submitted"). Set the attribution window (default: 7 days) to determine how long after receiving the broadcast a conversion is counted.

Troubleshooting

Common issues with automation and how to resolve them:

Workflow not triggering

  • Verify the workflow status is set to Active in the workflow editor
  • Confirm the trigger event matches the expected action (e.g., "New Conversation" fires only on the first message of a new session, not on follow-up messages)
  • Check that conditions are not filtering out all contacts — temporarily remove conditions to test
  • Review the Execution Log at Helpon → Automation → Logs for detailed error messages
  • Ensure the WordPress cron system is running. Helpon relies on wp_cron for delayed actions. If your host disables WP-Cron, set up a real cron job:
Server Cron
*/5 * * * * wget -q -O - https://yoursite.com/wp-cron.php?doing_wp_cron > /dev/null 2>&1

Broadcast stuck in queue

  • Check the broadcast status on the Broadcasts list page — it should show "Sending" or "Queued"
  • Large audiences are sent in batches. View progress in the delivery report detail view
  • Verify that the throttle limit is not set too low (e.g., 10 messages/minute for 5,000 contacts will take over 8 hours)
  • Ensure your server's email or API rate limits are not being exceeded. Check Helpon → Settings → Email for SMTP error logs
  • If the queue appears stuck, try clicking Retry Failed on the broadcast detail page, or cancel and re-create the broadcast

Duplicate workflow executions

  • By default, a contact can enter the same workflow only once. Check the Re-entry Policy setting on the workflow — if set to "Allow re-entry," the contact can trigger it multiple times
  • If using the "Tag Added" trigger, ensure the tag is not being added and removed repeatedly by another workflow, creating a loop
  • Review the execution log to see timestamps — if executions are seconds apart, a race condition may exist. Add a Delay of 1 minute as the first action to debounce

Filter conditions not matching expected contacts

  • Double-check the AND/OR logic — AND requires all conditions to be true, while OR requires only one
  • Verify tag names are spelled exactly as they appear in the CRM (tags are case-sensitive)
  • For custom field filters, ensure the field value type matches the operator (e.g., do not use "greater than" on a text field)
  • Use the Preview Audience button in the filter builder to see which contacts currently match your conditions
⚠️
Execution Logs

Helpon retains automation execution logs for 90 days by default. To change the retention period, go to Helpon → Settings → Automation → Log Retention. Increasing retention may impact database size on high-volume installations.