Currently I´m using "PureCloudPlatform.Client.V2.dll" to create Chat Conversation setting the "DeploymentId", I want to know if is possible to set the "FLOW ID" instetead of "DeploymentId".
I saw in the "CreateWebChatConversationRequest" object that I can create a CHAT routing to QUEUE but not to a FLOW. ID
NOTE: Today we are using WidGet Version 2.0
Example with QUEUE but I need something like to "FLOW" :
CreateWebChatConversationRequest createWebChatConversationRequest = new CreateWebChatConversationRequest();
WebChatRoutingTarget webChatRoutingTarget = new WebChatRoutingTarget();
webChatRoutingTarget.TargetType = WebChatRoutingTarget.TargetTypeEnum.Queue;
webChatRoutingTarget.TargetAddress = targetAddress;
createWebChatConversationRequest.RoutingTarget = webChatRoutingTarget;
It is not possible to specify/set a flowId in the request to create a new chat (I mean as a parameter of the request).
The association between a chat request and a flow to trigger is done at the Widgets configuration level (in Genesys Cloud Desktop - Admin - Contact Center - Widgets). The link with the flow to trigger is based on the DeploymentId/Deployment Key.
When you create a widget for web chat (Version 2), there is a "Route to Flow" drop-down list. You can select the flow you want to invoke at this level.
In this case, you still need to provide a WebChatRoutingTarget (TargetType Queue and Target Address), but it will be ignored by Genesys Cloud. I mean that Genesys Cloud will trigger/start the flow you have specified in your Route To Flow configuration entry (in Genesys Cloud Desktop - Admin - Contact Center - Widgets).
Also, in case you have not seen it already, you can find information on the Guest Chat API here (protocol level) to understand what to expect on the websocket.