API

Guides

Messages

Voice

WhatsApp Business

Groups

Contacts

Outbox

Account

Sender IDs

Teammate/Subaccount

Conversations

Workflows

Message Templates

Birthday Message

Opt-out

Other

Webhooks (v2)

Workflow conditions

data.config.conditionType of a condition node. The engine follows the edges that leave the true handle when the condition holds and the false handle otherwise.

if

Compares one field of the payload with a value (the default condition type).

{ "id": "is_stop", "type": "conditionNode",
  "data": { "title": "Says STOP?", "config": { "conditionType": "if", "field": "message.body", "operator": "contains", "value": "STOP" } } }

"edges": [
	{ "id": "e2", "source": "is_stop", "sourceHandle": "true",  "target": "opt_out" },
	{ "id": "e3", "source": "is_stop", "sourceHandle": "false", "target": "reply" }
]
Key Values Description
fieldone of the fields belowWhat to look at.
operatorone of the operators belowHow to compare.
valuescalar or list of scalarsWhat to compare with. Not needed for is_empty, is_not_empty, is_true and is_false. For contact.group_id a gid_ ID and for message.inbox_id a num_ ID may be used.

Fields:

Field Meaning
message.bodyText of the message.
message.channelsms, whatsapp-business, whatsapp-connect or voice.
message.inbox_idNumeric ID of the inbox the message arrived on.
message.lengthNumber of characters of the message.
message.fromSender of the message.
contact.phonePhone number of the contact (the sender for inbound messages).
contact.name, contact.firstname, contact.lastnameName fields of the contact.
contact.group_idGroup of the contact.
contact.country_codeISO country code of the contact.
contact.opted_outWhether the contact opted out.
contact.birthday, contact.ageBirthday (DD/MM) and age, birthday trigger.
contact.extra1 .. contact.extra10The extra fields of the contact.
delivery_report.statusStatus of the delivery report.
execution.run_countNumber of earlier completed executions of this workflow for the same phone number.
execution.is_first_triggerTrue when run_count is 0.
system.day_of_week, system.time, system.datemonday .. sunday, HH:MM, YYYY-MM-DD of "now" in Europe/Brussels. A test payload may carry system.date, system.time and system.timezone to simulate a moment.

Operators:

Operator Holds when
equals / not_equalsThe field equals / does not equal the value (case-insensitive, numeric strings compare numerically).
contains / not_containsThe field contains / does not contain the value.
starts_with / ends_withThe field starts / ends with the value.
greater_than, greater_than_or_equal, less_than, less_than_or_equalNumeric or alphabetical comparison.
betweenThe field lies within the two values of the list (or comma-separated string).
in / not_inThe field is / is not one of the values of the list (or comma-separated string).
is_empty / is_not_emptyThe field has no value / has a value.
is_true / is_falseThe field is true / false.

office_hours

Holds inside your office hours. Useful to reply automatically outside office hours and to assign the conversation during office hours.

{ "id": "office_hours", "type": "conditionNode",
  "data": { "title": "Within office hours?", "config": { "conditionType": "office_hours",
    "officeHours": { "days": ["monday", "tuesday", "wednesday", "thursday", "friday"], "start": "09:00", "end": "17:00", "timezone": "Europe/Brussels" } } } }
Key Values Description
officeHours.dayslist of monday .. sunday, default allWorking days.
officeHours.startHH:MM, default 09:00Start of the working day.
officeHours.endHH:MM, default 17:00End of the working day (exclusive).
officeHours.timezoneIANA name, default Europe/BrusselsTime zone of the hours.

field, operator and value are accepted on this type and passed through untouched (builder placeholders).

SMS API

Smstools
Integrate our SMS Gateway by implementing our SMS API, and add text messaging to your platform in minutes. Free trial. SMS API
5 out of 5 based on 3302 user ratings.
SMSGATEWAYAPI API1

REGISTER NOW

Discover our SMS platform today!

REGISTER