MailMoo
ToolsLeads

mailmoo_leads_import

Import lead rows into a campaign

Imports rows the user has (a spreadsheet's contents, a pasted list) into a campaign, like a CSV upload in the app: up to 1000 rows per call, each an object of column name to value, custom columns included (e.g. ICP Segment). Keys are matched to the campaign's columns by name, then by what a header names (a profile URL, Email, First Name and the like fill those columns whatever they are called); other keys become new columns. Rows need a profile URL or an email to be matched to people. People already in the campaign are skipped and blocklisted people are never enrolled. Someone whose sequence is still running in another campaign has it stopped there, so nobody is in two at once; activeElsewhere skip leaves them out instead. AI columns that fill automatically run on the new rows and can spend credits. Nobody is contacted until the campaign runs. Without confirm it imports nothing and returns the column mapping (which keys become new columns), how many people are new or already in the workspace, and who is running in other campaigns: show that to the user, then call again with confirm: true. For more rows, call again with the next part. Campaign by name or id.

Effect: Write. See Effects.

Permissions: Read campaigns, Write campaigns.

Parameters

ParameterTypeRequiredDescription
campaignstringYesThe campaign, by name or id.
rowsarray of objectYesOne object per person: column name to value, the same keys on every row.
activeElsewherestop, skipNoPeople running in another campaign: stop that sequence (the default) or leave them out of this import.
skipExistingPeoplebooleanNoLeave out anyone already in the workspace instead of enrolling them here.
confirmbooleanNoLeave out first: the call then changes nothing and returns what would happen. Show that to the user, and call again with confirm: true once they agree.

On this page