SOP: Outreach Routing Logic (Instantly + n8n)
Purpose
This SOP defines the automated logic for routing leads from Loxo to Instantly.ai campaigns based on lead ownership. This ensures personalized “From” lines and efficient inbox management.
🚦 Routing Logic Flow
When a lead’s Global Status is updated to Outreach (auto), the n8n automation executes the following conditional routing:
| Condition (Loxo Owner) | Target Instantly Campaign | Sender Account(s) |
|---|---|---|
| Aaron | [Aaron] MPC Outreach | aaron@businessanswers.com |
| Dan | [Dan] MPC Outreach | dan@businessanswers.com |
| None / Unassigned | [Shared] MPC Outreach | info@businessanswers.com |
🛠️ n8n Workflow Configuration
1. Trigger
- Node: Loxo Trigger (or Polling)
- Filter:
person_global_status_id == [Outreach_Auto_ID]
2. Router (Switch Node)
- Check Field:
owner_name(orowner_id) - Path 1: If contains “Aaron” → Set
campaign_idto Aaron’s ID. - Path 2: If contains “Dan” → Set
campaign_idto Dan’s ID. - Path 3 (Fallback): If empty/other → Set
campaign_idto Shared Inbox ID.
3. Action
- Node: Instantly.ai API
- Endpoint:
POST /v2/leads - Payload:
{ "campaign_id": "{{$node.Router.json.campaign_id}}", "email": "{{$node.Trigger.json.email}}", "first_name": "{{$node.Trigger.json.first_name}}", "last_name": "{{$node.Trigger.json.last_name}}", "custom_variables": { "owner_name": "{{$node.Router.json.owner_name}}" } }
🧠 Strategic Benefits
- Deliverability: Rotating across personal and shared accounts reduces the risk of “info@” being flagged as spam.
- Palatability: Hiring Partners receive emails from the person they are most likely to recognize or work with.
- Accountability: Aaron and Dan only manage their own “Responded” leads in their respective Instantly Uniboxes.
- Safety Net: The Shared Inbox fallback ensures no lead is left behind if the owner field is forgotten during import.
Best Practice
When Kelsey or the offshore team imports bulk data, they should attempt to assign an owner based on the industry/territory to maximize the use of personal campaigns over the shared fallback.