简体   繁体   中英

how to create pdf from aws chatbot conversation

I am working on AWS lex platform. A pdf needs to be created from the conversation of a chatbot that needs to be mailed to the user.

I am using node.js

Is there any scope of lambda function to get the pdf and mail that file to the user?

From AWS-LEX you can trigger AWS-LAMBDA check https://docs.aws.amazon.com/lex/latest/dg/using-lambda.html

In the Lambda function create a PDF file from data passed to it, and trigger AWS-SES check https://aws.amazon.com/premiumsupport/knowledge-center/lambda-send-email-ses/

To create PDF in NodeJs you can use any library of choice for reference https://www.npmjs.com/package/pdf-creator-node

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM