GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Quick Start Guide
Accessing the Platform
Navigating the Kore.ai XO Platform
Building a Virtual Assistant
Help & Learning Resources
Release Notes
Current Version
Recent Updates
Previous Versions
Deprecations
Request a Feature
CONCEPTS
Design
Storyboard
Overview
FAQs
Conversation Designer
Overview
Dialog Tasks
Mock Scenes
Dialog Tasks
Overview
Navigate Dialog Tasks
Build Dialog Tasks
Node Types
Overview
Intent Node
Dialog Node
Dynamic Intent Node
GenAI Node
GenAI Prompt
Entity Node
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Process Node
Agent Transfer
Node Connections
Node Connections Setup
Sub-Intent Scoping
Entity Types
Entity Rules
User Prompts or Messages
Voice Call Properties
Knowledge AI
Introduction
Knowledge Graph
Introduction
Terminology
Build a Knowledge Graph
Manage FAQs
Knowledge Extraction
Import or Export Knowledge Graph
Prepare Data for Import
Importing Knowledge Graph
Exporting Knowledge Graph
Auto-Generate Knowledge Graph
Knowledge Graph Analysis
Answer from Documents
Alert Tasks
Small Talk
Digital Skills
Overview
Digital Forms
Digital Views
Introduction
Widgets
Panels
Session and Context Variables
Context Object
Intent Discovery
Train
NLP Optimization
ML Engine
Overview
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
Training Validations
NLP Configurations
NLP Guidelines
LLM and Generative AI
Introduction
LLM Integration
Kore.ai XO GPT Module
Prompts & Requests Library
Co-Pilot Features
Dynamic Conversations Features
Intelligence
Introduction
Event Handlers
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Conversation Driven Dialog Builder
Sentinment Management
Tone Analysis
Default Standard Responses
Ignore Words & Field Memory
Test & Debug
Overview
Talk to Bot
Utterance Testing
Batch Testing
Conversation Testing
Conversation Testing Overview
Create a Test Suite
Test Editor
Test Case Assertion
Test Case Execution Summary
Glossary
Health and Monitoring
NLP Health
Flow Health
Integrations
Actions
Actions Overview
Asana
Configure
Templates
Azure OpenAI
Configure
Templates
BambooHR
Configure
Templates
Bitly
Configure
Templates
Confluence
Configure
Templates
DHL
Configure
Templates
Freshdesk
Configure
Templates
Freshservice
Configure
Templates
Google Maps
Configure
Templates
Here
Configure
Templates
HubSpot
Configure
Templates
JIRA
Configure
Templates
Microsoft Graph
Configure
Templates
Open AI
Configure
Templates
Salesforce
Configure
Templates
ServiceNow
Configure
Templates
Stripe
Configure
Templates
Shopify
Configure
Templates
Twilio
Configure
Templates
Zendesk
Configure
Templates
Agents
Agent Transfer Overview
Custom (BotKit)
Drift
Genesys
Intercom
NiceInContact
NiceInContact(User Hub)
Salesforce
ServiceNow
Configure Tokyo and Lower versions
Configure Utah and Higher versions
Unblu
External NLU Adapters
Overview
Dialogflow Engine
Test and Debug
Deploy
Channels
Publishing
Versioning
Analyze
Introduction
Dashboard Filters
Overview Dashboard
Conversations Dashboard
Users Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Custom Meta Tags
Create Custom Dashboard
Create Custom Dashboard Filters
LLM and Generative AI Logs
NLP Insights
Task Execution Logs
Conversations History
Conversation Flows
Conversation Insights
Feedback Analytics
Usage Metrics
Containment Metrics
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Team Collaboration
Plan & Usage
Overview
Usage Plans
Templates
Support Plans
Invoices
Authorization
Conversation Sessions
Multilingual Virtual Assistants
Get Started
Supported Components & Features
Manage Languages
Manage Translation Services
Multiingual Virtual Assistant Behavior
Feedback Survey
Masking PII Details
Variables
Collections
IVR Settings
General Settings
Assistant Management
Manage Namespace
Data
Overview
Data Table
Table Views
App Definitions
Data as Service
HOW TOs
Build a Travel Planning Assistant
Travel Assistant Overview
Create a Travel Virtual Assistant
Design Conversation Skills
Create an ‘Update Booking’ Task
Create a Change Flight Task
Build a Knowledge Graph
Schedule a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Train the Assistant
Use Traits
Use Patterns
Manage Context Switching
Deploy the Assistant
Use Bot Functions
Use Content Variables
Use Global Variables
Use Web SDK
Build a Banking Assistant
Design Conversation Skills
Create a Sample Banking Assistant
Create a Transfer Funds Task
Create a Update Balance Task
Create a Knowledge Graph
Set Up a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Add Data to Data Tables
Update Data in Data Tables
Add Data from Digital Forms
Train the Assistant
Composite Entities
Use Traits
Use Patterns for Intents & Entities
Manage Context Switching
Deploy the Assistant
Configure an Agent Transfer
Use Assistant Functions
Use Content Variables
Use Global Variables
Intent Scoping using Group Node
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters
Migrate External Bots
Google Dialogflow Bot
APIs & SDKs
API Reference
API Introduction
Rate Limits
API List
koreUtil Libraries
SDK Reference
SDK Introduction
SDK Security
SDK Registration
Web Socket Connect and RTM
Installing the BotKit SDK
Using the BotKit SDK
SDK Events
SDK Functions
SDK Tutorials
BotKit - Blue Prism
BotKit - Flight Search Sample VA
BotKit - Agent Transfer
Widget SDK Tutorial
Web SDK Tutorial
ADMINISTRATION
Introduction to Admin Console
Administration Dashboard
User Management
Add Users
Manage Groups
Manage Roles
Data Tables and Views
Assistant Management
Enrollment
Invite Users
Send Bulk Invites
Import User Data
Synchronize Users from AD
Security & Control
Using Single-Sign On (SSO)
Two-Factor Authentication (2FA)
Security Settings
Cloud Connector
Analytics
Billing
  1. Home
  2. Integrations
  3. Using the HubSpot Action Templates

