Compose a Setell quote email
setell_compose_quoteDraft a quote email using AI in your brand voice and generate a single-use token tied to the quote version and recipient. Requires operator approval before sending.
Instructions
Draft the quote email body (AI-generated in the operator's brand voice) AND mint a single-use confirmation token bound to this quote version + recipient. Returns: quote (id, version, total, lineItems), email (to, subject, bodySnippet), portalUrl, customer, confirmationToken, confirmationExpiresAt, recipientOverride. Narrate the preview to the operator; on their explicit approval call setell_send_quote with the token verbatim. The token is single-use, expires in 15 minutes, and binds the specific quote version + recipient — any revision or recipient change requires re-composing. Plan-gated (counts against the operator's monthly AI quote quota).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tone | No | Email tone. Default 'friendly'. The composer always uses the operator's brand voice from UserSettings; tone controls the cadence. | |
| jobId | Yes | The job id whose latest quote should be composed for sending. | |
| recipientEmail | No | Override the recipient. Defaults to the customer's email on file. If set, MUST match what setell_send_quote uses — drift between compose and send invalidates the token. | |
| customInstructions | No | Optional one-paragraph instructions for the AI composer (e.g. "mention the customer prefers Sunday meetings"). Stays under 1000 chars. |