Actions9
Save Message to Inbox
AI-generatedSummary
Save a WhatsApp message to the inbox by specifying the contact's phone number, the message role (user or assistant), text content, and optional media details such as type and URL. Optionally mark whether the message was generated by AI.
Inputs
- Phone Number (required) — The phone number of the contact in international format to which the message belongs.
- Role (required) — Indicates whether the message role is 'User (Inbound)' for incoming messages or 'Assistant (Outbound)' for AI assistant messages.
- Message Content (required) — The text content of the message to save.
- Media Type — Optional media type if the message includes media; can be one of: Image, Video, Audio, Document, or None.
- Media URL — The URL of the media file associated with the message; must be provided if Media Type is set to a media value.
- Is From AI — Boolean flag to indicate whether the message was generated by AI; defaults to true.
Output shape
a record representing the saved message data as returned by the Nashir API
The output contains JSON objects returned from the Nashir API after the message is saved to the inbox. Each execution input item results in one or more records corresponding to the API response. Errors are returned in the error field if continueOnFail is enabled.