Reply drafting

Reply drafting

ParseRail turns a customer thread and your context into a ready-to-send reply. The reply uses the requested tone and includes an internal note for the agent.

Cost: 5 credits ($0.05) — charged only on success.

post/v1/reply

Request

  • Base URL: https://api.thecompound.tech
  • URL: https://api.thecompound.tech/v1/reply
  • Auth: HTTP bearer

Headers

ParseRail-Dry-Run'1' | 'true'

Send 1 to dry-run the call. ParseRail runs auth, the throttle, body validation and the balance precheck. It returns 200 with the cost and the status a live call would get. No model runs and nothing is charged, so a key with a zero balance works. Dry runs count against the per-key rate limit.

Idempotency-Keystring

Key for one logical operation. Same body replays the result for 24 hours; a different body with the same key returns 409.

Request body

threadstring required

Provide the email/ticket thread with the newest message last.

contextstring

Provide the policies, KB extracts, and account facts that the reply may use.

tone'professional' | 'friendly' | 'apologetic' | 'firm'
goalstring

State what the reply should achieve, e.g. "offer refund, keep them".

senderNamestring

Sign-off name.

Response

The call succeeded. The response contains result fields and a usage envelope. With ParseRail-Dry-Run: 1 the body is a DryRun object instead.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.