younifyd
Menu

Send Message

Send a customer's message to an assistant and get its reply, so an assistant can answer on WhatsApp, SMS, Slack or any other channel a workflow can receive

Use it in a workflow

  1. Add a step and choose the Assistant connector.
  2. Pick the Send Message action (under ai).
  3. Fill in the fields below, then reference the result from later steps as {{sendMessage.response.data}}.

Fields

agentSlugstringrequired

Which assistant answers

messagestringrequired

What the customer said, in their own words

sessionKeystringrequired

What identifies this conversation — a phone number, a chat id, a customer id. The same key continues the same conversation, so the assistant remembers what was said before.

headersstring

JSON object of headers sent to every tool the assistant calls, e.g. {"X-Customer-ID":"{{steps.lookup.response.data.id}}"}. This is how you tell your workflows who the customer is when there is no sign-in — the assistant cannot change or override these.

Examples

Answer an incoming WhatsApp message

Key the conversation on the sender's number so the thread continues across messages

json
{
  "agentSlug": "support",
  "message": "{{trigger.body.messages[0].text.body}}",
  "sessionKey": "{{trigger.body.messages[0].from}}"
}

Need more? See the Assistant guide for connection setup and behaviour shared by every action.

Was this page helpful?