We have a platform that provides omnichannel chatbots to our customers. One of them asked us to integrate with purecloud, which we did via the guest chat API.
Now this customer has two requirements:
He wants to see the chat history of the user and the chatbot. In this post: 3rd Party Chatbots with PureCloud (mypurecloud.com) you mention sending the chat history but we couldn't see how to do it on the API
Send to the agents the images and documents the user sends. We can see in the API Guest Chat APIs (mypurecloud.com) that you can send media-request, but not an example, how can we do this?
In the "3rd Party Chatbots with PureCloud" blog, I think the chat history is sent via a single message (first) after the chat is established.
"This is the place where all logic / AI should take place. One additional line is required to save history for conversation between Customer and Bot. Once the call is transferred to PureCloud, we will push it as a single message."
There is no specific type of message for this - I mean there is no "Chat History" message type or API.
What the blog describes is just to have all the messages exchanged (before triggering a chat request to Genesys Cloud) be sent via a first chat message, from/by your platform. (i.e. chat history).
Note that Genesys Cloud WebChat can leverage markdown format for the chat message.
Guest Chat API (WebChat v2) does not support exchange of images or documents.
This capability is built as part of a new chat protocol - web messaging (asynchronous chat) - still under preview/beta.
See this blog on web messaging and these pages on the Developer Center.