Home / All Integrations / Hubspot CRM

Connect Hubspot CRM to your chatbot

Manage CRM data on Hubspot CRM


Manage contacts and companies in Hubspot CRM.

To get started, create an API Key, in your Hubspot account settings under Integrations > API Key.

Companies

Hubspot API Reference: https://developers.hubspot.com/docs/api/crm/companies

Create

Create a new company.

do Fn(
  "hubspot/crm",
  object="companies"
  method="create",
  properties={
    "city": "Cambridge",
    "domain": "biglytics.net",
    "industry": "Technology",
    "name": "Biglytics",
    "phone": "(877) 929-0687",
    "state": "Massachusetts"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }

Read

Retrieve a company by its ID

do Fn(
  "hubspot/crm",
  object="companies"
  method="read",
  id="512"
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Update

Update an existing company.

do Fn(
  "hubspot/crm",
  object="companies"
  method="update",
  properties={
    "city": "Cambridge",
    "domain": "biglytics.net",
    "industry": "Technology",
    "name": "Biglytics",
    "phone": "(877) 929-0687",
    "state": "Massachusetts"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "city": "Cambridge",
      "createdate": "2019-10-30T03:30:17.883Z",
      "domain": "biglytics.net",
      "hs_lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "industry": "Technology",
      "name": "Biglytics",
      "phone": "(877) 929-0687",
      "state": "Massachusetts"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Delete

Delete an existing company.

do Fn(
  "hubspot/crm",
  object="companies"
  method="delete",
  id="512"
)

Example response

{
  "success": true
}

Contacts

Hubspot API Reference: https://developers.hubspot.com/docs/api/crm/contacts

Create

Create a new contact.

do Fn(
  "hubspot/crm",
  object="contacts"
  method="create",
  properties={
    "company": "Biglytics",
    "email": "bcooper@biglytics.net",
    "firstname": "Bryan",
    "lastname": "Cooper",
    "phone": "(877) 929-0687",
    "website": "biglytics.net"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }

Read

Retrieve a contact by its ID

do Fn(
  "hubspot/crm",
  object="contacts"
  method="read",
  id="512"
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Update

Update an existing contact.

do Fn(
  "hubspot/crm",
  object="contacts"
  method="update",
  properties={
    "company": "Biglytics",
    "email": "bcooper@biglytics.net",
    "firstname": "Bryan",
    "lastname": "Cooper",
    "phone": "(877) 929-0687",
    "website": "biglytics.net"
  }
)

Example response

{
  "success": true,
  "data": {
    "createdAt": "2019-10-30T03:30:17.883Z",
    "archived": false,
    "id": "512",
    "properties": {
      "company": "Biglytics",
      "createdate": "2019-10-30T03:30:17.883Z",
      "email": "bcooper@biglytics.net",
      "firstname": "Bryan",
      "lastmodifieddate": "2019-12-07T16:50:06.678Z",
      "lastname": "Cooper",
      "phone": "(877) 929-0687",
      "website": "biglytics.net"
    },
    "updatedAt": "2019-12-07T16:50:06.678Z"
  }
}

Delete

Delete an existing contact.

do Fn(
  "hubspot/crm",
  object="contacts"
  method="delete",
  id="512"
)

Example response

{
  "success": true
}

Many more integrations are coming!

If you have a cool integration in mind, drop us an email on contact@csml.dev and tell us all about it!

Many of our 49 currently available integrations come directly from your suggestions!

Join the Community
on Slack Slack

Come and learn all about CSML with other chatbot enthusiasts on the Slack CSML Community! ūü§ó