This integration allows you to connect Botpress with HubSpot CRM, enabling various CRM operations directly through your chatbot.
This guide provides instructions on using HubSpot CRM integration to manage various CRM operations, such as creating, updating, deleting, and searching for contacts, companies, and tickets.
To view the internal property names for HubSpot properties, refer to the following link: Internal HubSpot Property Names.
You can find the properties and their IDs at this link: HubSpot Property Settings.
- Get a Contact
- Create a Contact
- Delete a Contact
- Update a Contact
- Search Contacts
- Get a Company
- Create a Company
- Delete a Company
- Update a Company
- Search Companies
- Get a Ticket
- Create a Ticket
- Delete a Ticket
- Update a Ticket
- Search Tickets
- Make an API Call
{
"filterGroups": [
{
"filters": [
{
"propertyName": "industry",
"operator": "EQ",
"value": "Technology"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["name", "industry", "annualrevenue"],
"limit": 100,
"after": 0
}{
"filterGroups": [
{
"filters": [
{
"propertyName": "email",
"operator": "EQ",
"value": "[email protected]"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["createdate", "firstname", "lastname", "email"],
"limit": 100,
"after": 0
}{
"filterGroups": [
{
"filters": [
{
"propertyName": "subject",
"operator": "EQ",
"value": "Support Needed"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["createdate", "subject", "content", "status"],
"limit": 100,
"after": 0
}To get a contact, simply provide the contact ID.
{
"contactId": "12345"
}When creating a new contact, you should include at least one of the following properties: email, firstname, or lastname. It is recommended to always include email to avoid duplicate contacts in HubSpot.
{
"properties": {
"email": "[email protected]",
"firstname": "Milos",
"lastname": "Arsik",
"phone": "(226) 700-0079",
"company": "HubSpot",
"hubspot_owner_id": "117816668"
}
}To delete a contact, simply provide the contact ID.
{
"contactId": "12345"
}Perform a partial update of a contact identified by {contactId}. {contactId} refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored.
{
"contactId": "12345",
"properties": {
"phone": "(226) 700-0080",
"company": "HubSpot Inc."
}
}To get a company, simply provide the company ID.
{
"companyId": "67890"
}When creating a new company, include relevant properties.
{
"properties": {
"name": "HubSpot",
"industry": "Technology",
"annualrevenue": "1000000"
}
}To delete a company, simply provide the company ID.
{
"companyId": "67890"
}Perform a partial update of a company identified by {companyId}. {companyId} refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored.
{
"companyId": "67890",
"properties": {
"annualrevenue": "1500000"
}
}To get a ticket, simply provide the ticket ID.
{
"ticketId": "54321"
}When creating a new ticket, include relevant properties.
{
"properties": {
"subject": "Need help with integration",
"content": "Details about the issue...",
"status": "open"
}
}To delete a ticket, simply provide the ticket ID.
{
"ticketId": "54321"
}Perform a partial update of a ticket identified by {ticketId}. {ticketId} refers to the internal object ID. Provided property values will be overwritten. Read-only and non-existent properties will be ignored.
{
"ticketId": "54321",
"properties": {
"status": "closed"
}
}Properties are the specific fields you want to retrieve for each record. You can specify which properties to include in the response. In the examples above, properties like createdate, firstname, and lastname are requested. You can customize this based on the fields available in your HubSpot account.
Example:
"properties": ["createdate", "firstname", "lastname", "email", "phone"]{
"filterGroups": [
{
"filters": [
{
"propertyName": "createdate",
"operator": "GTE",
"value": "1622505600000"
},
{
"propertyName": "email",
"operator": "EQ",
"value": "[email protected]"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["createdate", "firstname", "lastname"],
"limit": 100,
"after": 0
}{
"filterGroups": [
{
"filters": [
{
"propertyName": "createdate",
"operator": "GTE",
"value": "1622505600000"
}
]
},
{
"filters": [
{
"propertyName": "email",
"operator": "EQ",
"value": "[email protected]"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["createdate", "firstname", "lastname"],
"limit": 100,
"after": 0
}{
"filterGroups": [
{
"filters": [
{
"propertyName": "createdate",
"operator": "GTE",
"value": "1622505600000"
},
{
"propertyName": "email",
"operator": "EQ",
"value": "[email protected]"
}
]
},
{
"filters": [
{
"propertyName": "firstname",
"operator": "EQ",
"value": "Jane"
}
]
}
],
"sorts": [
{
"propertyName": "createdate",
"direction": "DESCENDING"
}
],
"properties": ["createdate", "firstname", "lastname"],
"limit": 100,
"after": 0
}