I am an intern working on a chatbot with AWS Lex. I want to be able to tell the bot to "select a file", then "give me the name on the file".
Our company has a REST api containing these files. How would be able to do this?
I cant even get lex to fetch data from any API.
If anyone could guide me in the right direction, even fetching data from any public REST APIs, that would help alot! Thank you
Here is the lambda code that returns "Hello from lambda!" inside the chat window.
exports.handler = (event, context, callback) => {
callback(null, {
"dialogAction": {
"type": "Close",
"fulfillmentState": "Fulfilled",
"message": {
"contentType": "PlainText",
"content": "Hello from lambda!"
}
}
});
};
Here are some resources I would recommend to become more familiar with how to use Amazon Lex: