run_ai_action_for_shared_link
Apply an AI Action to messages behind share link IDs. Provide a prompt ID and share link IDs to get AI-generated responses for those shared messages.
Instructions
Run an AI Action (Prompt) against one or more shared messages, addressed by share link ID.
USE WHEN: You have share link IDs — from create_message_share_link, or a link someone gave you — and want an AI Action applied to the messages behind them.
USE INSTEAD: run_ai_action if you have the message IDs directly; going through a share link adds nothing when you already have access.
FIRST: share_link_ids comes from create_message_share_link (field id) — call it first if you don't have one.
FIRST: prompt_id comes from list_ai_actions (field id) — call it first if you don't have one.
EXAMPLE: {"prompt_id":"prompt-abc","share_link_ids":["share-abc"]}
RETURNS: {share_link_ids, responses: [{language, text?, markdown?, html?, json?}], ...}.
ERROR NOT_FOUND: A share link ID does not exist, or its access has been revoked or expired. — Create a fresh link with create_message_share_link, or verify the ID with get_message_share_link.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Response language. Defaults to the original message language. | |
| prompt_id | Yes | AI Action ID, from `list_ai_actions` (its `id`). | |
| share_link_ids | Yes | Share link IDs, from `create_message_share_link` (its `id`). | |
| response_fields | No | Dot-path allowlist to shrink the response, e.g. ["results.id","total"]. Omit for the full payload. |