Botconnector - passing custom attributes between GC and external Webhook

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:

  1. Botconnector sends the initial customer question to the webhook with for example two parameters that are initially empty (for example chatId and sessiondata).
  2. The webhook receives the request and passes on the customer question to the third party bot.
  3. 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.
  4. The webHook replies back to the botconnector, with the customer answer and the two custom attributes.
  5. The botconnector picks up the custom attributes and assign them to the parameters (chatId/sessiondata)
  6. 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!

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.

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