EnforcedFlowDocsAPI reference

Gmail, Outlook and other email clients

Leads landing in your inbox? Set up a filter that forwards each lead email to your group’s email address as it arrives. Each one becomes a lead in EnforcedFlow, and goes to the next agent.

Jump to your email:

Caution

Forward only lead emails. Don’t forward your whole inbox: every email you forward becomes a lead and goes to an agent. Set your filter to match only your leads, such as emails from your contact form’s sender address, or with its subject.

You need a group in EnforcedFlow with at least one agent. See Create a group.

EnforcedFlow forwards each lead to the agent it picks, at the agent’s email address. See Add agents. Each email is also saved as a lead, on the Leads page.

  1. In EnforcedFlow, click Lead Router, then your group.
  2. Stay on the Settings tab.
  3. Under Group Email Address, click the copy button.
The group's Settings tab in EnforcedFlow: Group Email Address sales-leads-2a7zxoaq-v2@inboxhook.com outlined in red, with a copy button at the end of the field

Your address looks like sales-leads-2a7zxoaq-v2@inboxhook.com. Yours is different. Keep it on your clipboard for the next steps.

Gmail forwards with a filter only to an address it has confirmed. So first add your group’s address, then confirm it, then make the filter.

  1. Click the gear at the top right, then See all settings.
Gmail's gear icon, and the Quick settings panel with See all settings outlined
  1. Click the Forwarding and POP/IMAP tab.
  2. Click Add a forwarding address.
Gmail settings, Forwarding and POP/IMAP tab, with the Add a forwarding address button outlined
  1. Paste your group’s address and click Next.
  2. Gmail opens a small window. Click Proceed, then OK.
Gmail's Add a forwarding address box, with the group's address sales-leads-2a7zxoaq-v2@inboxhook.com typed in, and the Next button
Caution

Leave Disable forwarding selected. Forward a copy of incoming mail to sends your whole inbox to the group. The filter in step 3 sends only your leads.

2. Confirm the address with Gmail’s code

Section titled “2. Confirm the address with Gmail’s code”

Gmail now sends a confirmation email to your group’s address. It has a confirmation link and a confirmation code. Like any email sent there, it becomes a lead in EnforcedFlow:

  • The next agent in the group gets it, or you do, when no agent can take it or the agent has no email. Ask them for the code.
  • Or open the Leads page in EnforcedFlow, and click the newest lead: Gmail’s confirmation email. The code is in its Details.

Then, back in Gmail:

  1. Go to See all settings → Forwarding and POP/IMAP again.
  2. Type the code into the confirmation code box and click Verify.

The confirmation email stays in EnforcedFlow as a lead. Once you’re done, open it on the Leads page and click Archive.

  1. In Gmail’s search bar, click the Show search options icon, at its right end.
  2. Fill in what only your lead emails have. Usually that’s From, the address your contact form sends from, such as wordpress@yourbusiness.com. Or use Subject, such as New contact form submission.
  3. Click Search first, to check it finds only lead emails. Then open the search options again.
  4. Click Create filter.
Gmail's search options, with From set to wordpress@yourbusiness.com and the Create filter button outlined
  1. Tick Forward it to, and choose your group’s address.
  2. Click Create filter.
Gmail's filter actions for from:(wordpress@yourbusiness.com): Forward it to ticked and outlined, with its Choose an address menu, and the Create filter button

From now on, each new lead email goes to your group as it arrives. You still keep it in Gmail. Old emails aren’t forwarded.

Note

The Forward it to menu lists only confirmed addresses. If your group’s address isn’t there, finish step 2 first.

This covers Outlook.com, and Outlook on the web for Microsoft 365 work accounts (the new Outlook for Windows looks the same).

  1. Click the gear at the top right to open Settings.
  2. Go to Mail → Rules.
  3. Click Add new rule.
  4. Give the rule a name, such as Leads to EnforcedFlow.
  5. Under Add a condition, pick what only your lead emails have: From, with your contact form’s sender address, or Subject includes, with the form’s subject.
  6. Under Add an action, pick Forward to, and paste your group’s address.
  7. Click Save.

Outlook doesn’t send a code to your group’s address. It may ask you to sign in again before it saves.

Caution

Microsoft 365 work accounts: most organisations block automatic forwarding to outside addresses. Microsoft has turned it off by default for new organisations since 2021. If yours is blocked, the rule saves, but each forward bounces back to you with 5.7.520 Access denied, Your organization does not allow external forwarding. Ask your Microsoft 365 admin to allow automatic forwarding for your mailbox (in the outbound spam policy).

Many web hosts give you Roundcube as your webmail. You open it from cPanel’s Email Accounts → Check Email, or at an address like yourdomain.com/webmail.

  1. Click Settings, then Filters.
  2. Click Create.
Roundcube Settings, with Filters and the Create button outlined
  1. In Filter name, type a name, such as Leads to EnforcedFlow.
  2. Under Rules, choose From, contains, and your contact form’s sender address. Or choose Subject and the form’s subject.
  3. Under Actions, choose Send message copy to, and paste your group’s address. You keep your own copy.
  4. Click Save.
Roundcube's new filter Leads to EnforcedFlow: the rule From contains wordpress@yourbusiness.com, and the action Send message copy to sales-leads-2a7zxoaq-v2@inboxhook.com, with the Save button
Note

No Filters in Roundcube’s Settings? Your host makes filters in cPanel instead. In cPanel (or the webmail home page), open Email Filters, click Manage Filters next to your address, then Create a New Filter. Set the rule to From with your form’s sender address, set the action to Redirect to Email with your group’s address, and click Create.

cPanel’s Forwarders send every email that arrives at an address on to another one. Use it only for an address that gets nothing but leads, such as a leads@yourdomain.com your contact form sends to. For an inbox that gets other email too, use a filter instead.

  1. Log in to cPanel. Under Email, click Forwarders.
  2. Click Add Forwarder.
  3. In Address to Forward, type the part before the @, such as leads, and pick your domain.
  4. Under Destination, choose Forward to Email Address, and paste your group’s address.
  5. Click Add Forwarder.

If the address is also an email account, it still gets its own copy of each email.

Send a test lead: fill in your contact form, so an email arrives that your filter matches. Then open the Leads page in EnforcedFlow. The lead shows there, with the agent it went to. That agent also gets the email.