Using the HubSpot Action Templates

You can use the Prebuilt Action Templates from your HubSpot integration to auto-create dialog tasks and test them using the Talk to Bot option.

Steps to create a dialog task using HubSpot action templates:

  1. Go to Build > Conversation Skills, and then click the Dialog Tasks.
  2. Click Create a Dialog Task.
  3. On the Dialog Task pop-up, under the Integration, select the HubSpot option to view the action templates.

    Note: If you have not configured any integration for your virtual assistant, you will see the Explore Integrations option. Once you click this option, you will be redirected to the Actions page to configure an integration for your VA. For more information, see Actions Overview.

HubSpot Actions 

The following HubSpot actions are supported in this release:

Supported Tasks Description Method
Create a Deal Creates a new deal in the system. POST
Get Deal by Id Retrieves a deal details  GET
Update a Deal Updates the deal details. PATCH
List all Deals Retrieves all deals from the system. GET
Search Deal by Keyword Searches all deals that match with the keyword. GET
Delete Deal Deletes a deal. DELETE 
Create a Contact Creates a request in the system. POST
Get Contact by Id Retrieve a contact details GET
List All Contacts Retrieves all contacts from the system Get
Update a Contact Updates the contact details PATCH
Search Contact by Keyword Search all contacts that match with the keyword GET
Delete a Contact Deletes a contact GET

Create a Deal

Steps to create a new deal in HubSpot:

  1. Refer to the Install the HubSpot Action Templates section for installing this action template.
  2. The Create a Deal dialog task is added with the following components:
    • createDeal – A user intent to create a deal.
    • dealName and dealStage – Entity nodes for gathering the required deal details.
    • createDealService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the createDealService bot action component properties.
    • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

    Sample Request body:

    {
    "properties": {
    "dealname": "Custom data integrations",
    "dealstage": "presentationscheduled",
    "pipeline": "default"
    }
    }

    • To add one or more responses, scroll down and click the +Add Response button:

    Sample Response:

    {
    "id": "10146264661",
    "properties": {
    "createdate": "2022-09-11T10:06:55.570Z",
    "days_to_close": "0",
    "dealname": "Integrations",
    "dealstage": "presentationscheduled",
    "hs_closed_amount": "0",
    "hs_closed_amount_in_home_currency": "0",
    "hs_createdate": "2022-09-11T10:06:55.570Z",
    "hs_deal_stage_probability_shadow": "0.59999999999999997779553950749686919152736663818359375",
    "hs_is_closed": "false",
    "hs_is_closed_won": "false",
    "hs_is_deal_split": "false",
    "hs_lastmodifieddate": "2022-09-11T10:06:55.570Z",
    "hs_object_id": "10146264661",
    "hs_projected_amount": "0",
    "hs_projected_amount_in_home_currency": "0",
    "pipeline": "default"
    },
    "createdAt": "2022-09-11T10:06:55.570Z",
    "updatedAt": "2022-09-11T10:06:55.570Z",
    "archived": false
    }

    • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
    • createDealMessage – A message node with script to display responses for various scenarios. 
  3. Click the Train tab to complete the Dialog task training.
  4. Click the Talk to Bot icon to test and debug the dialog task.
  5. Follow the prompts in the VA console to create a deal as shown below:
  6. The new deal is created in HubSpot.
  7. Click the View Deal button to view the deal details in HubSpot.

Get a Deal by ID

Steps to find a deal by Id in HubSpot:

  1. Refer to the Install the HubSpot Action Templates section for installing this action template.
  2. The Get Deal by Id dialog task is added with the following components:
     class=
    • getDeal by Id : A user intent to get a deal by Id.
    • dealID  – Entity nodes for entering the deal Id.
    • getDealService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
    • In the Component Properties window, click the +Add Response button to add one or more responses.

Sample Response

