I am using spacy sentencizer in action method to break the big response return from action method to the user.
ex. Rasa is a very developer-friendly framework. I want to build a bot.
Spacy will break it to 2 sentences.
- Rasa is a very developer-friendly framework.
- I want to build a bot.
Now when i hit the server using the webhook.
{
"message": "which framework is good to build the bot?",
"sender": "b2831e73-1407-4ba0-a861-0f30a42a2a5a"
}
Response
[
{
"recipient_id": "b2831e73-1407-4ba0-a861-0f30a42a2a5a",
"text": "Rasa is a very developer-friendly framework."
},
{
"recipient_id": "b2831e73-1407-4ba0-a861-0f30a42a2a5a",
"text": "I want to build a bot."
}
]
How can i send some config setting to action method while calling the webhook so i could know that this request is Rest request not a socketio request and i can write logic to skip the spacy sentencizer logic.?