SocialMate icon

SocialMate

Control WhatsApp from n8n or an AI agent: send & read messages, look up contacts, manage groups, download media, queue paced batches of personalised messages, and fetch conversation memory (Get AI Context) — all through your self-hosted SocialMate server.

Media → Set Context

AI-generated

Summary

Save an AI-generated description or transcript for a media item in SocialMate, so it can be reused in later AI conversation context without re-analysis. This operation requires SocialMate Pro.

Inputs

  • Account Name or ID — WhatsApp account to use. Select an account when the API key can access multiple accounts; it can be left empty when the key is bound to a single account.
  • Media ID (required) — ID of the media item, from Media: Get Many or a media.discovered trigger event.
  • Context (required) — Description or transcript produced by your model.
  • Options: Source — Optional name of the model or process that produced the context, such as gpt-4o or whisper-1.
  • Options: Overwrite — Whether to replace existing context. Defaults to true; set to false to fail with a 409 response if context already exists.

Output shape

A single record

Contains the API response for saving the context. The node sends the context and any supplied options to SocialMate; it does not analyze the media.

Links

Discussion