Create a welcome message
create_welcome_messageCreate the message one account sends automatically to each person the first time they write to it, and return its id and whether it is active. It is switched on at once, so it reaches real people from then on: confirm the text with the user first. Each account can have only one, and a second one is rejected (check list_welcome_messages; to change it use update_welcome_message). It only reaches new conversations; to also send it to existing contacts use send_welcome_to_existing_contacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | Text of the welcome message, as the person will read it. | |
| accountId | Yes | Account that sends it (id from list_accounts). One welcome message per account. | |
| idempotencyKey | No | Optional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice. |