File Format - Outreach Templated Email

Outreach Templated Email File Format

The Outreach Templated Email file allows integrators to send email messages that use a pre-configured template through Tulip’s Outreach system. Templates are configured in Admin Console and support replacement terms (dynamic variables) that are populated at processing time using the provided context entities.

The first line of an Outreach Templated Email CSV file must be the header row. Each subsequent row creates a separate outreach job.

File Prefix: TOTE

Feature Gate: The environment must have outreach-plus enabled; otherwise, the file will fail to upload any records successfully.

Spec

The following table shows the accepted CSV columns for the Outreach Templated Email entity.

CSV HeaderData TypeRequiredDescription
Template IDstringYesTemplate UUID or External ID
Employee IDstringYesEmployee UUID or External ID — required if template has employee replacement terms, or if From is not provided
Customer IDstringYesCustomer UUID or External ID — required if template has customer replacement terms, or if To is not provided
Store IDstringYesStore UUID or External ID — required if template has store replacement terms
TostringYesRecipient email address override. If left blank, the system resolves the address from the Customer ID.
FromstringYesSender email address override. If left blank, the system resolves the address from the Employee ID or template/configuration defaults.
Campaign IDstringNoLinks the dispatch to a campaign
Expiry DatestringNoExpiration time in UTC ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). If the message has not been dispatched by this date, it will be marked as Expired.
Start DatestringNoScheduled send time in UTC ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ). If in the future, the message is held until this time.

Sender and Recipient Resolution

For templated files, the To and From fields can be left blank. If not provided, the system resolves them from the context entities:

Recipient (To) fallback logic:

  1. If To is provided, use it directly
  2. If not provided, get the customer’s primary email address
  3. If no primary is set and multiple exist, use the one with the most recent date_created
  4. If the customer has no email address, the request fails

Sender (From) fallback logic:

  1. If From is provided, use it directly
  2. If not provided, use the employee’s email address
  3. If the employee has no email address, fall back to the template’s configured sender
  4. Final fallback: use the default sender from the Outreach Configuration (emailDefaultSender)

Sender Name (From Name) fallback logic:

  1. Employee’s display name (full name)
  2. Template’s configured sender name

Replacement Terms

If a template contains replacement terms (e.g., {{employeename}}, {{customerfirstname}}, {{storename}}), the corresponding context entity must be provided. The template content is populated at the time the file is processed — the final resolved content is stored on the job record.

Important Notes

  • All dates must be in UTC ISO 8601 format (YYYY-MM-DDTHH:mm:ssZ).
  • If To or From are left blank, the system resolves addresses from the Customer/Employee IDs.
  • Each CSV row creates a separate outreach job.
  • Success/failure can be monitored in Admin Console under Outreach Jobs.
  • A successfully processed row means the job has been accepted for sending. It does not guarantee delivery.
  • Template replacement terms are resolved when the file is processed, not when the message is sent.

Outreach Templated Email CSV Example

See the following Outreach Templated Email CSV sample file.

Outreach Templated Email Sample 1