AAAli Asghar
← All work

Newsletter Parser to CRM

an investment firm

n8nIMAPAffinitySlack

The problem

Deals mentioned in an inbound newsletter were read and entered by hand, slowly and inconsistently.

What was built

  • Inbound email parsed into individual deals with formatting and encoding cleaned up
  • Each organisation matched in the CRM, with a fallback when no record exists
  • A note attached to the matched organisation
  • A notification posted per parsed deal

Inside the build

The workflows behind this system

View-only previews of the production workflows, drawn from the real builds with client details removed. The workflow files and walkthrough videos are available on request.

TriggerAILogicAPI callApp integration
Newsletter Parser: Affinity -> sub-workflow-1n8n9 nodes
Search for the Organization (Affinity)Search for the Organi…AffinityGet an organization by Id (Affinity)Get an organization b…AffinityStart (Execute Workflow Trigger)StartExecute Workflow TriggerIf (If)IfIfMapped Data (Set)Mapped DataSetCall Client Newsletter Parser: Af… (Execute Workflow)Call Client Newslette…Execute WorkflowCode in JavaScript (Code)Code in JavaScriptCodeIf1 (If)If1IfHTTP Request (Http Request)HTTP RequestHttp Request
Newsletter Parser: Affinityn8n4 nodes
Email Trigger (IMAP) (Email Read Imap)Email Trigger (IMAP)Email Read ImapParse Template (Code)Parse TemplateCodeIf lead, link, note not empty (If)If lead, link, note n…IfCall My Sub-workflow (Execute Workflow)Call My Sub-workflowExecute Workflow
Newsletter Parser: Affinity -> sub-workflow 2n8n3 nodes
Start (Execute Workflow Trigger)StartExecute Workflow TriggerCreate Note (Http Request)Create NoteHttp RequestSend a message (Slack)Send a messageSlack