We have 4-5 Products, all of which have the same URL structure, /product/:id
Based on the ID we fetch the product, and only after this we know the product type.
I want to engage different custom bots based on the product type.
To do this I call
window.Intercom(‘update’, {
product_type: "my product type"
})
On my custom bots, I use the custom attribute product_type in the rules to decide which bot should execute.
This however seems to only work intermittently and sometimes a stale bot is used instead of the latest one called with product_type (Assuming this to be due to delay in user attribute being updated and syncing with the client).
Is there a better way to do this which guarantees that correct bot will be used for the chat?