English
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
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 contactgetLead— Get a leadcreateContact— Add a contact to a leadaddNote— Add a notelogEmail— Log the received emailcreateTask— Create a taskcreateOpportunity— 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:
actionis one ofgetLead,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:
actioniscreateLead - Expressions:
{{ }}accepted
contactName
Contact name
- Type: Text (
string) - Required: No
- Default:
""(empty) - 255 characters at most
- Example:
{{ email.from.name }} - Shown when:
actionis one ofcreateLead,createContact - Expressions:
{{ }}accepted
email
Contact email
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actionis one ofcreateLead,createContact - Expressions:
{{ }}accepted
phone
Contact phone
- Type: Text (
string) - Required: No
- Default:
""(empty) - 40 characters at most
- Shown when:
actionis one ofcreateLead,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:
actioniscreateLead
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:
actionis one ofcreateLead,addNote,createTask,createOpportunity - Expressions:
{{ }}accepted
sender
Sender
- Type: Text (
string) - Required: Yes
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.from.email }} - Shown when:
actionislogEmail - Expressions:
{{ }}accepted
recipient
Recipient
- Type: Text (
string) - Required: No
- Default:
""(empty) - 320 characters at most
- Example:
{{ email.to[0].email }} - Shown when:
actionislogEmail - Expressions:
{{ }}accepted
subject
Subject
- Type: Text (
string) - Required: No
- Default:
""(empty) - 998 characters at most
- Example:
{{ email.subject }} - Shown when:
actionislogEmail - Expressions:
{{ }}accepted
body
Email body
- Type: Long text (
text) - Required: No
- Default:
""(empty) - 100000 characters at most
- Example:
{{ email.bodyText }} - Shown when:
actionislogEmail - Expressions:
{{ }}accepted
dueDate
Due date — YYYY-MM-DD. Empty: today.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 30 characters at most
- Shown when:
actioniscreateTask - 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:
actionis one ofcreateTask,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:
actioniscreateOpportunity - 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.