{"id":90,"date":"2021-04-07T14:21:18","date_gmt":"2021-04-07T14:21:18","guid":{"rendered":"https:\/\/felixaugenstein.com\/blog\/?p=90"},"modified":"2022-03-25T11:06:37","modified_gmt":"2022-03-25T11:06:37","slug":"create-new-customer-contacts-in-the-hubspot-crm-system-with-watson-assistant","status":"publish","type":"post","link":"https:\/\/felixaugenstein.com\/blog\/create-new-customer-contacts-in-the-hubspot-crm-system-with-watson-assistant\/","title":{"rendered":"Create new customer contacts in the HubSpot CRM system with Watson Assistant"},"content":{"rendered":"\n<p>Imagine potential clients for your product or service chatting with a bot on your website, leaving their contact information, which is automatically transferred to your CRM system so that the appropriate sales representative can contact them directly. With <a href=\"https:\/\/www.ibm.com\/cloud\/watson-assistant\" data-type=\"URL\" data-id=\"https:\/\/www.ibm.com\/cloud\/watson-assistant\" target=\"_blank\" rel=\"noopener\">Watson Assistant<\/a> and <a rel=\"noreferrer noopener\" href=\"https:\/\/www.hubspot.com\/products\/crm\" data-type=\"URL\" data-id=\"https:\/\/www.hubspot.com\/products\/crm\" target=\"_blank\">HubSpot CRM<\/a>, this is possible!<\/p>\n\n\n\n<p>(All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\" target=\"_blank\">available here on GitHub<\/a>.)<\/p>\n\n\n\n<p>HubSpot CRM is a tool that includes for instance a reporting dashboard, prospect and deal tracking, pipeline management and other features. It also offers a <a href=\"https:\/\/developers.hubspot.com\/docs\/api\/crm\/understanding-the-crm\" data-type=\"URL\" data-id=\"https:\/\/developers.hubspot.com\/docs\/api\/crm\/understanding-the-crm\" target=\"_blank\" rel=\"noopener\">REST API for the CRM<\/a> and can therefore be integrated with Watson Assistant. <\/p>\n\n\n\n<p>Watson Assistant itself <a href=\"https:\/\/www.ibm.com\/watson\/assistant-integrations\" data-type=\"URL\" data-id=\"https:\/\/www.ibm.com\/watson\/assistant-integrations\" target=\"_blank\" rel=\"noopener\">connects to all kinds of information, applications and agent platforms<\/a> to resolve customer issues fast. There is another blog article on how to <a href=\"https:\/\/felixaugenstein.com\/blog\/creating-issues-in-jira-with-watson-assistant\/\" data-type=\"URL\" data-id=\"https:\/\/felixaugenstein.com\/blog\/creating-issues-in-jira-with-watson-assistant\/\" target=\"_blank\" rel=\"noopener\">connect Watson Assistant to Jira Software<\/a>.<\/p>\n\n\n\n<p>Let\u2019s start with the hands-on part and connect Watson Assistant to the HubSpot CRM system.<\/p>\n\n\n\n<p>If you haven\u2019t done so already, sign up for an <a href=\"https:\/\/cloud.ibm.com\/registration\" target=\"_blank\" rel=\"noopener\">IBM Cloud account<\/a>. (All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\" target=\"_blank\">available here on GitHub<\/a>.)<\/p>\n\n\n\n<p>Create a Cloud Function on the IBM Cloud and provide the <a href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\/blob\/master\/create-hubspot-crm-contacts.js\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\/blob\/master\/create-hubspot-crm-contacts.js\" target=\"_blank\" rel=\"noopener\">Node.js code from GitHub<\/a>. In the code you need to provide your HubSpot API key \/ hapikey. Save the function and click Invoke with Parameters, provide the corresponding parameters <a href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\" data-type=\"URL\" data-id=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\" target=\"_blank\" rel=\"noopener\">as indicated on GitHub<\/a> and click Apply, then click Invoke. Results are shown in the Activations pane. In your HubSpot CRM system your new contact should be created.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"527\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-1024x527.png\" alt=\"\" class=\"wp-image-91\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-1024x527.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-300x154.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-768x395.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-1536x791.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-830x427.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-230x118.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-350x180.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data-480x247.png 480w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/provide-your-data.png 2043w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Now you can go to \u201cEndpoints\u201d, enable your Cloud Function as a Web Action and provide the endpoint in your Watson Assistant, under Options and then select Webhooks. Make sure to add a <code>.json<\/code> at the end. (All documentation for this tutorial, as well as the code, is <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-hubspot-crm-contacts\" target=\"_blank\">available here on GitHub<\/a>.) On GitHub a json-Skill is included, which you can import directly into your Watson Assistant Dialog skill.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"466\" src=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-1024x466.png\" alt=\"\" class=\"wp-image-92\" srcset=\"https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-1024x466.png 1024w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-300x137.png 300w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-768x350.png 768w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-1536x699.png 1536w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-2048x933.png 2048w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-830x378.png 830w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-230x105.png 230w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-350x159.png 350w, https:\/\/felixaugenstein.com\/blog\/wp-content\/uploads\/2021\/04\/add-webhook-dotjson-480x219.png 480w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>And we&#8217;re ready to go! Now you can create your first contact via Watson Assistant and see how the new contact automatically appears in your HubSpot CRM. For more details and code examples regarding this tutorial, please refer to <a href=\"https:\/\/github.com\/FelixAugenstein\/watson-assistant-jira-issues\" target=\"_blank\" rel=\"noopener\">this GitHub repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Imagine potential clients for your product or service chatting with a bot on your website, leaving their contact information, which is automatically transferred to your CRM system so that the appropriate sales representative can contact them directly. With Watson Assistant and HubSpot CRM, this is possible! (All documentation for this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":153,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,3,4,30,19,18,5],"tags":[],"class_list":["post-90","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-functions","category-ibm-cloud","category-ibm-watson","category-node-js","category-rest-apis","category-serverless","category-watson-assistant"],"_links":{"self":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/comments?post=90"}],"version-history":[{"count":3,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions"}],"predecessor-version":[{"id":98,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/posts\/90\/revisions\/98"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media\/153"}],"wp:attachment":[{"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/media?parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/categories?post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/felixaugenstein.com\/blog\/wp-json\/wp\/v2\/tags?post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}