Find Jobs
Hire Freelancers

Node JS Await Sync Chatbot

£20-250 GBP

Færdiggjort
Slået op over 3 år siden

£20-250 GBP

Betales ved levering
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
Projekt-ID: 27256883

Om projektet

5 forslag
Projekt på afstand
Aktiv 4 år siden

Leder du efter muligheder for at tjene penge?

Fordele ved budafgivning på Freelancer

Fastsæt dit budget og din tidsramme
Bliv betalt for dit arbejde
Oprids dit forslag
Det er gratis at skrive sig op og byde på jobs
Tildel til:
Brug 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 på 1 dag
5,0 (16 anmeldelser)
3,8
3,8
5 freelancere byder i gennemsnit £106 GBP på dette job
Brug 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 på 3 dage
5,0 (107 anmeldelser)
6,6
6,6
Brug 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 på 1 dag
5,0 (3 anmeldelser)
1,7
1,7
Brug Avatar.
Have gone through your requirements. I have been building bots for various games and IOT. Can do it easily.
£100 GBP på 2 dage
0,0 (0 anmeldelser)
0,0
0,0

Om klienten

Flag for UNITED KINGDOM
London, United Kingdom
5,0
10
Betalingsmetode verificeret
Medlem siden mar. 17, 2014

Klientverificering

Tak! Vi har sendt dig en e-mail med et link, så du kan modtage din kredit.
Noget gik galt, da vi forsøgte at sende din mail. Prøv venligst igen.
Registrerede brugere Oprettede jobs i alt
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Indlæser forhåndsvisning
Geolokalisering er tilladt.
Din session er udløbet, og du er blevet logget ud. Log venligst ind igen.