Gmail support replies from Pinecone

Answers Gmail support mail from a Pinecone knowledge base. This n8n template listens for new incoming Gmail messages and classifies each one using AI as either Customer Support or Other. For support mail, an AI agent searches a Pinecone knowledge base for FAQs and policies and generates a helpful, polite and detailed reply with an OpenRouter model. OpenAI is used for embeddings. The drafted email is automatically sent back to the customer. The example reply signs off as a sample persona from a sample company, which you replace. Setup needs Gmail OAuth2, OpenRouter, OpenAI and Pinecone credentials. It suits teams with FAQs and policies to load.

n8nRead on 2026-11-165 steps

Steps

  1. Trigger: Gmail trigger listens for new messagesGmail
  2. AI classifies: Customer Support or OtherOpenRouter
    If Other, the workflow stops.
  3. AI agent searches the Pinecone knowledge basePinecone
    FAQs and policies.
  4. Generates a reply with an OpenRouter modelOpenRouter
  5. Output: Reply sent back to the customer in GmailGmail

Limits

  • The example reply signs off as a sample persona.
  • The drafted email is sent to the customer automatically.

What it does well

  • Replies draw on a Pinecone knowledge base of FAQs and policies.

Before you import

You need: Gmail OAuth2, OpenRouter API, OpenAI API, Pinecone API.

Similar templates