StyloDocs
Workflow blocks

Intercom

Work with Intercom contacts, conversations, tickets, and admins

View as Markdown

intercom — Work with Intercom contacts, conversations, tickets, and admins.

Where it appears

The Intercom block lives in the Integrations group of the Workflow Builder. Connect the Intercom integration before adding it.

Fields

FieldTypeRequiredDefaultDescription
resourceselectYescontactWhich Intercom resource to work with. Options: contact, conversation, ticket, admin.
operationselectYesWhich action to perform on the selected resource.
roleselectNouserIntercom contact role: User (an identified, signed-up person) or Lead (an unidentified prospect). Defaults to User. Options: user, lead.
emailtext (supports references)NoEmail address for the Intercom contact. Accepts literal text or <StepName.field> to reference a value from a previous step.
nametext (supports references)NoDisplay name for the Intercom contact. Accepts literal text or <StepName.field>.
phonetext (supports references)NoOptional phone number for the contact, in E.164 format. Accepts literal text or <StepName.field>.
customAttributesJsoncodeNoOptional JSON object of custom data attributes to set on the contact (e.g. &#123;"plan":"pro"&#125;). Keys must match custom attributes defined in your Intercom workspace.
contactIdtext (supports references)YesIntercom contact ID to act on. Use a literal ID or <StepName.field> to reference an ID from a previous step.
perPagenumberNo50Number of contacts to return per page from Intercom. Defaults to 50.
queryJsoncodeYesIntercom Search Contacts API request body as JSON, using a query object with field, operator, and value (and optional nested AND/OR groups).
conversationIdtext (supports references)YesIntercom conversation ID to act on. Use a literal ID or <StepName.field> to reference an ID from a previous step.
messagetext (multi-line, supports references)YesReply text to post to the Intercom conversation. Use literal text or <StepName.field> to reference upstream content such as a generated reply.
ticketJsoncodeYesIntercom Create Ticket API request body as JSON, including ticket_type_id, the associated contacts, and ticket attributes such as title.
ticketIdtext (supports references)YesIntercom ticket ID to fetch. Use a literal ID or <StepName.field> to reference an ID from a previous step.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Intercom.field>.

NameTypeDescription
successbooleanOperation succeeded
contactjsonCreated contact
errorstringError message if failed
contactsjsonList of contacts
pagesjsonPagination info
resultsjsonSearch results
deletedbooleanContact was deleted
conversationjsonConversation data
ticketjsonCreated ticket
adminsjsonList of admins

Example

A minimal configuration for this block:

{
  "type": "intercom",
  "config": {
    "resource": "contact",
    "operation": "...",
    "role": "user",
    "contactId": "<PreviousStep.field>",
    "perPage": 50,
    "queryJson": "...",
    "conversationId": "<PreviousStep.field>",
    "message": "<PreviousStep.field>",
    "ticketJson": "...",
    "ticketId": "<PreviousStep.field>"
  }
}

Limits and failure modes

  • Requires a connected Intercom integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required fields (resource, operation, contactId, queryJson, conversationId, message, ticketJson, ticketId) must be set, or the block fails validation before it runs.
  • On failure the error output is populated; downstream blocks that reference other outputs may not receive values.

On this page