Hubhus
ToolsAgent loginSubmit a ticket
All articles

Automation & Workflows / Action listeners

Understanding action listeners

Published 28. sep. 2026, 16.03

TL;DR

Go to Campaign settings → Action listeners → New listener. Listeners react right after something changes on a lead. A listener that runs in the background can wait up to 30 seconds first; use Automations for longer timing, reminders and sequences. Triggers that arrive close together on the same lead are merged into one run, and a listener runs at most 10 times per minute for the same lead.

Action listeners let Hubhus react the moment something happens on a lead - a field update, a file upload, a form submission, a booking. Automations are for work that should run before or after something has happened (delays, schedules, sequences).

5 things to know

  1. What triggers an action listener. Any change to a lead can be a trigger: a field value changes, a select option is picked, a file is uploaded, a form is submitted, a booking is created, a checklist is completed, a relation is added. You specify exactly which field or event type to watch.
  2. What actions can be performed. Send email, send SMS, notify internal user, set a field value, change status, trigger integration/webhook, create related data. Keep the action list short - listeners are for quick, focused reactions.
  3. Listeners vs. Automations. Action listeners: run when something happens - immediate. Ideal for instant confirmations, field updates, notifications, integrations. Automations: run before or after something has happened - ~60s cycle, delays, chained steps, reminders, sequences. Both can send email/SMS. Classic pattern: listener reacts immediately → automation handles timed follow-up.
  4. Triggers close together are merged. A trigger creates a run, which is carried out right after. If more triggers for the same listener arrive on the same lead before that run has finished, they are merged into it. A form that saves ten fields therefore gives one run, not ten. If the listener has a delay, triggers during the delay are merged into the waiting run. A listener runs at most 10 times per minute for the same lead. To start a new run when the lead changes while the actions run, set Run again if the lead changes while the actions run to Yes.
  5. Key limitations. A listener can wait at most 30 seconds before its actions run (see Read more). If you need longer timing before or after an event, use an Automation. Use conditions to prevent duplicate or unwanted triggers. Keep each listener focused; multi-step timed workflows belong in Automations.
Read more

Common use cases

  • Customer uploads images → notify reviewer instantly
  • Lead address changes → recalculate and assign region
  • New booking created → send confirmation SMS immediately
  • Zipcode changes → auto-assign to correct regional team
  • Checklist submitted → move lead to next status
  • Status becomes "awaiting booking" → send booking link email

Creating an action listener

Go to Campaign settings → Action listeners → New listener. Configure:

  • Trigger: which field/event type to watch
  • Conditions: optional filters (only fire if field X == Y)
  • Actions: email, SMS, set field, webhook, etc.
  • Background settings (optional): Execute actions asynchronously, and with it Delay before the actions run and Run again if the lead changes while the actions run. Both are described below.

To send lead data to another system, use an HTTP request as the action. See HTTP requests: Creating custom templates.

Wait before the actions run

In the listener form, Delay before the actions run makes the listener wait before its actions run. Use it when an integration or API client saves related changes in separate requests close together, so the actions use the lead's data after all of them, e.g. a webhook that should include every field.

  • Options: No delay (default), 5, 10, 15, 20 or 30 seconds. 30 seconds is the maximum. Existing listeners have no delay.
  • Background only: Execute actions asynchronously must be Yes. Otherwise the listener is not saved, and you see the error A delay requires "Execute actions asynchronously" to be set to Yes.
  • Timing: the actions run after the delay, or later if the queue is busy. The delay does not start over when a new trigger arrives.
  • Triggers during the delay: they are merged into the waiting run, so the actions use the lead's data after all the changes. <hh-listener-event.*> placeholders, e.g. <hh-listener-event.calendar-event />, still describe only the first trigger.
  • Requirements: they are checked when the listener is triggered and again when the actions run. A lead that only meets them after a change during the delay does not run the actions.
  • Overview: the listener list shows the delay under async, e.g. 10 s delay. Cloning a campaign copies each listener's delay.

