sorry for my english.
I'm new to Alexa skill implementation.
I would like to import a text file (which I have placed in the AWS S3 storage) into the code to be able to read it and insert it within a dataframe but I am not able to do it.
I have this code
class testIntent(AbstractRequestHandler):
def can_handle(self, handler_input):
# type: (HandlerInput) -> bool
return ask_utils.is_intent_name("test")(handler_input)
def handle(self, handler_input):
# type: (HandlerInput) -> Response
res = utilis.create_presigned_url("Media/test.txt")
return (
handler_input.response_builder.speak("{}".format(res)).response
)
That the call of the intent should return a link, I think (?)
While the skill is running the output is "Sorry, I had trouble doing what you asked. Please try again."
I was hoping to take the link, open it, read it and create a dataframe.
Can anyone help me?