Create Your Own HubSpot Bot Integrated with Webex
Create Your Own HubSpot Bot Integrated with Webex
This article explains how you can create your own Webex-integrated HubSpot bot.
anchorPrerequisites
anchorBefore continuing, you will need access to a few developer resources and the Node.js framework:
- HubSpot Developer Account: You'll need to apply for a developer account to get access to the APIs available in the HubSpot: https://developers.hubspot.com/.
- Cisco Webex Account: You'll need a Webex developer account if you don’t have one already. You can create one on the Webex Developer Portal: https://developer.webex.com/.
- Node.js: To create the Webex bot, you’ll be leveraging the Webex Node Bot framework. Make sure you’ve got Node.js installed on your platform of choice.
anchorBuild the Bot
anchorOnce you have your accounts set up and Node.js installed, follow these steps to create your own Hubspot bot:
- Login to your HubSpot developer account, and navigate to Apps in the top nav.
- Select Create app and choose Custom App for the app type.
- Enter a name for your app, for example,
Contacts API Integration
. - Choose OAuth as the app type.
- Add your OAuth Redirect URL. This is where HubSpot will redirect users after they authorize the app.
- Optionally, add a Logo and an App Description and select Create App.
- Go to the Scopes section in the app settings and select the following scopes:
content
crm.lists.read
crm.lists.write
crm.objects.companies.read
crm.objects.companies.write
crm.objects.contacts.read
crm.objects.contacts.write
crm.objects.deals.read
crm.objects.deals.write
files
forms
oauth
sales-email-read
- Navigate to the Auth section of the app settings. HubSpot provides you with a Client ID and Client Secret. Keep these credentials secure, as you'll need them for the OAuth flow.
- Log in to Webex for Developers.
- Create your Webex bot at: https://developer.webex.com/my-apps/new/bot.
- Note down the bot's access token, which you'll use to make API requests.
anchorUse the Webex Node Bot Framework
anchorTo simplify the creation of your bot, you can use the Webex Node Bot Framework available on GitHub. This framework provides a robust and easy to use platform for handling bot interactions:
For any queries related to bot framework you can join the following Webex space: Webex-Node-Bot-Framework Support.
anchorAdditional Resources
anchorFor more information on HubSpot and Webex, see:
- HubSpot API Documentation: https://developers.hubspot.com/beta-docs/reference/api/overview.
- Webex API Documentation: https://developer.webex.com/docs.