Have MentionAgent write the reply
draft_replySPENDS CREDITS. Sends nothing. Starts MentionAgent's own reply writer on one thread and returns a jobId; poll get_draft_reply for the result. Use this rather than writing the reply yourself when the answer should propose a placement: it crawls their site and picks the page and the exact paragraph to ask for, which you cannot do from the thread text alone. Once terms are agreed it also writes the placement record that get_thread shows and mark_deal closes. Usually takes 1 to 4 minutes; a reply that proposes a real placement is the slow case, so do not write your own replacement while it runs. It follows the workspace's standing negotiation rules (see get_campaign) on its own. Pass 'guidance' to steer what it offers on this one thread.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Only when regenerating after seeing a draft you did not want. 'different_spot' keeps the same page and finds another paragraph; 'different_blog' picks a different page. Pass pageUrl with either. | |
| pageUrl | No | The page the previous draft proposed. Required with mode. | |
| guidance | No | Optional steer, e.g. 'offer socialrails.com for their automation guide'. Up to 1000 characters. | |
| skipPageUrls | No | With mode 'different_blog': pages already tried, so it picks a fresh one. | |
| conversationId | Yes | From list_inbox or get_thread. | |
| avoidAfterTexts | No | With mode 'different_spot': insertion points already tried. |