From Dialogflow to Alexa, how to create lambda function? - amazon-web-services

I have built a simple chatbot with Dialogflow and I have exported the json file to integrate it into alexa.
I created the skill with no problem but now I don't know how create the lambda function code for the endpoint (I create the function, but I don't know the code I have to write in).
Do you know some code for this dialogflow integration?
Many thanks

There's some great resources out there already with code to get you started. I'd recommend reading as much documentation as possible. Check out these links, the github repo has some great examples. For hosting I use the serverless framework to deploy to AWS. Highly recommend checking that out if you're a beginner to this.
https://github.com/dialogflow/dialogflow-fulfillment-nodejs
https://cloud.google.com/dialogflow/docs/quick/fulfillment
https://medium.com/faun/building-chatbot-with-google-dialogflow-with-aws-lambda-e19872e1589

Related

process of deployment independent websites from SaaS Application

first of all I'm not sure how I can explain myself since I'm not native English speaker but please bear with me in the following scenario: I have a lot of customers where they need a simple blog website with their own domain name, instead of me registering on host service provider and deploying that blog website manually I'm looking for a better automated solution for example it would make a lot of sense if they use my own platform so after a successful registration/payment on my platform their website is deployed independently on private server instance (with their own specific config) ... Im not really looking for an answer on exactly how to implement that but what that process is called (the deployment part) or under what category should I dig to learn more. your advice is much appreciated.
There can be multiple approaches to solve the problem.
However, simple one will be using AWS SDK to create EC2 instances with Bitnami wordpress image.
You can trigger the API with parameters which will auto-install wordpress, configure dns and other stuff and provide the ready to use website within seconds.

CLI/SDK to create Google-cloud oAuth client

Is it possible to create an OAuth client (https://developers.google.com/identity/protocols/OAuth2) using a script (gcloud or any library)?
Google recommended way (https://developers.google.com/identity/protocols/OAuth2WebServer#creatingcred) is to manually create from https://console.developers.google.com/apis/credentials.
I have multiple apps with different url_redirects like https://a.domain.com, https://b.domain.com https://c.domain.com, https://d.domain.com, this subdomain list is large to manage manually.
I want to automate this process for my use case. I'm not able to find any library to do this.
Update: Endpoint used by GCP console https://clientauthconfig.clients6.google.com/v1/clients and there is related permission also "clientauthconfig.clients.create" but there is no API provided for it.
You would need API client to create new API client anyway. Is it really necessary for you to create it this way? You can rather create multiple "user" credentials for your application using only that one API client.
I think you are looking for something like this, hope Java is good for you.
I've also found the following relevant information that might help you. Link
Also relevant for you. Link
Let me know.

How to use AWS SDK cpp async API's for S3?

I wish to use the aws sdk cpp async api's for s3 in my application. However I am not able to find documentation for the same. I have been through https://github.com/awsdocs/aws-doc-sdk-examples/tree/master/cpp/example_code/s3 but there are no examples which include async api's.
For example I am trying to use the PutObjectAsync api. According the api reference guide given here https://sdk.amazonaws.com/cpp/api/LATEST/class_aws_1_1_s3_1_1_s3_client.html#aee8d39c350c5bb66a8d1edcc18df2b78 you need to form the PutObjectRequest, PutObjectResponseReceivedHandler and AsyncCallerContext.
Here I didn't understood how to form the PutObjectResponseReceivedHandler and AsyncCallerContext. Can someone please guide me through it.
The AWS Code Sample Catalog on GitHub now includes a C++ example that demonstrates how to upload a file to Amazon S3 asynchronously.
The source code can be viewed at https://github.com/awsdocs/aws-doc-sdk-examples/blob/master/cpp/example_code/s3/put_object_async.cpp

How to create a custom AWS Alexa skill using my exported Dialogflow (API.AI) agent

I have a Dialogflow (formerly called API.AI) agent that works great in Dialogflow -- I can have a multi-level conversation that persists contexts, etc. I've been struggling to export this into an Alexa skill, which I believe should be possible. The Dialogflow docs only provide the steps to export the intents/sample utterances, which I have in my Alexa skill. I've been trying to find examples of a Lambda function that will actually use my Dialogflow-exported intents and sample utterances, but I haven't found anything that shows me how to do that. So far I've only found examples that return hard-coded responses (not actually using a response from my Dialogflow agent). I've tried this Node.js example, which will recognize my default welcome intent but none of my other Dialogflow intents. (I get the fallback intent - "Sorry, what was that?") Has anyone done this before or knows of something I'm missing?

aws machine learning endpoint

I have generated endpoint after evaluation of machine learning model.
Created and endpoint
Which is the best way to request and use the endpoint to make a prediction in our web application.?
We are looking to use the php sdk
Any help would be appreciated.
This documentation should help you with everything you need: https://boto3.readthedocs.io/en/latest/reference/services/machinelearning.html
You just need to use the predict method.