How to select which chatflow to load?

I have a custom-built website and would like to load two different chatflows in different scenarios.
Chatflow #1: This is a sales-oriented chatflow that will be shown to unauthenticated users on my website.
Chatflow #2: This is a customer support chatflow that will be shown to authenticated users on my website.
From the Chatflow SDK documentation, I can’t seem to choose which chatflow to load; it’ll just load all of them. My users are not contacts in HubSpot, and many of the pages are shared between all users. This means the targeting options available won’t work.
Is there any way to specify which chatflow to load?

Hey @alex28,

One possible workaround that you can explore (in which I mentioned on this dev forum thread), is that your team can try triggering the chat flow based on a query parameter.

Within the chatflow target rules, they can set the website page whose URL includes specific query parameters. You can learn more on this article Create a live chat; specifically under point 2.

In this case for chatflow 1 perhaps the query parameter can be something like ?view1 and chatflow #2 query parameter can be something like ?view2.

What do you think?

Hi @WendyGoh,

That is a great idea, and I appreciate the suggestion. It would require more website changes than we’d like, so I’m not sure if that is feasible at this time. We’ll explore other options.

Thanks,

Alex