For longer waits, reminders or sequences, use an Automation.

How triggers are merged into one run

When a listener is triggered, Hubhus creates a run, and a background job carries it out shortly after. The job reads the lead's data, including all placeholders, when it starts. What happens to the next trigger for the same listener on the same lead depends on how far the run has got:

  • The run has not started yet: the trigger is merged into the run. The data is read when the job starts, so the run includes the change.
  • The actions are running: the trigger is also merged into the run. The data has already been read, so the run does not include the change. With Run again if the lead changes while the actions run set to No (default), the change does not start a new run. With Yes, the actions run again when they have finished, see below.
  • The run has finished: the trigger starts a new run.

Example: a booking form saves the form fields first, then the calendar event, and then the assigned user. If one listener watches both a field and calendar events, the field change can start the run before the calendar event is saved. The calendar event is then merged into the running run, and an HTTP request may be sent without the booking time.

Run again if the lead changes while the actions run

Set Run again if the lead changes while the actions run to Yes in the listener form when the last run must have the latest data, e.g. a listener that sends bookings to another system with an HTTP request. The default is No.

  • Background only: the setting works only with Execute actions asynchronously set to Yes.
  • Before the run starts: triggers are still merged into the waiting run. This is safe, because the data is read when the run starts.
  • While the actions run: a change runs the actions again when they have finished, so the last run always has the latest data.
  • One run at a time: runs of the same listener on the same lead are carried out one at a time. A request that fails or times out counts as finished, so the next run starts right after it and does not wait for retries.
  • Receiving system: after a timeout, the next request can arrive while the other system is still processing the previous one, and a request that timed out may still have been received. The receiving system should accept the same update more than once and ignore older requests that arrive late.

Test the setting in a test campaign before you turn it on for a listener in use. With Yes, a listener can run a few more times than before, because changes during a run are no longer merged into it.

Calendar data in a listener

<hh-listener-event.calendar-event /> contains the calendar event from the trigger that started the run. If a field change started the run and a calendar event was merged into it, the field change is the starting trigger, and the placeholder is empty.

To send the lead's booking, use the %event_...% placeholders instead, e.g. %event_start_datetime_db% and %event_id%. They are read from the lead when the run starts. With Run again if the lead changes while the actions run set to Yes, the last run always has the last saved event. See Understanding placeholders and dynamic content.

Best practices

  • Keep each listener focused on one action - don't pile on logic
  • Add conditions to prevent firing on unrelated changes
  • Set Run again if the lead changes while the actions run to Yes on listeners that send lead data to another system.
  • Check lead history to verify when listeners fired
  • Use CTRL+K / CMD+K in actions to find the right placeholder

Troubleshooting

The listener ran fewer times than the field changed

  • Triggers that arrive close together on the same lead are merged into one run.
  • A listener runs at most 10 times for the same lead within any 60 seconds. A trigger above the limit is dropped, not postponed. A trigger that is merged into a waiting run does not count. The limit stops loops, e.g. listeners that trigger each other.

An HTTP request was sent without the latest change

  • The change was saved while the listener's actions were running, so it was merged into a run that had already read the data.
  • Check the lead history to see when the listener ran compared with when the change was saved.
  • If an integration or API client saves the changes in quick succession, set Delay before the actions run (with Execute actions asynchronously set to Yes), so the later changes are merged into the waiting run.
  • Set Run again if the lead changes while the actions run to Yes. The change then runs the actions again with the latest data.
  • If the receiving system gets requests in the wrong order, send <hh-http-request.id /> and let it ignore requests with a lower number, see HTTP requests: Creating custom templates.

<hh-listener-event.calendar-event /> is empty

  • Another trigger, e.g. a field change, started the run. Use the %event_...% placeholders to get the lead's booking.

For the difference between listeners and automations in more detail, see What is automation in Hubhus?

action listener
trigger
merge
rate limit
delay
run again
Didn't find the answer? Submit a ticket and we'll get back to you as soon as possible.