Hi guys , does anyone know is it possible for rasa to return a custom action with modified utter response through it rest hook API e.g webhooks/rest/webhook ,
i would like my response from rest/webhook to be something like
[
{
"recipient_id": "test",
"text": "The current temperature in Singapore is 31.47 degres Celsius. It is broken clouds and the wind speed is 4.12 meter per second"
"metada":{ weatherCond: "broken clouds" } // NOTE I ADDED
}
]
i tried with the BotUttered events class in custom action but didn’t manage to get the result
evt = BotUttered(
text = response,
data = {
"weatherData": condition
}
)
#dispatcher.utter_message(response)
return [evt]
Hope someone can assist me . Thanks