Where do i deploying my Model Building API code in aws LEX - amazon-web-services

i am noobie to AWS, i have a question!? where do i deploy this API code? i am not sure on and how to deploy the API code that is been created.
I am trying to download the chat logs for LEX bot.
I am following this documentation https://docs.aws.amazon.com/lex/latest/dg/conversation-logs-configure.html. can someone help me figure out where do i write the API request that is given in the documentation.

You deploy code to whichever server/service you're using, it's all upto you.
Lex is a service that you interact with either through the console, the SDK or via the CLI.

Related

Is there a software like Microsoft Bot Composer for AWS?

I'm trying to make a ChatBot that uses Dialog Flow and should be able to pickup Keywords and match it to the Intents.
I've worked with Microsoft Bot Framework using Luis and deployed a similar bot on Azure but now I have to do the exact same thing but have to deploy that on AWS and use Elastic Search.
How do I do that? Is there a similar Software available for AWS ?
you can use AWS lex for create chatbot,here is the link for aws lex
https://docs.aws.amazon.com/lex/latest/dg/getting-started.html.
for performing back-end task like validation and dynamic response from bot side,then you need to use lambda again lambda also AWS tool that provide to how to make server-less bot.
https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html
hope this kt will help you.

How do I link a DynamoDB, Lambda Function, or Gateway API to an external API with a POST function?

I want to preface this with the fact that I'm not knowledgable with AWS really at all. I mostly do front end development and some very (very, very) basic MySQL.
Recently a new manager has joined my company and despite telling him, he seems to think I'm a backend developer. Because of that I've been tasked with hooking up an AWS flow that was in place (A DynamoDB table, an Gateway API and Lambda Function that connects them and also creates gists with tokens) to an external API that accepts data with a POST function.
Ideally I'd like to not have to touch anything to do with the Lambda function as I'm not 100% of how it works and the files are too big to do inline editing within the AWS dashboard.
Is there anyway I can set this up easily? Any help would be incredibly appreciated
p.s. Don't feel bad about talking down to me or anything. The easier and more clearly explained the better
The answer is not something I can just spit out here. You will have to do some learning and homework. That said here are some resources where you can learn quickly what you are trying to find out.
AWS Serverless home page
Serverless.com lambda information
AWS Serverless blog
AWS Serverless tutorials
AWS Serverless hands on building apps
AWS Serverless youtube channel
AWS Amplify
Free Amazon DynamoDB online training from Linux Academy

How to use Amazon lex bot from the external web UI

I have set up the amazon lex bot in AWS and I am able to test this successfully in the Test bot section.
I started exploring accessing the amazon lex bot from the external web ui (my local application) and I found the tool called amazon aws lex web UI (https://github.com/aws-samples/aws-lex-web-ui) and It seems very complex to setup, I have few queries here
1) Is this (https://github.com/aws-samples/aws-lex-web-ui) the only way to use amazon lex bot from my local web application?
2) This section has the notes for running locally (https://github.com/aws-samples/aws-lex-web-ui#running-locally)
How to generate the amazon Cognito pool Id for the amazon lex bot?
Thanks,
Harry
1) No
Amazon Lex is ultimately a service, which means it can be called from any application that calls the API appropriately. The sample provided by AWS is just an example of how to call that API. So, this is not the only way to use Amazon Lex bots from your local web application.
You can create a fully custom Bot UI from scratch (like I did) that calls the Amazon Lex API to service your application. (More on this can be found at this question that another user has asked - note that the response for this question is done in C#)
2)
There is an example provided by AWS at the following link which has a section on how to set up Cognito for this purpose (again, this is what I used to set up my own Bot)
Hope this helps you!
https://github.com/aws-samples/aws-lex-web-ui is an utility tool, which you may use, but in most cases you will end up implementing your own display logic. It most cases it is connecting it to sms, facebook, whatsapp... You have an API https://docs.aws.amazon.com/lex/latest/dg/API_runtime_PostText.html in which you can interact with Lex, I suggest using that.

Using AWS Amplify to create a SNS endpoint. How to do so?

For creating a SNS endpoint in Android they give us a tutorial on how to create a SNS endpoint.
https://docs.aws.amazon.com/sns/latest/dg/mobile-platform-endpoint.html
It looks a bit outdated and the methods are depreciated. Currently I am using AWS Amplify for my mobile app. How would I do it using the mobileclient? I can't seem to find any tutorials or docs on it. Could someone explain or link me? Thanks
The tutorial you mentioned is for creating a mobile endpoint so that SNS can send push notifications.
The Amplify SDK for Android handles this using Amazon Pinpoint. The Amplify docs provide a tutorial on how to setup Push Notifications here.

Service endpoint for AWS Lex Bot

I created Bot on AWS Lex, that internally calls LAmbda functions to fulfill different intents. I tested on the AWS Lex console, and it is working fine for both text and Speech.
I also exported to Alexa Skill Kit (part of developer.amazon.com/alexa) using link - https://aws.amazon.com/blogs/machine-learning/export-your-amazon-lex-bot-schema-to-the-alexa-skills-kit/
Questions -
What would be the correct service endpoint, that I have to pass in Configurations tab (in Alexa Skill Kit). Currently I passed - “https://runtime.lex.us-east-1.amazonaws.com” . But it is not working. Can you help me here ?
You don't need to mix up Lex with Alexa. Lex is the technology behind Alexa. You only need to integrate your Lambda function not Lex url. For that you can provide Lambda ARN under the EndPoint section of the skill builder like below,
I believe you will have to submit lambda Arn which looks like: arn:aws:lambda:us-east-1:{acc_id}:function:{function_name}
Note: Please make sure the right region is picked up