Перейти к содержанию
НОВОЕМаркетплейс и ваша команда: продавайте то, что создали, и получайте планы и изменения, проверенные до того, как вы их увидите. Что нового

Библиотека / Автоматизация эл. почты

Автоматизация эл. почты

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/

Шаги

  1. Every 5 minutes
  2. Get new inquiry emails
  3. Done
  4. Classify inquiry
  5. Claude Haiku 4.5
  6. Loop over emails
  7. Extract product category
  8. Look up stock
  9. Combine products
  10. Write stock reply
  11. Create stock reply draft
  12. Label as ai-drafted
  13. Extract visit request
  14. Look up visit slots

Всего шагов: 19.

Похожие автоматизации