How to get message from agent ( in aws connect ) to serverless lambda

174 Views Asked by At

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 ?

1

There are 1 best solutions below

0
virtualgill On BEST ANSWER

You may find it easier to use Amazon Connect for both the bot and the agent.