Library / AI Agents & Assistants
AI Agents & Assistants
Reply to support emails in-thread with SendRaven and OpenAI
When an API call/webhook arrives, it runs an AI agent with OpenAI / ChatGPT.
What it does
## Reply to support emails in the same thread with an AI agent A customer emails your support address. The agent reads the whole conversation and answers in the same email thread from your own domain, or leaves it for a person. ### How it works 1. SendRaven posts each received email to the webhook, signed with HMAC-SHA256. 2. The signature and timestamp are checked, the webhook is answered at once, and retries already processed are dropped. 3. Auto-replies such as out-of-office are skipped. 4. The full thread is loaded, so the agent sees earlier messages too. 5. The agent chooses reply, no reply needed (thread marked handled) or escalate (it stays in your unanswered list). 6. The reply is threaded with reply_to_message_id. Its Idempotency-Key comes from the received email, so a retry never sends it twice. ### Setup 1. Sign up at sendraven.ai and verify a domain, including the inbound MX record shown under Receiving replies. 2. Create an API key with emails:send and threads:read, ticking Hold every send for human approval while testing. Save it as a Bearer Auth credential. 3. Activate the workflow. In SendRaven, add the webhook's production URL under Webhooks, for inbound. 4. Paste the signing secret, whsec_ included, into a Crypto credential on *Compute expected signature*. 5. Add your OpenAI credential and fill in *Settings*. ### Customization tips Connect *Escalate to a person* to Slack or your helpdesk. Drop the approval hold once the drafts look right.
The steps
- SendRaven webhook
- Read raw body
- Compute expected signature
- Signature valid?
- Reject (401)
- Acknowledge (200)
- Skip webhook retries
- Inbound email
- Needs an answer?
- Settings
- Get thread
- Support agent
- OpenAI Chat Model
- Decision format
18 steps in total.
Similar automations
Web Scraping & ResearchFetch and Merge Tweets from a Twitter Thread11 stepsContent Writing & GenerationTurn a Newsletter into a Twitter Thread with Claude8 stepsSocial Media PublishingReply to X Posts Automatically with Airtop10 stepsCustomer Support & HelpdeskAnswer Intercom Chats with GPT-4o and Discord Reports30 steps