Find Jobs
Hire Freelancers

Node JS Await Sync Chatbot

£20-250 GBP

Selesai
Disiarkan lebih dari 3 tahun yang lalu

£20-250 GBP

Dibayar semasa penghantaran
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 Projek: 27256883

Tentang projek

5 cadangan
Projek jarak jauh
Aktif 4 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
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 dalam 1 hari
5.0 (16 ulasan)
3.8
3.8
5 pekerja bebas membida secara purata £106 GBP untuk pekerjaan ini
Avatar Pengguna
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 dalam 3 hari
5.0 (107 ulasan)
6.6
6.6
Avatar Pengguna
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 dalam 1 hari
5.0 (3 ulasan)
1.7
1.7
Avatar Pengguna
Have gone through your requirements. I have been building bots for various games and IOT. Can do it easily.
£100 GBP dalam 2 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera UNITED KINGDOM
London, United Kingdom
5.0
10
Kaedah pembayaran disahkan
Ahli sejak Mac 17, 2014

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.