Fredrik_Sandberg | 2024-04-29 17:07:51 UTC | #1
Hi, I have the following use case: We need to be able to send custom attributes between Genesys Cloud and our webhook for keeping session state (with third party bot). The idea is like this:
- Botconnector sends the initial customer question to the webhook with for example two parameters that are initially empty (for example chatId and sessiondata).
- The webhook receives the request and passes on the customer question to the third party bot.
- The webhook receives the answer from the external bot, along with say for example two custom attributes, that needs to be included in any subsequent call to the bot.
- The webHook replies back to the botconnector, with the customer answer and the two custom attributes.
- The botconnector picks up the custom attributes and assign them to the parameters (chatId/sessiondata)
- Any subsequent call to the webhook will pass on these values in the two parameters (chatID and sessiondata)
Is there a way to accomplish this, and if so, how can you accomplish it? If it´s not possible, any idea on how one can solve this outside of GC? The webhook is written in C#.
Thanks!
Fredrik_Sandberg | 2024-04-30 13:09:39 UTC | #2
Problem solved! The matching of custom attributes (parameters in postutterence request/response calls) are case sensitive! Make sure that your input/output sessions variables in Architect matches your variables in the json postutterence response from the webhook.
system | 2024-05-31 13:10:01 UTC | #3
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: 25982