cliHosted AI, explicit consent
Generate reply draft
pipeline generate-reply-draft
Run the ReplyAgent to draft a reply to an inbox conversation, using workspace GTM context (offers, ICP, personas, case studies) and calendar availability. Returns the drafted message, strategy, confidence, and whether it needs human review before sending.
Parameters
workspaceId
string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
workspaceSlug
string
Required for Clerk auth. Ignored when using API key (workspace inferred from key).
linkedin_account_id
string
Optional connected LinkedIn account UUID used to scope calendar availability and reply context.
conversationrequired
object
Required. The conversation object (must include chat_id).
messages
object[]
Message thread the reply should respond to.
sentimentAnalysis
object
Optional prior sentiment classification (from analyze-sentiment) to ground strategy selection.
allowHostedAi
boolean
Must be true when this operation uses Pipeline hosted inference.
Example
CLI commandbash
pipeline generate-reply-draft \--conversation-json '{}' \--allow-hosted-ai
Response
The operation is available, but its typed response schema has not been published yet.
Exit codes
- 1
- Invalid input or local configuration.
- 2
- The API or tool returned an error.
- 3
- Authentication failed.
- 4
- A network request failed.