Is there a way to add bot replies and alter bot memory to a conversation outside of the webhook flow?
Meaning I need to do these operations in one request and SAP CAI hasn't initiated the request.
I know of
PUT URL_PREFIX/build/v1/users/$USER_SLUG/bots/$BOT_SLUG/versions/$VERSION_SLUG/builder/conversation_states/$CONVERSATION_ID and
Is there a way to do this in one api call? I would like to avoid the possibility that one request succeeds and 1 fails leaving the bot state in an inconsistent manner.
I've tried the /dialog api and here are some quirks, each of them is unacceptable:
- all messages sent to /dialog will be considered client sent and not bot replies.
- all messages send to /dialog will be nlp/builder processed, resulting in actions pinging backends changing state and producing other replies.
- all messages and replies from /dialog will not be sent to the chat as the bot connector did not proxy these calls and is not aware of them.
As a result using the /dialog api is a side-effect inducing way of setting just the bot's memory.