Actions21
- Assistant Actions
- Chat Actions
- Message Actions
Message → Send
AI-generatedSummary
Sends a message to a Happ chat by creating a message with the selected source, author role, and content type. The request is a POST to /api/messages; provide the required chat ID and choose any type-specific details in Additional Fields as needed.
Inputs
- Chat ID (required) — ID of the chat to send the message to.
- Text — Message text content; defaults to an empty string.
- Source (required) — Message origin: AI, API, Custom Messenger, Echat, Instagram, Messenger, Mobile, Platform, Playground, Telegram, Telegram Bot, WhatsApp, or Widget. Defaults to API.
- Role (required) — Author role: Assistant, Developer, System, or User. Defaults to Assistant.
- Type (required) — Content type: Audio, Document, File, Function Call, Function Call Output, Photo, Specific, Text, or Video. Defaults to Text.
- Additional Fields — Optional message details: Audio URL, External ID, File URL, From ID, Function Call ID, Function Call Input, Function Call Name, Function Call Output, Session ID, Specific Type, To ID, and Transcription. These are sent as fields in the request body.
Output shape
A single message response from the Happ API.
The source configures a POST to
/api/messagesand maps the selected message fields into its body. The exact response fields are not specified in the node source.
Examples
Example 1: Send a text reply to a chat
Set Chat ID to the target chat, Text to the reply, Source to API, Role to Assistant, and Type to Text.
Example 2: Send a Telegram location message
Set the target Chat ID and choose the appropriate Source and Role, set Type to Specific and Specific Type to telegram_location.