Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Amazon Lex - Access MongoDB with Node.JS

I have created a bot with Amazon Lex V2 and I have implemented a code on Node.JS to interact with Amazon Lex. Everything is working fine. I have a requirement of accessing the database when users ask certain questions to the bot. I use MongoDB for the database. I see there is a way using lambda. But then there is no proper documentation for V2. Is there any way I can access MongoDB with Node.js when users ask a certain question to Amazon Lex bot?

Code

var params = {
        botAliasId: 'XXXXXX', /* required */
        botId: 'XXXXXXXXX', /* required */
        localeId: 'en_US', /* required */
        requestContentType: 'text/plain; charset=utf-8', /* required */
        sessionId: req.body.sessionId.toString(), /* required */
        inputStream: req.body.message,
        responseContentType: "audio/mpeg",
        };
            lexruntimev2.recognizeUtterance(params, (err, data) => {
            if (err) console.log(err, err.stack); // an error occurred
            else {console.log(data)}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!