Launch Flow on Webchat via the API

Hello.
I'm using api / v2 / conversations / chats to start a conversation, however, I would like to be able to start by passing the deployment key of a flow, just like we do with the chat on the client. Is that possible?
In summary I summarize I would like to start a chat without informing the queue but the flow.

Hello,

/api/v2/conversations/chats is to generate a Third Party Chat.

Third Party Chat can only be generated towards a queue.
The /api/v2/conversations/chats only accepts queueId (as you can see in the Request schema).

If you need to submit an "item" that triggers a flow (instead of queue), you can use the Third Party Email.
The /api/v2/conversations/emails can accept queueId or flowId (as you can see in the Request schema).

Regards,

Hello.
See if for my scenario, this alternative is a path.
We will have the third-party ChatWeb open and at some point I need to direct the conversation to Genesys. If at that moment, we opened the Genysys ChatWeb, however, we left it invisible on the screen and we were posting the messages of the other chat on the Genysys and triggering the sending via javascript, and when we have an answer, do we intercept it through the WebChat.messageAdded? It would be an acceptable path and there is another better way to do that, considering that we have to start the chat with genesys directing to a flow, which this one will direct to a queue.

Hello,

Widgets v2 is not meant to run without UI (not supported).
If you need to connect your chat client to PureCloud (using PureCloud native WebChat), you should maybe use the Guest Chat API and develop your own connection.
Guest Chat API methods are available in the SDKs - under WebChatApi section.

For such an integration, we recommend using 3rd party chat APIs https://developer.mypurecloud.com/api/rest/v2/conversations/third-party-object-routing.html. You may also be able to leverage the guest chat APIs as Jerome mentioned, but those are not built with such integrations in mind (where using 3rd party chat) so you may run into limitations.

Good afternoon.
First thanks for the answers and help.
I have two questions.
1 - Is there any forecast of being able to start a flow via API in the same way that this is done via conversation webchat?
2 - Why is it not possible to pass the flow as a parameter via the conversion API?

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.