Chatbot user identification inconsistent (dev != live)

Hello all,

I’m developing a product registration bot for one of our clients.
There are two use cases for the bot:

1. end customer registers his product
2. service partner registers the product for the end customer.

1st case works very well so far (even though the problem for the 2nd case can theoretically occur there as well)

2nd case:
If the service partner is known in HubSpot, the chaos begins:
The bot registers the end customer data from then on to the existing contact:
- the specified email address is added to the contact as an additional address
- all other data of the existing contact is rigorously overwritten.
- The API is not able to transfer the user ID.

Therefore: Reliable registration is not possible.

The problem with this is:
The chatbot behaves differently in its test environment than on the website.

In the test environment - if an email address is unknown - a new contact is created - otherwise the existing one is selected. So everything works great.
In the live conversion (website or landing page, HubSpot or external, makes no difference), it behaves as described in the second case.

My question to the support, whether I can adjust the bot behaviour accordingly, was rejected, as they do not give developer support. I find that cheeky, because - at least from my perspective - a test environment should behave consistently.

Apart from that: Do you have an idea how I can “restrict” or even switch off the identification of users for the chat / chatbot? Or perhaps I can adopt the behaviour of the test environment for websites.

Thanks in advance :slightly_smiling_face:

Stefan

Hi, @Stefan_PSV :waving_hand: Thanks for your question and for including all those details. I know getting bounced around can be frustrating.

To get started, I’m going to go broad and invite some of our community members and experts to the conversation. Hey @Mike_Eastwood @Teun @Anton @piersg @louischausse, have you built any similar projects for your clients? If not, do you have any creative thoughts on how else @Stefan_PSV might approach this project?

To your question about adjusting the bot’s behaviour, HubSpot doesn’t provide an option to turn off user identification for the chatbot or restrict it in the way you’re suggesting.

One workaround to explore — to add some sort of identifier to the email addresses of service partners. For instance, if a service partner’s email address is john@example.com, you could try an email like john+servicepartner@example.com. Emails sent to this address will still reach John, but HubSpot will treat it as a unique contact. This could allow you to keep the service partner’s information separate from the end customer’s information.

Thank you for having a look! — Jaycee

Hi @Stefan_PSV

When I’m testing I use different browsers for different users so the cookies (and data) are segregated.

Which is why people laugh when they see I have 7 browsers open.

Have fun

Mike