Skip to main content

Hubspot

Updated over 3 weeks ago

Hubspot

This guide shows you how to connect a HubSpot account so that your AI

Employee can create contacts and schedule meetings via HubSpot.

Prerequisites

  • A HubSpot account and a HubSpot Developer account.

Create a new project

  1. Go to the Project page.

  2. Click the three dots icon → Create New Project.

  3. In the form, enter:

    • Idn : hubspot_integration

    • Title : hubspot_integration

    • Module : hubspot_integration

  4. Toggle Auto update enabled → on.

  5. Click Create.

Force update and publish

  1. On the Project page, click the three dots icon next to the newly created project → Force Update Project.

  2. Click Publish All (top-right of the page).

Connect the calendar and set the slug

  1. In HubSpot: go to Profile & PreferencesGeneralCalendar tab and connect your calendar by following the on-screen prompts.

  2. Under Meetings → Meetings URL , copy the slug value.

  3. In the Newo.ai Builder: go to the Attributes page and set Slug(hubspot_slug_name) attribute to the copied slug.

  4. Click Save.

Create a HubSpot legacy public app

  1. In HubSpot: go to DevelopmentLegacy AppsCreate legacy appPublic.

  2. In the App Info tab, set a Public app name.

  3. In the Auth tab, under Redirect URLs , add newo.ai/.

  4. Click Create app.

Add OAuth scopes

  1. In HubSpot: Under the Auth tab, click Add new scope.

  2. Search for and select:

    • crm.objects.contacts.read

    • crm.objects.contacts.write

    • crm.objects.appointments.read

    • crm.objects.appointments.write

    • scheduler.meetings.meeting-link.read

  3. Click UpdateSave changes.

Copy client credentials into Newo.ai

  1. In the app’s Auth tab, copy Client ID and Client secret.

  2. In the Newo.ai Builder: go to the Attributes page and set:

    • Client ID(hubspot_client_id) → paste value → Click Save.

    • Client secret(hubspot_client_secret) → paste value → Click Save.

  3. Set Redirect URL(hubspot_redirect_url) to https://newo.ai/ → Click Save.

Authorize via install URL and capture the OAuth code

  1. In HubSpot: Under the app’s Auth tab, copy the Sample install URL (OAuth) and open it in a browser.

  2. Select your HubSpot account → Choose AccountConnect app.

  3. After redirecting to a URL like https://newo.ai/?code=eu1-923f-093hd-093hnc-bsna892847391, copy the value after code=.

  4. In the Newo.ai Builder: go to the Attributes page and set OAuth Code (hubspot_oauth_code) to the copied code → Click Save.

  5. Click Publish All.

Verify the integration

  1. Call your AI Employee to schedule a test appointment.

  2. Confirm in HubSpot that:

    • A contact is created/updated as expected.

    • A meeting/appointment appears per your connected calendar and meetings configuration.

Did this answer your question?