My intention is to build a chatbot thru aws lex and optionally communicate with agent in aws connect. For this I have created a custom chatbot widget which connects to api gateway and forwards message to lex thru websocket and respond back to chatbot widget. I also redirect these message to agent rather than lex in cases where customer whats to chat with agent.
Im able to send message from lamda to agent, but I am having trouble receiving message back from agent. How can solve this ?
You may find it easier to use Amazon Connect for both the bot and the agent.