Find Jobs
Hire Freelancers

Node JS Await Sync Chatbot

£20-250 GBP

Finalizat
Data postării: peste 3 ani în urmă

£20-250 GBP

Plata la predare
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
ID-ul proiectului: 27256883

Despre proiect

5 propuneri
Proiect la distanță
Activ: 4 ani în urmă

Vrei să câștigi bani?

Avantajele de a licita pe platforma Freelancer

Stabilește bugetul și intervalul temporal
Îți primești plata pentru serviciile prestate
Evidențiază-ți propunerea
Te înregistrezi și licitezi gratuit pentru proiecte
Acordat utilizatorului:
Avatarul utilizatorului
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 în 1 zi
5,0 (16 recenzii)
3,8
3,8
5 freelanceri plasează o ofertă medie de £106 GBP pentru proiect
Avatarul utilizatorului
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 în 3 zile
5,0 (107 recenzii)
6,6
6,6
Avatarul utilizatorului
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 în 1 zi
5,0 (3 recenzii)
1,7
1,7
Avatarul utilizatorului
Have gone through your requirements. I have been building bots for various games and IOT. Can do it easily.
£100 GBP în 2 zile
0,0 (0 recenzii)
0,0
0,0

Despre client

Steagul UNITED KINGDOM
London, United Kingdom
5,0
10
Metoda de plată a fost confirmată
Membru din mar. 17, 2014

Verificarea clientului

Mulțumim! Ți-am trimis prin e-mail linkul pe care trebuie să-l accesezi pentru a revendica creditul gratuit.
A apărut o eroare la trimiterea e-mailului. Încearcă din nou.
Utilizatori înregistrați Totalul proiectelor postate
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Se încarcă previzualizarea
S-a oferit permisiunea de depistare a locației.
Ți-a expirat sesiunea pentru conectare sau te-ai deconectat. Conectează-te din nou.