{
"id": "10099894869",
"properties": {
"amount": null,
"closedate": null,
"createdate": "2022-09-07T13:52:04.184Z",
"dealname": "Nike deal",
"dealstage": "appointmentscheduled",
"hs_lastmodifieddate": "2022-09-10T14:13:05.712Z",
"hs_object_id": "10099894869",
"pipeline": "default"
},
"createdAt": "2022-09-07T13:52:04.184Z",
"updatedAt": "2022-09-10T14:13:05.712Z",
"archived": false
},
"archived": false
}

  • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
  • getDealMessage – A message node with script to display responses for various scenarios. 
  • Click the Train tab to complete the Dialog task training.
  • Click the Talk to Bot icon to test and debug the dialog task.
  • Follow the prompts in the VA console to get a deal by ID as shown below:
  • Click the View Deal button to view the deal details in HubSpot.
  • Click the View Deal button to view the deal details in HubSpot. 
  • List All Deals

    Steps to view all deals in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The List All Deals dialog task is added for HubSpot with the following components:
      • List All Deals: A user intent to list all deals.
      • listAllDealsService – A bot action script to view all deals in an external integration. Click the Plus icon to expand to view the listAllDealsService bot action component properties.
        Scroll down and click +Add Response to add one or more response.

      Sample Response

      {
      "total": 7,
      "results": [
      {
      "id": "10274255383",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-22T07:23:17.500Z",
      "dealname": "Adidas deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-22T07:23:18.603Z",
      "hs_object_id": "10274255383",
      "pipeline": "default"
      },
      "createdAt": "2022-09-22T07:23:17.500Z",
      "updatedAt": "2022-09-22T07:23:18.603Z",
      "archived": false
      },
      {
      "id": "10168816194",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T06:44:20.931Z",
      "dealname": "kora",
      "dealstage": "decisionmakerboughtin",
      "hs_lastmodifieddate": "2022-09-21T17:48:52.859Z",
      "hs_object_id": "10168816194",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T06:44:20.931Z",
      "updatedAt": "2022-09-21T17:48:52.859Z",
      "archived": false
      },
      {
      "id": "10168663436",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:55:53.195Z",
      "dealname": "Assist",
      "dealstage": "decisionmakerboughtin",
      "hs_lastmodifieddate": "2022-09-13T05:55:54.257Z",
      "hs_object_id": "10168663436",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:55:53.195Z",
      "updatedAt": "2022-09-13T05:55:54.257Z",
      "archived": false
      },
      {
      "id": "10168850185",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:54:00.891Z",
      "dealname": "Smart deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-13T05:54:02.233Z",
      "hs_object_id": "10168850185",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:54:00.891Z",
      "updatedAt": "2022-09-13T05:54:02.233Z",
      "archived": false
      },
      {
      "id": "10146264661",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-11T10:06:55.570Z",
      "dealname": "Integrations",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-11T10:06:56.238Z",
      "hs_object_id": "10146264661",
      "pipeline": "default"
      },
      "createdAt": "2022-09-11T10:06:55.570Z",
      "updatedAt": "2022-09-11T10:06:56.238Z",
      "archived": false
      },
      {
      "id": "10146382146",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-11T10:05:52.560Z",
      "dealname": "Custom data integrations",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-11T10:05:54.028Z",
      "hs_object_id": "10146382146",
      "pipeline": "default"
      },
      "createdAt": "2022-09-11T10:05:52.560Z",
      "updatedAt": "2022-09-11T10:05:54.028Z",
      "archived": false
      },
      {
      "id": "10096681328",
      "properties": {
      "amount": "20",
      "closedate": "2022-09-30T07:42:47.238Z",
      "createdate": "2022-09-07T07:46:11.328Z",
      "dealname": "Basic deal",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-13T13:48:43.097Z",
      "hs_object_id": "10096681328",
      "pipeline": "default"
      },
      "createdAt": "2022-09-07T07:46:11.328Z",
      "updatedAt": "2022-09-13T13:48:43.097Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • listAllDealsMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to view all deals.

    Update a Deal

    Steps to update an existing deal in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Update a Deal dialog task is added with the following components:
      • Update a Deal: A user intent to update a deal.
      • dealId, dealUpdate, dealName, and dealStage – Entity nodes for updating the deal details.
      • updateDealScript – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the updateDealScript bot action component properties.
      • updateDealService – A bot action service to update a deal in an external integration. Click the Plus icon to expand to view the updateDealService bot action component properties.

      Sample Request Body

      {
      "properties": {
      "dealname": "Adidas Deal",
      "dealstage": "closedwon"
      }
      }

      To add one or more responses scroll down and click the +Add Response button.

      Sample Response

      {
      "id": "10123889765",
      "properties": {
      "createdate": "2022-09-09T06:45:26.228Z",
      "days_to_close": "0",
      "dealname": "Adidas Deal",
      "dealstage": "closedwon",
      "hs_closed_amount": "",
      "hs_closed_amount_in_home_currency": "",
      "hs_deal_stage_probability": "0.8000000000000000444089209850062616169452667236328125",
      "hs_deal_stage_probability_shadow": "1",
      "hs_is_closed": "true",
      "hs_is_closed_won": "true",
      "hs_lastmodifieddate": "2022-09-11T10:54:30.961Z",
      "hs_object_id": "10123889765",
      "hs_projected_amount_in_home_currency": "",
      "pipeline": "default"
      },
      "createdAt": "2022-09-09T06:45:26.228Z",
      "updatedAt": "2022-09-11T10:54:30.961Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getDealService – A bot action service to get deal details in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
      • updateDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task
    5. Follow the prompts in the VA console to update a deal as shown below:
    6. Enter all deal details to update when prompted by the VA. The existing deal is updated in HubSpot as shown below:
    7. Click the View Deal button to view the deal details in HubSpot.

    Search Deal by Keyword

    Steps to search a deal using keywords in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Search Deal by Keyword dialog task is added for the Hubspot with the following components:
      • Search Deal: A user intent to search a deal.
      • Keyword – Entity nodes for entering the keywords for the searching deals.
      • searchDealService – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the searchDealService bot action component properties.

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ],
      "query":"abac"
      }

      Sample Response

      {
      "total": 3,
      "results": [
      {
      "id": "10274255383",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-22T07:23:17.500Z",
      "dealname": "Adidas deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-22T07:23:18.603Z",
      "hs_object_id": "10274255383",
      "pipeline": "default"
      },
      "createdAt": "2022-09-22T07:23:17.500Z",
      "updatedAt": "2022-09-22T07:23:18.603Z",
      "archived": false
      },
      {
      "id": "10168850185",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:54:00.891Z",
      "dealname": "Smart deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-13T05:54:02.233Z",
      "hs_object_id": "10168850185",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:54:00.891Z",
      "updatedAt": "2022-09-13T05:54:02.233Z",
      "archived": false
      },
      {
      "id": "10096681328",
      "properties": {
      "amount": "20",
      "closedate": "2022-09-30T07:42:47.238Z",
      "createdate": "2022-09-07T07:46:11.328Z",
      "dealname": "Basic deal",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-13T13:48:43.097Z",
      "hs_object_id": "10096681328",
      "pipeline": "default"
      },
      "createdAt": "2022-09-07T07:46:11.328Z",
      "updatedAt": "2022-09-13T13:48:43.097Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • searchDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to view all deals as shown below:

    Delete a Deal

    Steps to delete a deal in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Delete Deal dialog task is added for HubSpot with the following components:
      • Delete Deal: A user intent to delete a deal.
      • DealId – Entity nodes for entering the deal ID.
      • deleteDealService – A bot action script to delete a deal in an external integration. Click the Plus icon to expand to view the deleteContactService bot action component properties.
      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • deleteDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to create a deal as shown below:

      Note: If you enter an incorrect ID, the 404 – No Record Found error message is displayed.

    Create a Contact

    Steps to create a contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Create a Deal dialog task is added with the following components:
      • createContact : A user intent to create a deal.
      • Email, firstName, lastName, and phone– Entity nodes for gathering the required contact details.
      • createContactService – A bot action service to create a contact in an external integration. Click the Plus icon to expand to view the createContactService bot action component properties.
      • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request Body

      {
      "properties": {
      "email": "harry@abac.com",
      "firstname":"Harry",
      "lastname":"Anthony",
      "phone": "(877) 829-06966777"
      }

      To add one or more responses, scroll down and click the +Add Response button:

      Sample Response:

      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@abac.com",
      "firstname": "harry",
      "hs_all_contact_vids": "1201",
      "hs_email_domain": "abac.com",
      "hs_is_contact": "true",
      "hs_is_unworked": "true",
      "hs_lifecyclestage_lead_date": "2022-09-21T05:54:29.872Z",
      "hs_object_id": "1201",
      "hs_pipeline": "contacts-lifecycle-pipeline",
      "hs_searchable_calculated_phone_number": "87782906966777",
      "lastmodifieddate": "2022-09-21T05:54:29.872Z",
      "lastname": "anthony",
      "lifecyclestage": "lead",
      "phone": "(877) 829-06966777"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T05:54:29.872Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • createContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot and learn how to view the new contact.

    Get a Contact by ID

    Steps to find a contact by ID in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Get Contact by Id dialog task is added with the following components:
      • getContact by Id : A user intent to get a contact by ID.
      • contactID  – Entity nodes for entering the contact ID.
      • getContactService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
      • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      To add one or more responses, scroll down and click the +Add Response button.

      Sample Response

      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@abac.com",
      "firstname": "harry",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T05:54:33.826Z",
      "lastname": "anthony"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T05:54:33.826Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to find the contact.   

    List All Contacts

    Steps to view all contacts in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The List All Contacts dialog task is added for HubSpot with the following components:
      • List All Contacts: A user intent to list all contacts.
      • listAllContactsService – A bot action script to view all contacts in an external integration. Click the Plus icon to expand to view the listAllContactsService bot action component properties.  

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ] }

      To add one or more responses, scroll down and click the +Add Response button.

      Sample Response

      {
      "total": 6,
      "results": [
      {
      "id": "1401",
      "properties": {
      "createdate": "2022-09-21T08:10:09.101Z",
      "email": "getkgw@zomato.com",
      "firstname": "John",
      "hs_object_id": "1401",
      "lastmodifieddate": "2022-09-21T13:39:48.442Z",
      "lastname": "Doe"
      },
      "createdAt": "2022-09-21T08:10:09.101Z",
      "updatedAt": "2022-09-21T13:39:48.442Z",
      "archived": false
      },
      {
      "id": "1301",
      "properties": {
      "createdate": "2022-09-21T07:55:53.923Z",
      "email": "iugf@uber.com",
      "firstname": "Kevin",
      "hs_object_id": "1301",
      "lastmodifieddate": "2022-09-21T16:36:41.185Z",
      "lastname": "Smith"
      },
      "createdAt": "2022-09-21T07:55:53.923Z",
      "updatedAt": "2022-09-21T16:36:41.185Z",
      "archived": false
      },
      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@kore.com",
      "firstname": "Harry",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T14:10:34.717Z",
      "lastname": "Anthony"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T14:10:34.717Z",
      "archived": false
      },
      {
      "id": "501",
      "properties": {
      "createdate": "2022-09-16T09:50:44.195Z",
      "email": "rtyui@microsoft.com",
      "firstname": "Ray",
      "hs_object_id": "501",
      "lastmodifieddate": "2022-09-20T06:14:59.539Z",
      "lastname": "John"
      },
      "createdAt": "2022-09-16T09:50:44.195Z",
      "updatedAt": "2022-09-20T06:14:59.539Z",
      "archived": false
      },
      {
      "id": "451",
      "properties": {
      "createdate": "2022-09-16T09:42:19.196Z",
      "email": "jnbg@amazon.com",
      "firstname": "Jack",
      "hs_object_id": "451",
      "lastmodifieddate": "2022-09-16T09:42:37.438Z",
      "lastname": "James"
      },
      "createdAt": "2022-09-16T09:42:19.196Z",
      "updatedAt": "2022-09-16T09:42:37.438Z",
      "archived": false
      },
      {
      "id": "301",
      "properties": {
      "createdate": "2022-09-13T11:27:52.943Z",
      "email": "eurfh@meta.com",
      "firstname": "Pavan",
      "hs_object_id": "301",
      "lastmodifieddate": "2022-09-15T07:51:34.486Z",
      "lastname": "Mamidi"
      },
      "createdAt": "2022-09-13T11:27:52.943Z",
      "updatedAt": "2022-09-15T07:51:34.486Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • listAllContactsMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to view all contacts.   

    Update a Contact

    Steps to update an existing contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Update a Contact dialog task is added with the following components:
      • UpdateContact: A user intent to update a contact.
      • contactId, contactUpdate, email, firstName, lastName, and phone – Entity nodes for updating the contact details.
      • updateContactScript – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the updateContactScript bot action component properties.
      • updateContactService – A bot action service to update a deal in an external integration. Click the Plus icon to expand to view the updateDealService bot action component properties.

      Sample Request Body

      {
      {
      "properties": {
      "email":"harry.anthony@abac.com"
      }
      }

      To add one or more responses scroll down and click the +Add Response button:

      Sample Response

      {
      "id": "1201",
      "properties": {
      "email": "harry.anthony@abac.com",
      "hs_email_domain": "abac.com",
      "lastmodifieddate": "2022-09-21T06:18:56.655Z"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T06:18:56.655Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getContactService – A bot action service to get deal details in an external integration. Click the Plus icon to expand to view the getContactService bot action component properties.
      • updateContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to update the contact.   

    Search Contact by Keyword

    Steps to search a contact using keywords in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Search Contact by Keyword dialog task is added for the Hubspot with the following components:
      https://kore-wordpress.s3.us-east-2.amazonaws.com/developer.kore.ai/v10-1/wp-content/uploads/sites/35/20230128100016/search_contact_keyword.png
      • Search Contact: A user intent to search a contact.
      • Keyword – Entity nodes for entering the keywords for the searching contacts.
      • searchContactService – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the searchContactService bot action component properties.

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ],
      "query":"abac"
      }

      Sample Response

      {
      "total": 1,
      "results": [
      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "workassit123@kore.com",
      "firstname": "Work",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T14:10:34.717Z",
      "lastname": "Assist"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T14:10:34.717Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • searchContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to search the contact with keyword.   

    Delete a Contact

    Steps to delete a contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Delete Contact dialog task is added for HubSpot with the following components:
    • Delete Contact: A user intent to delete a contact.
    • ContactId – Entity nodes for entering the Contact ID.
    • deleteContactService – A bot action script to delete a deal in an external integration. Click the Plus icon to expand to view the deleteContactService bot action component properties.    
    • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
    • deleteContactMessage – A message node with script to display responses for various scenarios.
    • Refer the step # 3 to train and talk to bot section and learn how to delete the contact.
      Note: If you enter an incorrect ID, the 404 – No Record Found error message is displayed.

    Using the HubSpot Action Templates

    You can use the Prebuilt Action Templates from your HubSpot integration to auto-create dialog tasks and test them using the Talk to Bot option.

    Steps to create a dialog task using HubSpot action templates:

    1. Go to Build > Conversation Skills, and then click the Dialog Tasks.
    2. Click Create a Dialog Task.
    3. On the Dialog Task pop-up, under the Integration, select the HubSpot option to view the action templates.

      Note: If you have not configured any integration for your virtual assistant, you will see the Explore Integrations option. Once you click this option, you will be redirected to the Actions page to configure an integration for your VA. For more information, see Actions Overview.

    HubSpot Actions 

    The following HubSpot actions are supported in this release:

    Supported Tasks Description Method
    Create a Deal Creates a new deal in the system. POST
    Get Deal by Id Retrieves a deal details  GET
    Update a Deal Updates the deal details. PATCH
    List all Deals Retrieves all deals from the system. GET
    Search Deal by Keyword Searches all deals that match with the keyword. GET
    Delete Deal Deletes a deal. DELETE 
    Create a Contact Creates a request in the system. POST
    Get Contact by Id Retrieve a contact details GET
    List All Contacts Retrieves all contacts from the system Get
    Update a Contact Updates the contact details PATCH
    Search Contact by Keyword Search all contacts that match with the keyword GET
    Delete a Contact Deletes a contact GET

    Create a Deal

    Steps to create a new deal in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Create a Deal dialog task is added with the following components:
      • createDeal – A user intent to create a deal.
      • dealName and dealStage – Entity nodes for gathering the required deal details.
      • createDealService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the createDealService bot action component properties.
      • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request body:

      {
      "properties": {
      "dealname": "Custom data integrations",
      "dealstage": "presentationscheduled",
      "pipeline": "default"
      }
      }

      • To add one or more responses, scroll down and click the +Add Response button:

      Sample Response:

      {
      "id": "10146264661",
      "properties": {
      "createdate": "2022-09-11T10:06:55.570Z",
      "days_to_close": "0",
      "dealname": "Integrations",
      "dealstage": "presentationscheduled",
      "hs_closed_amount": "0",
      "hs_closed_amount_in_home_currency": "0",
      "hs_createdate": "2022-09-11T10:06:55.570Z",
      "hs_deal_stage_probability_shadow": "0.59999999999999997779553950749686919152736663818359375",
      "hs_is_closed": "false",
      "hs_is_closed_won": "false",
      "hs_is_deal_split": "false",
      "hs_lastmodifieddate": "2022-09-11T10:06:55.570Z",
      "hs_object_id": "10146264661",
      "hs_projected_amount": "0",
      "hs_projected_amount_in_home_currency": "0",
      "pipeline": "default"
      },
      "createdAt": "2022-09-11T10:06:55.570Z",
      "updatedAt": "2022-09-11T10:06:55.570Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • createDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to create a deal as shown below:
    6. The new deal is created in HubSpot.
    7. Click the View Deal button to view the deal details in HubSpot.

    Get a Deal by ID

    Steps to find a deal by Id in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Get Deal by Id dialog task is added with the following components:
       class=
      • getDeal by Id : A user intent to get a deal by Id.
      • dealID  – Entity nodes for entering the deal Id.
      • getDealService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
      • In the Component Properties window, click the +Add Response button to add one or more responses.

    Sample Response

    {
    "id": "10099894869",
    "properties": {
    "amount": null,
    "closedate": null,
    "createdate": "2022-09-07T13:52:04.184Z",
    "dealname": "Nike deal",
    "dealstage": "appointmentscheduled",
    "hs_lastmodifieddate": "2022-09-10T14:13:05.712Z",
    "hs_object_id": "10099894869",
    "pipeline": "default"
    },
    "createdAt": "2022-09-07T13:52:04.184Z",
    "updatedAt": "2022-09-10T14:13:05.712Z",
    "archived": false
    },
    "archived": false
    }

    • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
    • getDealMessage – A message node with script to display responses for various scenarios. 
  • Click the Train tab to complete the Dialog task training.
  • Click the Talk to Bot icon to test and debug the dialog task.
  • Follow the prompts in the VA console to get a deal by ID as shown below:
  • Click the View Deal button to view the deal details in HubSpot.
  • Click the View Deal button to view the deal details in HubSpot. 
  • List All Deals

    Steps to view all deals in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The List All Deals dialog task is added for HubSpot with the following components:
      • List All Deals: A user intent to list all deals.
      • listAllDealsService – A bot action script to view all deals in an external integration. Click the Plus icon to expand to view the listAllDealsService bot action component properties.
        Scroll down and click +Add Response to add one or more response.

      Sample Response

      {
      "total": 7,
      "results": [
      {
      "id": "10274255383",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-22T07:23:17.500Z",
      "dealname": "Adidas deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-22T07:23:18.603Z",
      "hs_object_id": "10274255383",
      "pipeline": "default"
      },
      "createdAt": "2022-09-22T07:23:17.500Z",
      "updatedAt": "2022-09-22T07:23:18.603Z",
      "archived": false
      },
      {
      "id": "10168816194",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T06:44:20.931Z",
      "dealname": "kora",
      "dealstage": "decisionmakerboughtin",
      "hs_lastmodifieddate": "2022-09-21T17:48:52.859Z",
      "hs_object_id": "10168816194",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T06:44:20.931Z",
      "updatedAt": "2022-09-21T17:48:52.859Z",
      "archived": false
      },
      {
      "id": "10168663436",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:55:53.195Z",
      "dealname": "Assist",
      "dealstage": "decisionmakerboughtin",
      "hs_lastmodifieddate": "2022-09-13T05:55:54.257Z",
      "hs_object_id": "10168663436",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:55:53.195Z",
      "updatedAt": "2022-09-13T05:55:54.257Z",
      "archived": false
      },
      {
      "id": "10168850185",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:54:00.891Z",
      "dealname": "Smart deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-13T05:54:02.233Z",
      "hs_object_id": "10168850185",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:54:00.891Z",
      "updatedAt": "2022-09-13T05:54:02.233Z",
      "archived": false
      },
      {
      "id": "10146264661",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-11T10:06:55.570Z",
      "dealname": "Integrations",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-11T10:06:56.238Z",
      "hs_object_id": "10146264661",
      "pipeline": "default"
      },
      "createdAt": "2022-09-11T10:06:55.570Z",
      "updatedAt": "2022-09-11T10:06:56.238Z",
      "archived": false
      },
      {
      "id": "10146382146",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-11T10:05:52.560Z",
      "dealname": "Custom data integrations",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-11T10:05:54.028Z",
      "hs_object_id": "10146382146",
      "pipeline": "default"
      },
      "createdAt": "2022-09-11T10:05:52.560Z",
      "updatedAt": "2022-09-11T10:05:54.028Z",
      "archived": false
      },
      {
      "id": "10096681328",
      "properties": {
      "amount": "20",
      "closedate": "2022-09-30T07:42:47.238Z",
      "createdate": "2022-09-07T07:46:11.328Z",
      "dealname": "Basic deal",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-13T13:48:43.097Z",
      "hs_object_id": "10096681328",
      "pipeline": "default"
      },
      "createdAt": "2022-09-07T07:46:11.328Z",
      "updatedAt": "2022-09-13T13:48:43.097Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • listAllDealsMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to view all deals.

    Update a Deal

    Steps to update an existing deal in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Update a Deal dialog task is added with the following components:
      • Update a Deal: A user intent to update a deal.
      • dealId, dealUpdate, dealName, and dealStage – Entity nodes for updating the deal details.
      • updateDealScript – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the updateDealScript bot action component properties.
      • updateDealService – A bot action service to update a deal in an external integration. Click the Plus icon to expand to view the updateDealService bot action component properties.

      Sample Request Body

      {
      "properties": {
      "dealname": "Adidas Deal",
      "dealstage": "closedwon"
      }
      }

      To add one or more responses scroll down and click the +Add Response button.

      Sample Response

      {
      "id": "10123889765",
      "properties": {
      "createdate": "2022-09-09T06:45:26.228Z",
      "days_to_close": "0",
      "dealname": "Adidas Deal",
      "dealstage": "closedwon",
      "hs_closed_amount": "",
      "hs_closed_amount_in_home_currency": "",
      "hs_deal_stage_probability": "0.8000000000000000444089209850062616169452667236328125",
      "hs_deal_stage_probability_shadow": "1",
      "hs_is_closed": "true",
      "hs_is_closed_won": "true",
      "hs_lastmodifieddate": "2022-09-11T10:54:30.961Z",
      "hs_object_id": "10123889765",
      "hs_projected_amount_in_home_currency": "",
      "pipeline": "default"
      },
      "createdAt": "2022-09-09T06:45:26.228Z",
      "updatedAt": "2022-09-11T10:54:30.961Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getDealService – A bot action service to get deal details in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
      • updateDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task
    5. Follow the prompts in the VA console to update a deal as shown below:
    6. Enter all deal details to update when prompted by the VA. The existing deal is updated in HubSpot as shown below:
    7. Click the View Deal button to view the deal details in HubSpot.

    Search Deal by Keyword

    Steps to search a deal using keywords in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Search Deal by Keyword dialog task is added for the Hubspot with the following components:
      • Search Deal: A user intent to search a deal.
      • Keyword – Entity nodes for entering the keywords for the searching deals.
      • searchDealService – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the searchDealService bot action component properties.

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ],
      "query":"abac"
      }

      Sample Response

      {
      "total": 3,
      "results": [
      {
      "id": "10274255383",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-22T07:23:17.500Z",
      "dealname": "Adidas deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-22T07:23:18.603Z",
      "hs_object_id": "10274255383",
      "pipeline": "default"
      },
      "createdAt": "2022-09-22T07:23:17.500Z",
      "updatedAt": "2022-09-22T07:23:18.603Z",
      "archived": false
      },
      {
      "id": "10168850185",
      "properties": {
      "amount": null,
      "closedate": null,
      "createdate": "2022-09-13T05:54:00.891Z",
      "dealname": "Smart deal",
      "dealstage": "qualifiedtobuy",
      "hs_lastmodifieddate": "2022-09-13T05:54:02.233Z",
      "hs_object_id": "10168850185",
      "pipeline": "default"
      },
      "createdAt": "2022-09-13T05:54:00.891Z",
      "updatedAt": "2022-09-13T05:54:02.233Z",
      "archived": false
      },
      {
      "id": "10096681328",
      "properties": {
      "amount": "20",
      "closedate": "2022-09-30T07:42:47.238Z",
      "createdate": "2022-09-07T07:46:11.328Z",
      "dealname": "Basic deal",
      "dealstage": "presentationscheduled",
      "hs_lastmodifieddate": "2022-09-13T13:48:43.097Z",
      "hs_object_id": "10096681328",
      "pipeline": "default"
      },
      "createdAt": "2022-09-07T07:46:11.328Z",
      "updatedAt": "2022-09-13T13:48:43.097Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • searchDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to view all deals as shown below:

    Delete a Deal

    Steps to delete a deal in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Delete Deal dialog task is added for HubSpot with the following components:
      • Delete Deal: A user intent to delete a deal.
      • DealId – Entity nodes for entering the deal ID.
      • deleteDealService – A bot action script to delete a deal in an external integration. Click the Plus icon to expand to view the deleteContactService bot action component properties.
      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • deleteDealMessage – A message node with script to display responses for various scenarios. 
    3. Click the Train tab to complete the Dialog task training.
    4. Click the Talk to Bot icon to test and debug the dialog task.
    5. Follow the prompts in the VA console to create a deal as shown below:

      Note: If you enter an incorrect ID, the 404 – No Record Found error message is displayed.

    Create a Contact

    Steps to create a contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Create a Deal dialog task is added with the following components:
      • createContact : A user intent to create a deal.
      • Email, firstName, lastName, and phone– Entity nodes for gathering the required contact details.
      • createContactService – A bot action service to create a contact in an external integration. Click the Plus icon to expand to view the createContactService bot action component properties.
      • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      Sample Request Body

      {
      "properties": {
      "email": "harry@abac.com",
      "firstname":"Harry",
      "lastname":"Anthony",
      "phone": "(877) 829-06966777"
      }

      To add one or more responses, scroll down and click the +Add Response button:

      Sample Response:

      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@abac.com",
      "firstname": "harry",
      "hs_all_contact_vids": "1201",
      "hs_email_domain": "abac.com",
      "hs_is_contact": "true",
      "hs_is_unworked": "true",
      "hs_lifecyclestage_lead_date": "2022-09-21T05:54:29.872Z",
      "hs_object_id": "1201",
      "hs_pipeline": "contacts-lifecycle-pipeline",
      "hs_searchable_calculated_phone_number": "87782906966777",
      "lastmodifieddate": "2022-09-21T05:54:29.872Z",
      "lastname": "anthony",
      "lifecyclestage": "lead",
      "phone": "(877) 829-06966777"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T05:54:29.872Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • createContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot and learn how to view the new contact.

    Get a Contact by ID

    Steps to find a contact by ID in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Get Contact by Id dialog task is added with the following components:
      • getContact by Id : A user intent to get a contact by ID.
      • contactID  – Entity nodes for entering the contact ID.
      • getContactService – A bot action service to create a deal in an external integration. Click the Plus icon to expand to view the getDealService bot action component properties.
      • In the Component Properties window, click the Edit Request link to edit the request parameters as shown below:

      To add one or more responses, scroll down and click the +Add Response button.

      Sample Response

      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@abac.com",
      "firstname": "harry",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T05:54:33.826Z",
      "lastname": "anthony"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T05:54:33.826Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to find the contact.   

    List All Contacts

    Steps to view all contacts in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The List All Contacts dialog task is added for HubSpot with the following components:
      • List All Contacts: A user intent to list all contacts.
      • listAllContactsService – A bot action script to view all contacts in an external integration. Click the Plus icon to expand to view the listAllContactsService bot action component properties.  

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ] }

      To add one or more responses, scroll down and click the +Add Response button.

      Sample Response

      {
      "total": 6,
      "results": [
      {
      "id": "1401",
      "properties": {
      "createdate": "2022-09-21T08:10:09.101Z",
      "email": "getkgw@zomato.com",
      "firstname": "John",
      "hs_object_id": "1401",
      "lastmodifieddate": "2022-09-21T13:39:48.442Z",
      "lastname": "Doe"
      },
      "createdAt": "2022-09-21T08:10:09.101Z",
      "updatedAt": "2022-09-21T13:39:48.442Z",
      "archived": false
      },
      {
      "id": "1301",
      "properties": {
      "createdate": "2022-09-21T07:55:53.923Z",
      "email": "iugf@uber.com",
      "firstname": "Kevin",
      "hs_object_id": "1301",
      "lastmodifieddate": "2022-09-21T16:36:41.185Z",
      "lastname": "Smith"
      },
      "createdAt": "2022-09-21T07:55:53.923Z",
      "updatedAt": "2022-09-21T16:36:41.185Z",
      "archived": false
      },
      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "harry.anthony@kore.com",
      "firstname": "Harry",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T14:10:34.717Z",
      "lastname": "Anthony"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T14:10:34.717Z",
      "archived": false
      },
      {
      "id": "501",
      "properties": {
      "createdate": "2022-09-16T09:50:44.195Z",
      "email": "rtyui@microsoft.com",
      "firstname": "Ray",
      "hs_object_id": "501",
      "lastmodifieddate": "2022-09-20T06:14:59.539Z",
      "lastname": "John"
      },
      "createdAt": "2022-09-16T09:50:44.195Z",
      "updatedAt": "2022-09-20T06:14:59.539Z",
      "archived": false
      },
      {
      "id": "451",
      "properties": {
      "createdate": "2022-09-16T09:42:19.196Z",
      "email": "jnbg@amazon.com",
      "firstname": "Jack",
      "hs_object_id": "451",
      "lastmodifieddate": "2022-09-16T09:42:37.438Z",
      "lastname": "James"
      },
      "createdAt": "2022-09-16T09:42:19.196Z",
      "updatedAt": "2022-09-16T09:42:37.438Z",
      "archived": false
      },
      {
      "id": "301",
      "properties": {
      "createdate": "2022-09-13T11:27:52.943Z",
      "email": "eurfh@meta.com",
      "firstname": "Pavan",
      "hs_object_id": "301",
      "lastmodifieddate": "2022-09-15T07:51:34.486Z",
      "lastname": "Mamidi"
      },
      "createdAt": "2022-09-13T11:27:52.943Z",
      "updatedAt": "2022-09-15T07:51:34.486Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • listAllContactsMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to view all contacts.   

    Update a Contact

    Steps to update an existing contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Update a Contact dialog task is added with the following components:
      • UpdateContact: A user intent to update a contact.
      • contactId, contactUpdate, email, firstName, lastName, and phone – Entity nodes for updating the contact details.
      • updateContactScript – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the updateContactScript bot action component properties.
      • updateContactService – A bot action service to update a deal in an external integration. Click the Plus icon to expand to view the updateDealService bot action component properties.

      Sample Request Body

      {
      {
      "properties": {
      "email":"harry.anthony@abac.com"
      }
      }

      To add one or more responses scroll down and click the +Add Response button:

      Sample Response

      {
      "id": "1201",
      "properties": {
      "email": "harry.anthony@abac.com",
      "hs_email_domain": "abac.com",
      "lastmodifieddate": "2022-09-21T06:18:56.655Z"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T06:18:56.655Z",
      "archived": false
      }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • getContactService – A bot action service to get deal details in an external integration. Click the Plus icon to expand to view the getContactService bot action component properties.
      • updateContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to update the contact.   

    Search Contact by Keyword

    Steps to search a contact using keywords in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Search Contact by Keyword dialog task is added for the Hubspot with the following components:
      https://kore-wordpress.s3.us-east-2.amazonaws.com/developer.kore.ai/v10-1/wp-content/uploads/sites/35/20230128100016/search_contact_keyword.png
      • Search Contact: A user intent to search a contact.
      • Keyword – Entity nodes for entering the keywords for the searching contacts.
      • searchContactService – A bot action script to update a deal in an external integration. Click the Plus icon to expand to view the searchContactService bot action component properties.

      Sample Request Body

      {
      "sorts": [
      {
      "propertyName": "createdate",
      "direction": "DESCENDING"
      }
      ],
      "query":"abac"
      }

      Sample Response

      {
      "total": 1,
      "results": [
      {
      "id": "1201",
      "properties": {
      "createdate": "2022-09-21T05:54:29.872Z",
      "email": "workassit123@kore.com",
      "firstname": "Work",
      "hs_object_id": "1201",
      "lastmodifieddate": "2022-09-21T14:10:34.717Z",
      "lastname": "Assist"
      },
      "createdAt": "2022-09-21T05:54:29.872Z",
      "updatedAt": "2022-09-21T14:10:34.717Z",
      "archived": false
      }
      ] }

      • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
      • searchContactMessage – A message node with script to display responses for various scenarios. 
    3. Refer the step # 3 to train and talk to bot section and learn how to search the contact with keyword.   

    Delete a Contact

    Steps to delete a contact in HubSpot:

    1. Refer to the Install the HubSpot Action Templates section for installing this action template.
    2. The Delete Contact dialog task is added for HubSpot with the following components:
    • Delete Contact: A user intent to delete a contact.
    • ContactId – Entity nodes for entering the Contact ID.
    • deleteContactService – A bot action script to delete a deal in an external integration. Click the Plus icon to expand to view the deleteContactService bot action component properties.    
    • getAccoutService – A bot action service to get account details in an external integration. Click the Plus icon to expand to view the getAccountService bot action component properties.
    • deleteContactMessage – A message node with script to display responses for various scenarios.
    • Refer the step # 3 to train and talk to bot section and learn how to delete the contact.
      Note: If you enter an incorrect ID, the 404 – No Record Found error message is displayed.

    Menu