Find Jobs
Hire Freelancers

Node JS Await Sync Chatbot

£20-250 GBP

Completed
Posted over 3 years ago

£20-250 GBP

Paid on delivery
NODE JS ASYNC / WAIT KNOWLEDGE NEEDED I have a very specific request - it is to do with structuring code with async/await and working with an API. I have the code pulling a JSON object from an API and working on the data it pulls back - but I am having trouble making everything work with async and keeping variables in scope. It requires the Microsoft chatbot emulator to run it. I can provide all the existing code and a link to this. Current Behaviour: User types: triggerwismo Chatbot responds: Please may I take your orderID User types and order id (one letter followed by 6 numbers - if it begins with an 'S' it is a pharmacy order, otherwise it is a normal order Chatbot responds with a blank line User types in the same order id again Chatbot responds with 'this is a pharmacy order' or 'this is not a pharmacy order' The fact that I need to type it in twice is some sort of scope issue as I am using global variables in the async function I think. Behaviour Required User types in order id: S123456 Chatbot reponds: This is a pharmacy order. I can't help with that User types in order id: B665232 Chatbot responds: This is not a pharmacy order, please enter your account holder name [json object needs to be added to a session at this point I think, and user enters a value which needs to match 'accountHolderName' in the JSON.] chatbot responds: Thankyou, order was place on 'dateandTimeplaced' from the JSON or if the accountHolderName entered doesn't match: chatbot responds: That doesn't match, sorry. Basically, the test JSON has lorem ipsum type text in it at the moment, but I need to get see how the flow of conversation can be done in this async way with node controlling the logic. The code I can supply has working async functions for the QnA maker. I think for someone that knows Node and async/await and variable scope, this should be just an hour or two. Ideally needed as soon as possible, certainly by Tuesday evening UK. If you think it would be easier to work with me sharing my screen and you telling me how to structure the code, I would be open to that also. Everything will happen in the [login to view URL] code which I will attach. Though full repo and instructions to get it working in chatbot emulator provided if needed. Thanks
Project ID: 27256883

About the project

5 proposals
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
It is an hours job and we can start now! We just need to walk through the flow of the code and it will be solved instantly! You want the code to be done in proper async await so it looks synchronous but works asynchronously, you are using I believe microsoft bot framework and you have a few things functional while you want the output as you've shown, I believe this is doable. let's chat I am open to helping you via screensharing as well for structring your code, I am a software architect, have worked with microsoft bot framework and dialogue flow as well!
£80 GBP in 1 day
5.0 (16 reviews)
3.8
3.8
5 freelancers are bidding on average £106 GBP for this job
User Avatar
Hello sir, I can figure out the good pattern for you - I am confident about this project, I can start right now. Hoping that you will review my cover letter and feedback, I am looking forward to hearing from you. Kind Regards
£100 GBP in 3 days
5.0 (107 reviews)
6.6
6.6
User Avatar
Hello, I have had a look at your code and I believe it's something we can refactor. I might also need to see more code in the repo. I have been working with NodeJS for the last 3 years as well as ES6/7 and async patterns have been popping up now and then. If you read my proposal and like it, please reply as soon as you can, I'm free all day. Thanks in advance.
£100 GBP in 1 day
5.0 (3 reviews)
1.7
1.7
User Avatar
Have gone through your requirements. I have been building bots for various games and IOT. Can do it easily.
£100 GBP in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED KINGDOM
London, United Kingdom
5.0
10
Payment method verified
Member since Mar 17, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.