Mandala
Tools

Intercom

Manage contacts, companies, conversations, tickets, and messages in Intercom

Usage Instructions

Integrate Intercom into the workflow. Can create, get, update, list, search, and delete contacts; create, get, and list companies; get, list, reply, and search conversations; create and get tickets; and create messages.

Tools

intercom_create_contact

Create a new contact in Intercom with email, external_id, or role

Input

ParameterTypeRequiredDescription
rolestringNoThe role of the contact. Accepts 'user' or 'lead'. Defaults to 'lead' if not specified.
emailstringNoThe contact's email address
external_idstringNoA unique identifier for the contact provided by the client
phonestringNoThe contact's phone number
namestringNoThe contact's name
avatarstringNoAn avatar image URL for the contact
signed_up_atnumberNoThe time the user signed up as a Unix timestamp
last_seen_atnumberNoThe time the user was last seen as a Unix timestamp
owner_idstringNoThe id of an admin that has been assigned account ownership of the contact
unsubscribed_from_emailsbooleanNoWhether the contact is unsubscribed from emails
custom_attributesstringNoCustom attributes as JSON object (e.g., {"attribute_name": "value"})
company_idstringNoCompany ID to associate the contact with during creation

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated contact data

intercom_get_contact

Get a single contact by ID from Intercom

Input

ParameterTypeRequiredDescription
contactIdstringYesContact ID to retrieve

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectContact data

intercom_update_contact

Update an existing contact in Intercom

Input

ParameterTypeRequiredDescription
contactIdstringYesContact ID to update
rolestringNoThe role of the contact. Accepts 'user' or 'lead'.
external_idstringNoA unique identifier for the contact provided by the client
emailstringNoThe contact's email address
phonestringNoThe contact's phone number
namestringNoThe contact's name
avatarstringNoAn avatar image URL for the contact
signed_up_atnumberNoThe time the user signed up as a Unix timestamp
last_seen_atnumberNoThe time the user was last seen as a Unix timestamp
owner_idstringNoThe id of an admin that has been assigned account ownership of the contact
unsubscribed_from_emailsbooleanNoWhether the contact is unsubscribed from emails
custom_attributesstringNoCustom attributes as JSON object (e.g., {"attribute_name": "value"})
company_idstringNoCompany ID to associate the contact with

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated contact data

intercom_list_contacts

List all contacts from Intercom with pagination support

Input

ParameterTypeRequiredDescription
per_pagenumberNoNumber of results per page (max: 150)
starting_afterstringNoCursor for pagination - ID to start after

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectList of contacts

intercom_search_contacts

Search for contacts in Intercom using a query

Input

ParameterTypeRequiredDescription
querystringYesSearch query (e.g., {"field":"email","operator":"=","value":"user@example.com"})
per_pagenumberNoNumber of results per page (max: 150)
starting_afterstringNoCursor for pagination
sort_fieldstringNoField to sort by (e.g., "name", "created_at", "last_seen_at")
sort_orderstringNoSort order: "ascending" or "descending"

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectSearch results

intercom_delete_contact

Delete a contact from Intercom by ID

Input

ParameterTypeRequiredDescription
contactIdstringYesContact ID to delete

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectDeletion result

intercom_create_company

Create or update a company in Intercom

Input

ParameterTypeRequiredDescription
company_idstringYesYour unique identifier for the company
namestringNoThe name of the company
websitestringNoThe company website
planstringNoThe company plan name
sizenumberNoThe number of employees in the company
industrystringNoThe industry the company operates in
monthly_spendnumberNoHow much revenue the company generates for your business. Note: This field truncates floats to whole integers (e.g., 155.98 becomes 155)
custom_attributesstringNoCustom attributes as JSON object
remote_created_atnumberNoThe time the company was created by you as a Unix timestamp

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated or updated company data

intercom_get_company

Retrieve a single company by ID from Intercom

Input

ParameterTypeRequiredDescription
companyIdstringYesCompany ID to retrieve

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCompany data

intercom_list_companies

List all companies from Intercom with pagination support. Note: This endpoint has a limit of 10,000 companies that can be returned using pagination. For datasets larger than 10,000 companies, use the Scroll API instead.

Input

ParameterTypeRequiredDescription
per_pagenumberNoNumber of results per page
pagenumberNoPage number
starting_afterstringNoCursor for pagination (preferred over page-based pagination)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectList of companies

intercom_get_conversation

Retrieve a single conversation by ID from Intercom

Input

ParameterTypeRequiredDescription
conversationIdstringYesConversation ID to retrieve
display_asstringNoSet to "plaintext" to retrieve messages in plain text
include_translationsbooleanNoWhen true, conversation parts will be translated to the detected language of the conversation

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectConversation data

intercom_list_conversations

List all conversations from Intercom with pagination support

Input

ParameterTypeRequiredDescription
per_pagenumberNoNumber of results per page (max: 150)
starting_afterstringNoCursor for pagination
sortstringNoField to sort by (e.g., "waiting_since", "updated_at", "created_at")
orderstringNoSort order: "asc" (ascending) or "desc" (descending)

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectList of conversations

intercom_reply_conversation

Reply to a conversation as an admin in Intercom

Input

ParameterTypeRequiredDescription
conversationIdstringYesConversation ID to reply to
message_typestringYesMessage type: "comment" or "note"
bodystringYesThe text body of the reply
admin_idstringNoThe ID of the admin authoring the reply. If not provided, a default admin (Operator/Fin) will be used.
attachment_urlsstringNoComma-separated list of image URLs (max 10)
created_atnumberNoUnix timestamp for when the reply was created. If not provided, current time is used.

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectUpdated conversation with reply

intercom_search_conversations

Search for conversations in Intercom using a query

Input

ParameterTypeRequiredDescription
querystringYesSearch query as JSON object
per_pagenumberNoNumber of results per page (max: 150)
starting_afterstringNoCursor for pagination
sort_fieldstringNoField to sort by (e.g., "created_at", "updated_at")
sort_orderstringNoSort order: "ascending" or "descending"

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectSearch results

intercom_create_ticket

Create a new ticket in Intercom

Input

ParameterTypeRequiredDescription
ticket_type_idstringYesThe ID of the ticket type
contactsstringYesJSON array of contact identifiers (e.g., [{"id": "contact_id"}])
ticket_attributesstringYesJSON object with ticket attributes including default_title and default_description
company_idstringNoCompany ID to associate the ticket with
created_atnumberNoUnix timestamp for when the ticket was created. If not provided, current time is used.
conversation_to_link_idstringNoID of an existing conversation to link to this ticket
disable_notificationsbooleanNoWhen true, suppresses notifications when the ticket is created

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated ticket data

intercom_get_ticket

Retrieve a single ticket by ID from Intercom

Input

ParameterTypeRequiredDescription
ticketIdstringYesTicket ID to retrieve

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectTicket data

intercom_create_message

Create and send a new admin-initiated message in Intercom

Input

ParameterTypeRequiredDescription
message_typestringYesMessage type: "inapp" for in-app messages or "email" for email messages
templatestringYesMessage template style: "plain" for plain text or "personal" for personalized style
subjectstringNoThe subject of the message (for email type)
bodystringYesThe body of the message
from_typestringYesSender type: "admin"
from_idstringYesThe ID of the admin sending the message
to_typestringYesRecipient type: "contact"
to_idstringYesThe ID of the contact receiving the message
created_atnumberNoUnix timestamp for when the message was created. If not provided, current time is used.

Output

ParameterTypeDescription
successbooleanOperation success status
outputobjectCreated message data

Notes

  • Category: tools
  • Type: intercom
Intercom