# Authenticating users using Chatbot and HubSpot CRM.

**URL:** <https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876>\
**Category:** CRM\
**Tags:** chat\
**Created:** [November 9, 2022, 9:10am UTC](https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876 "2022-11-09T09:10:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![R-Moussa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/r-moussa/32/67159_2.png) [@R-Moussa](https://community.hubspot.com/u/R-Moussa)\
**Post date:** [November 9, 2022, 9:10am UTC](https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876/1 "2022-11-09T09:10:11Z")

</div>

Hello,

I need to create a chatbot to chat with our website visitors. At some point(s) in the conversation I’ll need to authenticate the users against HubSpot CRM, how can I do that?

---

<div class="post-metadata">

**Author:** ![MrJustinGivens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mrjustingivens/32/49537_2.png) [@MrJustinGivens](https://community.hubspot.com/u/MrJustinGivens)\
**Post date:** [November 9, 2022, 4:27pm UTC](https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876/2 "2022-11-09T16:27:42Z")

</div>

@R-Moussa During the chatbot you’ll want to ask for their email address and name.

Once you ask for the email address, HubSpot will try and match it to your CRM data.

If there’s no match, the conversation integration will prompt you to create a contact record.

Let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![R-Moussa](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/r-moussa/32/67159_2.png) [@R-Moussa](https://community.hubspot.com/u/R-Moussa)\
**Post date:** [November 9, 2022, 5:53pm UTC](https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876/3 "2022-11-09T17:53:48Z")

</div>

Thank you v. much for the help. Can I authenticate the user using something  
else other than the username and email address, serial number for example?  
Especially if I want this chatflow to help current clients only.

---

<div class="post-metadata">

**Author:** ![Ron\_GG](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ron_gg/32/13681_2.png) [@Ron\_GG](https://community.hubspot.com/u/Ron_GG)\
**Post date:** [February 3, 2024, 7:13pm UTC](https://community.hubspot.com/t/authenticating-users-using-chatbot-and-hubspot-crm/68876/4 "2024-02-03T19:13:45Z")

</div>

This is an older thread, but it is high in search results so I wanted to list the answer. I realize you probably found the answer elsewhere by now.

You will need to use the Visitor Identification API and tie it into your internal authentication. Pass the visitor token you generate along with the chat session for Hubspot to detect the authenticated profile.

Ref: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/conversation/visitor-identification)
