this is my scenario:
- Bot A (made with BotFramework-sdk for Javascript(Node.js)) who receives audio files, calls to Speech Services REST API and get the text from it.
- Bot B (made with BotFrameworkComposer) who has the qna functionality.
I need to set Bot A as a proxy receiving the audio attatchments and asking to Bot B showing the returning answer inside Bot A.
I've already managed to connect those two bots with directline and my problem comes after the conversation is started: in Bot A i'm using the REST API for send messages and websocket to receive the activities using the streamURL.
After i create the websocket i call for on message event to get the messages comming from the Bot B but i need to show them using await context.sendActivity(MessageFactory.text...
[...]
response = await axios.post(url, null, config);
ws = new WebSocket(response.data.streamUrl);
ws.on('message', function incoming(data) {
[...]
}
Thanks in advance.