Automate MailInApp with n8n: Leads, Deals, Journeys & Interactive Emails

The n8n-nodes-mailinapp community package gives n8n a MailInApp node for contacts, deals, journeys and email, and a MailInApp Trigger that starts workflows from MailInApp events. Build a lead flow once and every new signup is saved, verified, put on your pipeline, nurtured and sent an interactive survey they can answer in their inbox.

Subject

Thanks for reaching out, Mark

One n8n workflow can turn a simple form into a MailInApp contact, a deal on your pipeline, a nurture journey and an interactive email, all automatically. The MailInApp nodes do the wiring, so there's no HTTP request to build by hand.

The n8n-nodes-mailinapp community package adds two nodes to n8n. The MailInApp node acts on your account: contacts, contacts lists, deals, journeys, pipelines and transactional email. The MailInApp Trigger starts a workflow when something happens in MailInApp. The video below builds the whole lead flow from start to finish.

Install and connect

On n8n Cloud, an instance owner or admin opens the nodes panel, searches for MailInApp and selects Install. On self-hosted n8n, go to Settings → Community Nodes → Install and enter n8n-nodes-mailinapp. Then, in MailInApp, open Developers, create an API key (it starts with mia_live_ and is shown once) and paste it into a new MailInApp API credential in n8n. Saving the credential tests the connection.

n8n has verified the package, so it runs on n8n Cloud and on self-hosted n8n alike.

From form to contact

Start with n8n's On form submission trigger and add Create or update a contact. Pick the list, map the email, and map the other answers to the list's real columns: the dropdown loads them for you. MailInApp verifies every address as it saves it, so a typo or a made-up address is flagged before you ever mail it.

Put the lead on your pipeline

Add Create a deal with the contact's email, a title, a pipeline, a stage and a value. Set an idempotency key too: if the workflow ever retries, MailInApp returns the same deal instead of creating a second one. Later, Update a deal moves it to another stage, Won and Lost included, and the pipeline board follows.

Nurture, then say thank you

Enroll a contact in a journey lists only the journeys whose trigger is API call, so a new lead joins the right sequence in one step. Send a transactional email then sends either your own subject and HTML, or a studio project with merge values. Choose the studio project and the lead gets a real interactive email, such as a survey they answer with one click in their inbox. No landing page, no extra step.

For marketing email, use journeys and sends in MailInApp, where each contact's consent is recorded.

Start workflows from MailInApp

The MailInApp Trigger listens for the account events you pick, such as Contact Created, Form Submitted, Deal Stage Changed or Response Completed. Publishing the workflow subscribes to them in MailInApp, where the subscription shows under Developers → Webhooks. Unpublishing removes it. Every delivery is signed, and the trigger turns away anything that doesn't come from MailInApp.

Give an AI agent your contacts

The MailInApp node also works as a tool for n8n's AI Agent. Add it with Get a contact, let the model fill in the email, and the agent can answer "who is this lead and which list are they on?" by itself. For more tools, connect the agent to MailInApp's MCP server as well.

Getting started

Install n8n-nodes-mailinapp, create an API key in MailInApp, and build the lead flow: form, contact, deal, journey and email. Then add a MailInApp Trigger so replies and deal changes start the next workflow on their own.

Watch: automate MailInApp with n8n

A walkthrough of the MailInApp n8n node: capture leads, move deals, enroll contacts in journeys and send interactive emails.

A typical build-and-send sequence

  1. 1

    Install the node and connect your account

    On n8n Cloud, search for MailInApp in the nodes panel and install it; on self-hosted n8n, install n8n-nodes-mailinapp from Settings → Community Nodes. Then paste an API key from Developers into a new MailInApp API credential.

  2. 2

    Save every form lead as a contact

    Start with n8n's On form submission trigger, then add Create or update a contact. Pick your list and map the email, name and other fields to the list's real columns. MailInApp verifies each address as it saves it.

  3. 3

    Put the lead on your pipeline

    Add Create a deal with a pipeline, a stage and a value, plus an idempotency key so a retried run returns the same deal. Update a deal moves it to another stage later, Won included.

  4. 4

    Nurture and say thank you

    Enroll a contact in a journey whose trigger is API call, then Send a transactional email: your own subject and HTML, or a studio project with merge values, such as an interactive survey.

  5. 5

    Start workflows from MailInApp events

    Add the MailInApp Trigger and pick events such as Contact Created or Deal Stage Changed. Publishing the workflow subscribes to them in MailInApp, and unpublishing removes the subscription.

Frequently asked questions

Which n8n versions can install the MailInApp nodes?

Both n8n Cloud and self-hosted n8n. n8n has verified the package, so on Cloud an instance owner or admin installs it from the nodes panel by searching for MailInApp. On self-hosted n8n, install n8n-nodes-mailinapp from Settings → Community Nodes.

What can the MailInApp node do?

Create or update and get contacts, list your contacts lists, create and update deals, enroll contacts in API-triggered journeys, send transactional email, and read pipelines, journeys and A/B experiments. Dropdowns load your real lists, fields, journeys, pipelines and stages.

Which events can start a workflow?

The MailInApp Trigger offers every account event, including Form Submitted, Interaction Received, Contact Created, New Lead, Meeting Booked, Deal Stage Changed, Purchase Completed, Journey Completed and Response Completed. Every delivery is signed, and the trigger turns away any request that doesn't come from MailInApp.

What email can a workflow send?

Transactional email, such as receipts and notifications. For marketing, enroll the contact in a journey or send from MailInApp, where each contact's consent is recorded.

Can an n8n AI agent use MailInApp?

Yes. The MailInApp node works as a tool for n8n's AI Agent, for example to look up a contact by email. For a wider set of tools, also connect the agent to MailInApp's MCP server with an MCP Client Tool node.

Build this in the studio

Start on the free plan — every interactive block and the full fallback engine are included on every tier.