ago 5, 20205:09 PM - editado ago 6, 202010:16 AM
Equipo de producto de HubSpot
How to identify a contact in the chat?
resolver
The Visitor Identification API is now in public beta! You can read more about it and get started here. This is open to all Pro+ portals as of now, no need to be ungated.
The newVisitor Identification APIenables you to provide details about visitors' identities to the chat widget after they've been authenticated by an external login system. So, if a visitor logs in (by providing their email address), the Visitor Identification API can send their identity to HubSpot's chat widget.
This API also works automatically with HubSpot's private content membership for CMS Hub or Knowledge Base, no additional setup required!
Please let me know if you have any questions or feedback. This API is still in beta, by using this API you agree to our developer beta terms.
We are using it in SPA angular 7 app We want that chatbox should be available to visitor as guest and as soon as user logs in to the system it should identify as user
We are able to generate new token with user's email and we are setting it to window.hsConversationsSettings
Flow User visit the site -> Unknow user User login to the site -> Token generated and saved-> window.hsConversationsSettings -> console.log we can see new data -> Still unknow user
2nd flow User visit the site -> we explicitily set 1 known user (Myuser1) with valid tolen in index.html window.hsConversationsSettings -> know user detected as Myuser1 User login to the site -> Token generated and saved-> window.hsConversationsSettings -> console.log we can see new data -> Still Myuser1
Any one lucky enough in last 2 year that this unknown user solved in Single page application ?
Rectification, it does work on the Hubbspot Conversations Inbox. The issue is the slack alert that does show `HubSpotAPP Unknown visitor started a conversation`.
Maybe the slack notification is triggered before the User assignment is resolved?
I`ve been checking everytime in the chrome dev console to see if the mail and the token are set in the window.hsConversationsSettings object, and they are always set there, i just tried again:
Based on your description of the issue, I suspect that the identificationEmail and identificationToken may not be set every time the page loads for an authenticated visitor. Per Step 3 in the documentation:
This context will not be carried across page loads automatically if these parameters are no longer set. Tokens are temporary and will expire after 12 hours.
What is the relationship between this an the call to setting up Chat?
2. Is the only way to get the identificationToken via a seperate API call? Can it be combined with the tracking identify shown above?
3. Unfortunately, our appliacation is not a SPA. So lots of requests. I would prefer not to add an API call on every page request. I assume the only way to manage this is to add another cookie on our end to track when we get the identification token and then if has been more than 12 hours get a new one?
4. Is there a way to get an identification token without creating a contact? I dont' want to create a contact unless they actually start a chat.
Hi @mark_cf! The chat widget can also identify visitors based on existing cookies or submitted email addresses, which does not require a Pro subscription. The Visitor Identification API as a method of identifying chat visitors does require a Pro subscription. Let me know if you have additional questions!
@tilly, I'm a small business just getting started. I can't afford to pay $800/month but hate to ask my visitors for their email when I already know it. It's just a bad user experience for my visitors. Seems odd that HubSpot doesn't give all users access to basic API features like this. Are there any other ways to identify visitors without asking them for their email in the chat? Does this code still work? https://legacydocs.hubspot.com/docs/methods/tracking_code_api/identify_visitor
Hi @avichopra - Thanks for the tag. The Visitor Identification API should work from the KB, but it sounds like we may need additional specifics to get to the root cause. I recommend reaching out to our support team for next steps in troubleshooting the behavior you are seeing.
Hi @jpw_andy - At this time, the Visitor Identification API will work with any Pro level subscription across any Hub (Marketing, Sales, Service, or CMS) but is not available for an individual upgrade. Thank you for this feedback!
ago 5, 20205:09 PM - editado ago 6, 202010:16 AM
Equipo de producto de HubSpot
How to identify a contact in the chat?
resolver
The Visitor Identification API is now in public beta! You can read more about it and get started here. This is open to all Pro+ portals as of now, no need to be ungated.
The newVisitor Identification APIenables you to provide details about visitors' identities to the chat widget after they've been authenticated by an external login system. So, if a visitor logs in (by providing their email address), the Visitor Identification API can send their identity to HubSpot's chat widget.
This API also works automatically with HubSpot's private content membership for CMS Hub or Knowledge Base, no additional setup required!
Please let me know if you have any questions or feedback. This API is still in beta, by using this API you agree to our developer beta terms.
Hello @tilly , I've followed the Visitor Identification API documentation and it works most of the time, but sometimes the user still appears as "Uknown Visitor". Is there any known issue regarding this? Is it still in beta? Thank you.
I am using the newVisitor Identification API to add a new contact from our system, I see token generated from this API response. but I don't see the contact's being added in hubspot.
Hi @tilly My company started using Hubspot this year and we're on the starter plan. We were pretty jazzed about being able to use the chat widget in our intranet to provide support to our agents, but as a result of not having automatic user identification we've had very low engagement.
Is there a way for me to purchase or unlock access to the new visiter identification API without upgrading my whole plan?
just tried it without an app, but API/Token only. Got error complaining about missing scopes:
{"status":"error","message":"This app hasn't been granted all required scopes to make this call. Read more about required scopes here: https://developers.hubspot.com/scopes.","correlationId":".....","errors":[{"message":"All of the following scopes are required.","context":{"requiredScopes":["conversations.visitor_identification.tokens.create"]}}],"links":{"scopes":"https://developers.hubspot.com/scopes"},"category":"MISSING_SCOPES"}
For others reading this, make sure to add the conversations.visitor_identification.tokens.create scope in your app definition's Auth tab, as shown below: