Route Contact Form Emails by Language and Department
Route incoming contact form submissions to the right team member based on their language and department. When a customer submits your contact form, AI automatically detects the language they wrote in and what department their inquiry is about, then sends an email notification to an appropriate team member.
This guide shows you how to set up intelligent contact form routing using EnforcedFlow’s AI Select fields integrated with Zapier. The AI analyzes the message content to classify both language and department, then distributes inquiries among qualified team members using round-robin rotation.
Before you begin, ensure you have:
- An account with EnforcedFlow (Sign up here)
- A Google Form with at least a message/inquiry field
- Zapier account (Starter plan or higher)
Part 1: Configure EnforcedFlow
Section titled “Part 1: Configure EnforcedFlow”After signing up, you’ll land on the EnforcedFlow dashboard where you’ll set up your routing rules.
Create an Advanced Round Robin Group
Section titled “Create an Advanced Round Robin Group”Navigate to the Advanced Round Robin section and click to create a new group:
- Enter a descriptive name for your group (e.g., “Contact Form Routing”)
- Click Create Group
Add Agent Information Fields
Section titled “Add Agent Information Fields”You need to add a field to store each agent’s email address. This is where EnforcedFlow will send form submission notifications.
In your group, under the Settings tab, find the Agent’s Information Fields section. Type email in the Add New Field input and click Add.
Once added, you’ll see the field listed under Agent’s Information Fields.
Add an AI Select Field for Language
Section titled “Add an AI Select Field for Language”Switch to the Fields tab to add an AI Select field for intelligent routing.
Click Add a New Field to open the field modal:
- Select AI Select as the field type
- Enter
Languageas the Display Label - Add context in Field Configuration to guide the AI’s classification
- Add options with AI Instructions describing when each should be selected
- Click Save
Use these values when configuring the Language field:
Field Configuration:
Detect the language of the message content. Default to English if no matching language is found| Language | AI Instruction |
|---|---|
| English | Select if the message is written primarily in English |
| Spanish | Select if the message is written primarily in Spanish |
| French | Select if the message is written primarily in French |
Add an AI Select Field for Department
Section titled “Add an AI Select Field for Department”Add a second AI Select field for additional classification.
Click Add a New Field to open the field modal:
- Select AI Select as the field type
- Enter
Departmentas the Display Label - Add context in Field Configuration to guide the AI’s classification
- Add options with AI Instructions describing when each should be selected
- Click Save
Use these values when configuring the Department field:
Field Configuration:
Classify the inquiry type based on the message content. Default to Support if no matching department is found| Department | AI Instruction |
|---|---|
| Sales | Select if the inquiry is about pricing, purchasing, demos, or becoming a customer |
| Support | Select if the inquiry is about technical issues, bugs, help requests, or existing product problems |
| Billing | Select if the inquiry is about invoices, payments, refunds, subscriptions, or account charges |
Once saved, you’ll see your fields listed in the Fields tab.
Add Your Agents
Section titled “Add Your Agents”Switch to the Agents tab to add your team members:
- Click the Agents tab
- Click Add Agent to open the agent form
Each agent needs an email address where they’ll receive contact form notifications.
Adding an Agent
Section titled “Adding an Agent”Fill in the agent form:
- Agent Name - Enter a display name for this agent
- Email - Enter the agent’s email address
- Language - Select the languages this agent can handle
- Department - Select the departments this agent belongs to
- Click Add Agent to save
Repeat for each team member.
Part 2: Create the Automation
Section titled “Part 2: Create the Automation”This automation triggers when someone submits your contact form and sends an email to the right team member based on their language skills and department.
Step 1: Set Up the Google Forms Trigger
Section titled “Step 1: Set Up the Google Forms Trigger”Create a new Zap in Zapier, then:
- Select Google Forms as the app
- Choose New Form Response as the trigger event
- Connect your Google account
- Select your form and click Continue
Test the Trigger
Section titled “Test the Trigger”Test the trigger to pull a sample form response. This data will be used to configure the next steps.
Step 2: Add the EnforcedFlow Action
Section titled “Step 2: Add the EnforcedFlow Action”Click the + button to add a new step.
Search for the EnforcedFlow app:
- Type EnforcedFlow in the search box
- Select EnforcedFlow from the results
Configure the action and connect your account:
- Select Get Next Agent (Advanced Round Robin) as the action
- Connect your EnforcedFlow account
- Click Continue
Select the Round Robin Group
Section titled “Select the Round Robin Group”Select your round-robin group:
- Click on Round Robin Group dropdown
- Select your group from the list
Configure Field Mapping
Section titled “Configure Field Mapping”After selecting your group, configure the field mapping:
-
The Round Robin Group shows your selected group
-
Map the Language field to the Message field from your Google Forms trigger
-
Map the Department field to the Message field from your Google Forms trigger
-
Click Continue
EnforcedFlow will use these values to find the best matching agent.
Test to Retrieve Agent Data
Section titled “Test to Retrieve Agent Data”Click Test step to retrieve agent data. This is required for the next step to work properly.
Step 3: Send Email to the Assigned Agent
Section titled “Step 3: Send Email to the Assigned Agent”Add a new step and select Email by Zapier with the action Send Outbound Email.
Configure the recipient:
- Click in the To field
- Expand Get Next Agent (Advanced Round Robin)
- Select Agent Meta Email
This sends the email to whichever agent EnforcedFlow selected.
Configure the email content:
- Add a Subject line (e.g., “New Form Submission”)
- Click in the Body field
- Select fields from the form response (e.g., Message, Name, Email)
Test the step to verify the email is sent correctly.
Publish the Automation
Section titled “Publish the Automation”Test the step to verify it works, then click Publish to activate the automation.
Summary
Section titled “Summary”You’ve now set up AI-powered contact form routing:
| Component | Purpose |
|---|---|
| EnforcedFlow Group | Stores agents with their languages, departments, and email addresses |
| Language Field | AI classifies the language of the message (English, Spanish, French) |
| Department Field | AI classifies the inquiry type (Sales, Support, Billing) |
| Zapier Automation | Routes form submissions and sends email to the right agent |
How it works:
- A customer submits your contact form
- Zapier triggers and sends the message content to EnforcedFlow
- AI analyzes the message to detect language and classify department
- EnforcedFlow finds an agent who handles that language AND department (using round-robin among qualified agents)
- An email is sent to that agent with the form submission details
This ensures Spanish-speaking billing inquiries go to Spanish-speaking billing team members, French support questions go to French-speaking support agents, and so on - all automatically with fair rotation!