Cornelia | 2021-02-22 13:09:31 UTC | #1
Hi,
I am using the interaction widget to integrate towards an endpoint we have. Unfortunately, our endpoint only accepts POST requests. Is it possible to get the Interaction Widget to send a POST instead of a GET?
I have access to "pcConversationId" which is great, but I would also like to be able to send the latest message received to the endpoint. Is it possible to get a hold of this message, e.g. "pcMessage"?
Best regards, Cornelia
anon28885283 | 2021-02-23 10:43:29 UTC | #2
Hi Cornelia,
The interaction widget is simply an iframe to the URI that's provided. So the URI should be returning a webpage. If you want to send POST requests then that needs to be called from the embedded page itself.
For the second question, there is no built-in way so you'd need to use the API to get information about the conversation.
Cornelia | 2021-02-23 11:17:09 UTC | #3
Thanks for your response PrinceMerluza! Is there another tool than Interaction Widget that could be used? I guess we have to use the API to get a hold of the message anyway?
anon28885283 | 2021-02-24 07:05:32 UTC | #4
If you're looking to call some requests at the onset of a conversation thenit might be worth looking into Data Actions and Scripts.
With Data Actions you could define custom or Genesys Cloud HTTP requests. And with a custom script you could set it to automatically call Data Actions once the script is presented to the agent.
system | 2021-03-27 07:07:29 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 10049