Corteksa
GuidesAutomation

Overview

Automation — Overview

Automation is Corteksa's workflow engine. A workflow watches for something to happen in the CRM (a trigger), optionally checks the record against conditions, and runs one or more actions — update a field, send a WhatsApp message, call a webhook, create a record, and more. It runs directly on live CRM data: it sees objects, fields, statuses, messaging sessions, and templates natively.

When should I use Automation?

  • You want a rule like "when a deal is marked Won, send the customer a WhatsApp".
  • You want to auto-update records — stamp a status, copy a value, assign an owner.
  • You want date-anchored reminders — "1 day before a subscription ends, message the contact".
  • You want to notify external systems when CRM data changes (outbound webhook).
  • You want first-reply automations on incoming chats (a welcome message).

For one-off manual sends use Messaging directly; for schema/record changes use the CRM API.

Key concepts

A workflow is addressed by slug (never a numeric id) and has four parts:

ConceptWhat it is
TriggerThe event that starts the workflow (trigger_type + trigger_config). One per workflow.
ConditionsAn optional AND/OR filter (filter_config) — the workflow only runs if the record passes.
ActionThe effect (action_type + action_config). Always runs first.
StepsOptional follow-ups (steps[]): more Actions plus Delay, Condition (branch), and Approval gates, run in step_order.

A workflow is created paused (is_active: false) and only fires after you activate it (PUT /workflow/:slug/toggle).

Available triggers

trigger_typeFires whenKey config
record_createdA new record is created on an objectobject_slug
field_changedA watched field's value changesobject_slug, watched_fields[]
status_changedA status field transitions to a valueobject_slug, status_field_slug, from_status, to_status
message_receivedA message arrives on a connected channelsession_slugs[], message_contains, direction
first_messageA chat receives its very first messagesession_slugs[], message_contains
scheduledA cron tick (optionally scanning an object for date reminders)cron_expression, timezone, object_slug, reminder

Available actions

action_typeEffectKey config
update_statusSet a record's status fieldstatus_field_slug, new_status_value
update_fieldSet one or more field valuesfield_updates[]
send_messageSend messaging text/media (reply or find-or-create a chat)session_slug, message_template
send_templateSend a pre-approved WhatsApp Cloud templatesession_slug, template_name, variable_mapping
send_webhookOutbound HTTP POST/PUT/PATCHurl, method, payload_mode
create_recordCreate a record on any object, optionally linkedobject_slug, field_values[]
generate_recordsSpawn N linked child records on a recurring cadencetarget_relation_field, date/periodicity fields
noopSynthetic pass-through (trigger → condition only)

Action text supports {{variable}} interpolation — record fields, trigger diff ({{old_value}}, {{new_value}}, {{admin_name}}), system dates ({{today}}, {{now}}, {{TODAY + 3}}), and message context ({{message_body}}, {{sender_name}}, {{sender_phone}}).

Next

On this page