Skip to content

Close ​

Creates a Close lead and its contact from an email, logs the email, adds a note, a task or an opportunity.

The Close node creates a lead and its contact from an email, then feeds it: logged email (nothing is sent), note, task, opportunity.

It works with a Close connection. See Close.

At a glance ​

  • Type: close.api · version 1
  • Category: Data
  • Kind: Step — one stage of a run
  • Effect: Writes outside (external_write) — writes outside Loop & Roll; described instead of performed during a test run
  • Needs a carrier email: No
  • Connection: Close
  • Inputs: main
  • Outputs: main
The ports of “Close”: what comes in on the left, what goes out on the rightInput: main. Outputs: main. An error output appears when its failure setting is “Follow the Error output”. It needs a Close connection.Closeclose.apimainmainerror · only with “Follow the Error output”Connection: Close
The ports of “Close”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Close connection.

Parameters ​

connection ​

Close connection — The Close connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

action ​

Action

  • Type: One choice (options)
  • Required: Yes
  • Default: createLead
  • Options:
    • createLead — Create a lead and its contact
    • getLead — Get a lead
    • createContact — Add a contact to a lead
    • addNote — Add a note
    • logEmail — Log the received email
    • createTask — Create a task
    • createOpportunity — Create an opportunity

leadId ​

Lead — The Close identifier (lead_…).

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 80 characters at most
  • Example: {{ data.close.leadId }}
  • Shown when: action is one of getLead, createContact, addNote, logEmail, createTask, createOpportunity
  • Expressions: {{ }} accepted

companyName ​

Lead name (company)

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 255 characters at most
  • Example: {{ email.from.name }}
  • Shown when: action is createLead
  • Expressions: {{ }} accepted

contactName ​

Contact name

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 255 characters at most
  • Example: {{ email.from.name }}
  • Shown when: action is one of createLead, createContact
  • Expressions: {{ }} accepted

email ​

Contact email

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is one of createLead, createContact
  • Expressions: {{ }} accepted

phone ​

Contact phone

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 40 characters at most
  • Shown when: action is one of createLead, createContact
  • Expressions: {{ }} accepted

status ​

Lead status — Empty: the organization’s first status.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (close.leadStatus)
  • Listed with the connection in: connection
  • Shown when: action is createLead

text ​

Text — The lead description, the note, the task or the opportunity note.

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 50000 characters at most
  • Example: {{ email.bodyText }}
  • Shown when: action is one of createLead, addNote, createTask, createOpportunity
  • Expressions: {{ }} accepted

sender ​

Sender

  • Type: Text (string)
  • Required: Yes
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.from.email }}
  • Shown when: action is logEmail
  • Expressions: {{ }} accepted

recipient ​

Recipient

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 320 characters at most
  • Example: {{ email.to[0].email }}
  • Shown when: action is logEmail
  • Expressions: {{ }} accepted

subject ​

Subject

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 998 characters at most
  • Example: {{ email.subject }}
  • Shown when: action is logEmail
  • Expressions: {{ }} accepted

body ​

Email body

  • Type: Long text (text)
  • Required: No
  • Default: "" (empty)
  • 100000 characters at most
  • Example: {{ email.bodyText }}
  • Shown when: action is logEmail
  • Expressions: {{ }} accepted

dueDate ​

Due date — YYYY-MM-DD. Empty: today.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is createTask
  • Expressions: {{ }} accepted

assignee ​

Assigned to — Empty: you.

  • Type: Remote resource (resourceLocator)
  • Required: No
  • Ways to choose: pick from a list, type an ID (close.user)
  • Listed with the connection in: connection
  • Shown when: action is one of createTask, createOpportunity

value ​

Amount (in euros) — Converted to cents for Close. Empty: no amount.

  • Type: Text (string)
  • Required: No
  • Default: "" (empty)
  • 30 characters at most
  • Shown when: action is createOpportunity
  • Expressions: {{ }} accepted

Outputs ​

  • main — Taken once the call to Close succeeds. An error response from Close fails the step instead.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.<step>.leadId }} — string. The lead identifier (lead_…).
  • {{ data.<step>.lead }} — { id, name, statusId, status, contacts, createdAt }. Create, get: the lead.
  • {{ data.<step>.simulated }} — boolean. true when the write was described instead of performed (test run).
  • {{ data.<step>.summary }} — string. The one-line summary in the member’s language.

Loop & Roll — the workflow builder for email.