Chatwoot fazer.ai icon

Chatwoot fazer.ai

Interact with the Chatwoot API

Actions134

Conversation → Update Attachment Metadata

AI-generated

Summary

Sets a JSON metadata object on a specific attachment of a message in a Chatwoot conversation. Use it to store derived data such as transcriptions or image descriptions alongside the attachment.

Inputs

  • accountId (required) — Chatwoot account, chosen from a searchable list or entered by numeric ID.
  • inboxId (required) — Inbox, chosen from a list or entered by numeric ID. Used to scope the conversation selection.
  • conversationId (required) — Conversation that contains the message, chosen from a list or entered by numeric ID.
  • messageId (required) — Message that contains the attachment, chosen from a list or entered by numeric ID.
  • attachmentId (required) — Attachment to update, chosen from a list or entered by numeric ID.
  • attachmentMeta (required) — JSON object of metadata to set on the attachment, e.g. {"transcribed_text":"...","image_description":"..."}. Defaults to {}.

Output shape

A single item with the API response for the attachment metadata update. The exact fields are not visible in the provided source, which shows only function signatures.

The source pack is signature-only, so whether the metadata replaces or merges with existing metadata is not confirmed. Invalid JSON in the Metadata field or a non-existent ID will likely cause an error.

Examples

Example 1: Save a voice-note transcription on the attachment after a speech-to-text step.

Select the account, inbox, conversation, message and attachment (or pass IDs by expression). Set Metadata to {"transcribed_text": "{{ $json.text }}"}.

Example 2: Store an AI-generated image description for later use by agents or automations.

Set Message and Attachment by ID from a previous list step. Set Metadata to {"image_description": "{{ $json.description }}"}.

Links

Discussion