Библиотека / Автоматизация эл. почты
Автоматизация эл. почты
Draft Gmail replies to stock and visit inquiries with Claude Haiku
On a schedule, it handles email with Claude using Data Table, Gmail.
Что делает
## Draft Gmail replies to stock and visit inquiries with Claude ### Who's it for Small shops that answer customer emails about stock and store visits, and want replies drafted by AI but sent by a person. ### How it works 1. Every 5 minutes, gets up to 10 new emails sent to your inquiry address that have no label yet. 2. Claude sorts each email into stock inquiry, store visit, or other. 3. Stock inquiries: Claude extracts the product type, the workflow looks it up in the products Data Table, and Claude writes a reply based only on the results. 4. Store visits: Claude extracts the date (today's date is passed in, so "this Saturday" works), and the reply suggests open slots from the visit_slots Data Table. 5. The reply is saved as a Gmail draft in the same thread, and the email gets the ai-drafted label. Other emails get the needs-human label. Nothing is sent. ### How to set up 1. Add Anthropic and Gmail credentials. 2. Create two Data Tables and select them in the two lookup nodes: - products: sku, name, category, color, width_cm, price, stock, note - visit_slots: slot_date (YYYY-MM-DD), slot_time, capacity, booked 3. Create the Gmail labels ai-drafted and needs-human, and select them in the two label nodes. 4. Edit the Config node: inbox address, signature, timezone, currency. 5. Run it once, read the drafts, then publish. ### Requirements Gmail account and Anthropic API key. ### How to customize Change the product categories in Extract product category, and the reply rules in the two reply nodes. AI drafts can still contain promises that are not in your data, so read each draft before you send it. A write-up of how this template was built and tested, with screenshots (in Japanese): https://outsidernotes.com/n8n-template-gmail-stock-visit-drafts/
Шаги
- Every 5 minutes
- Get new inquiry emails
- Done
- Classify inquiry
- Claude Haiku 4.5
- Loop over emails
- Extract product category
- Look up stock
- Combine products
- Write stock reply
- Create stock reply draft
- Label as ai-drafted
- Extract visit request
- Look up visit slots
Всего шагов: 19.
Похожие автоматизации
Автоматизация эл. почтыCreate freee draft invoices from order emails with Gmail and Claude HaikuШагов: 24Поддержка клиентов и служба помощиРазбирайте чаты клиентов LINE с помощью Claude и направляйте их в Slack для ответов сотрудниковШагов: 48CRM и воронка продажScore and route web form leads using Claude Haiku, HubSpot and SlackШагов: 24Автоматизация эл. почтыSend multilingual after-visit voice instructions with OpenAI, ElevenLabs, Gmail andШагов: 16