Closed dtcyad1 closed 3 years ago
Hi Fredrik,
Got it to work in the ActionProvider. I was using an older version of the AP where the createClientMessage was not being passed in my constructor. You may close this issue.
Thanks
Similar issue.
on widget:
on ActionProvider:
error:
this.createChatBotMessage(message) works but this.createClientMessage(message) doesn't Is there a reason why? It says createClientMessage is not a function, using typeof it says it is undefined! PS: I'm using typescript, most of the types are "any" for tests purposes!
My mistake. A silly one. Well, just fixed it.
I was passing a 3rd constructor parameter as "setStep" in place of "createClientMessage, and the 4th parameter is undefined, so I fixed it by removing the 4th parameter and placing createClientMessage in the right place.
My ActionProvider is functional, but I cannot have a constructor . import createClientMessage from library . When I use createClientMessage show the user message, it does not parse properly.
Hi Fredrik,
Is it possible to create a User Chat Message? For example, in your example with learning options, you create a couple of buttons. Instead of firing the action directly, i want to submit that as a user message. So if the user clicked on the button called "JavaScript", then i want the user message to show as "JavaScript" in the chatbot - which can then be processed by the Message Parser in the normal way (and call the required action).
Thanks