If you’re swamped with customer emails, you’re not alone. Responding to customer queries is a time-consuming task, often requiring a team well-versed in the technical aspects of your products.
According to a survey, 44% of customers expect an email reply within 4 hours. So, how can you make this process more efficient without compromising on customer satisfaction?
Can I Use AI to Respond to Email?
Absolutely, you can automate your email responses in two ways:
- Manual Input Method: Use an AI-powered email response generator where you manually input the email content and specify its intent. Then, copy and paste the generated reply into your email.
- Fully Automated Method: Combine automation software like Zapier with an AI query responder API like Lexy to take care of the process from start to finish.
How Does an AI Email Responder Work?
AI email responders utilize Natural Language Processing (NLP) engines such as GPT or Claude to interpret incoming emails. These AI engines then query a database—comprising your company’s knowledge base—to find relevant answers. Once the appropriate response is determined, an AI writing model crafts a personalized reply.
Lexy offers an all-in-one service through its API to accomplish these tasks, making it an ideal choice for this setup.
Step-by-Step Guide to Setting Up Your Automated Email Responder
Step 1: Create a Lexy Account
- Navigate to Lexy’s Website: Go to Lexy and click on the “Sign Up” button.
- Notion Account Requirement: Lexy relies on Notion to store your knowledge base. Therefore, you’ll need an existing Notion account to proceed.
- Follow the Sign-Up Process: Complete the sign up by linking your Notion account.
Step 2: Add Your Knowledge Base to Notion
- Organize Your Knowledge: Create a Notion page and populate it with FAQs or any essential information about your product. For this guide, we’ll use an imaginary product, the Softy5000 automatic ice cream maker.
- Use Headers and Bullet Points: Make your knowledge base easy to navigate by using headers for topics and bullet points for details.
Step 3: Create a Bot in Lexy
- Authorize Notion Pages: In Lexy’s dashboard, connect the Notion pages that make up your knowledge base.
- Name Your Bot: Give your bot a specific name that correlates to its purpose.
- Select Notion Pages: Choose the pages you want this bot to reference for its answers.
Step 4: Create a Zapier Account
- Go to Zapier: Navigate to Zapier’s website and sign up for a new account.
- Follow Registration Process: Complete the form and set up your account.
5. Create a Zap in Zapier for Automated Email Responses
Creating a Zap—Zapier’s term for an automated workflow—connects Gmail to Lexy, automating the process of receiving and responding to emails. Below is a step-by-step walkthrough to help you build your Zap.
Step 5.1: Launch a New Zap
- Log in to your Zapier account.
- Click on the ‘Make a Zap’ button usually found at the top right corner.
Step 5.2: Set Up Your Trigger
- In the “Search apps” field, type “Gmail” and select it from the dropdown.
- Choose the trigger event, in this case, “New Email.”
- Click “Continue.”
- Now you need to sign in to your Gmail account and grant permissions to Zapier if prompted.
- After signing in, you can filter which emails should trigger the Zap. For example, specify a folder for customer inquiries.
- Click “Test Trigger” to make sure it’s working correctly.
Step 5.3: Set Up Your Webhook for Lexy
- In the “Do This…” section, search for “Webhooks” and select it.
- For the event, choose “POST.”
- Click “Continue.”
Step 5.4: Configure Webhook Data
- In the URL field, paste the URL link you get from the Lexy API documentation. **https://server.lexy.so/api/bot/ask**
- Under Payload Type, select “json.”
- Configure the data fields:
token: Navigate to Lexy > Bots > Your Bot > Install Me > Copy the API token.
chatHistory: Type in an empty array “”.
query: This should be the text content from the email that triggered this Zap. It can usually be populated from dynamic fields provided by Zapier in the form of “Email Body Plain” or “Email Body HTML,” depending on how you want to capture it.
Click “Continue” and test this step. If configured correctly, you’ll see a message stating, ‘content: I don’t have enough information to answer your question’.
Step 5.5: Add Gmail Step for Sending Email
- Add a new action in your Zap workflow.
- Search for Gmail and select “Send Email.”
- Configure the action with these settings:
- To: Result of step 1 (From Email)
- From: Your email address
- Subject: You can concatenate with
RE: [Subject from Step 1]
- Body: Use the result from the Webhook step, often noted as “Res Content from Step 2.”
- Optionally, add a message like: This response was generated by Lexy AI. If you still need help, respond to this email saying ‘Live Agent’.
Step 5.6: Publish Your Zap
- After testing all the steps, click on the “Publish Zap” button.
- Your Zap is now live and will automate responses for incoming emails based on your setup.
Step 6: Test Your Zap in Gmail
Send a test email with a query about Softy5000. Make sure your email complies with the Gmail filter settings you’ve applied, so it triggers the Zap.
Step 7: Receive an AI Email Response
Within about 60 seconds, check your inbox for an AI-generated response. If set up correctly, it should answer your query based on your Notion knowledge base.
Automating customer service emails using Lexy, Zapier, and Gmail isn’t just doable—it’s incredibly efficient. Your customers get timely, informative responses, and you free up time for your team to focus on other critical aspects of your business.
Need help setting this up? Reach out to us through our contact form!