How to store aws lex chatbot conversation to db?

how do i store my aws lex chatbot conversation to my db or send to mail