messenger-bot-tutorial icon indicating copy to clipboard operation
messenger-bot-tutorial copied to clipboard

Retrieving user's input inside action.

Open thibaultboursier opened this issue 7 years ago • 5 comments

Hello,

I have an action called saveAddress. Inside it, I call an API to save an address entered by Facebook user. My problem is that I can't get user's input inside action function.

['saveAddress'](sessionId, context, cb) {
        saveAddress(context._fbid_, 'ADRESS ENTERED BY USER')
            .then(response => {
              context.success = response.success;

              cb(context);
            });
    },

I'm sure there's a way to achieve it. Do you have a solution ?

Thank you.

thibaultboursier avatar Mar 05 '17 16:03 thibaultboursier

Hi @thibaultboursier I really don't have an answer to this but I'm trying to implement something similar on nodejs and wondering if you've figured out yours and could help out. Thank you!!!

thekinglaolu avatar Apr 08 '17 16:04 thekinglaolu

Hi @thekinglaolu I didn't solve this problem, because I switched for another messenger bot implementation, but I can help you if you want.

thibaultboursier avatar Apr 11 '17 11:04 thibaultboursier

Please, I do want your help. I'll be most grateful. Plus, I actually switched from using a chat text bubble style to request for inputs to a webview form that gets the inputs and submits to a database. However, I've really not completely figured out how to implement the webview without a third party solution. Could you help me out?

thekinglaolu avatar Apr 11 '17 11:04 thekinglaolu

Could you share your Github project with me, in order I can have a look ?

thibaultboursier avatar Apr 13 '17 07:04 thibaultboursier

It's still a work in progress and it's kinda private for now(I'm just a chip off the team block) so it's not been pushed to Github yet.

thekinglaolu avatar Apr 17 '17 22:04 thekinglaolu