Find Jobs
Hire Freelancers

Node JS Await Sync Chatbot

£20-250 GBP

完了済み
投稿日: 3年以上前

£20-250 GBP

完了時にお支払い
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: 27256883

プロジェクトについて

5個の提案
リモートプロジェクト
アクティブ 4年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
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 1日以内
5.0 (16 レビュー)
3.8
3.8
この仕事に5人のフリーランサーが、平均£106 GBPで入札しています
ユーザーアバター
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 3日以内
5.0 (107 レビュー)
6.6
6.6
ユーザーアバター
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 1日以内
5.0 (3 レビュー)
1.7
1.7
ユーザーアバター
Have gone through your requirements. I have been building bots for various games and IOT. Can do it easily.
£100 GBP 2日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED KINGDOMのフラグ
London, United Kingdom
5.0
10
お支払い方法確認済み
メンバー登録日:3月 17, 2014

クライアント確認

ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。