- In the
event
which you receive in Lambda function, you can get raw text from inputTranscript
{'messageVersion': '1.0', 'invocationSource': 'DialogCodeHook', 'userId': '', 'sessionAttributes': {}, 'requestAttributes': {}, 'bot':
{'name': 'bot_name', 'alias': 'bot_alias', 'version': '$LATEST'},
'outputDialogMode': 'Text', 'currentIntent': {'name':
'invoked_intent_name', 'slots': {}, 'slotDetails': {},
'confirmationStatus': 'None'}, 'inputTranscript': 'user message which
triggered the intent'}
- For storing the conversation, in the Lambda function, just before you provide the response to the user, you can write a function to store the conversation i.e user query and response from bot.
Hope it helps.