I work with your chatbot widget and wanted to initiate the conversation from the bot side. Further, I would like to start the conversation not via an action trigger but rather via sending an initial intent with an entity (the entity is ID from the URL which should be passed to the bot before the conversation starts).
When trying first the solution you provide in your code, the bot utters the const fallbackMsg instead of the welcome message. Maybe you could point me to what I’m doing wrong. Further, it would be great if you could help me figure out how to send an initial intent (with the entity) instead of triggering the action. That is what I changed in chat.js
Keeping this as it was:
This is the custom action:
class ActionWelcomeMessage(Action): def name(self) -> Text: return "action_welcome_message" def run(self, dispatcher: CollectingDispatcher, tracker: Tracker, domain: Dict[Text, Any]) -> List[Dict[Text, Any]]: dispatcher.utter_message(text="Hi what can I do for you?") return [UserUtteranceReverted()]
I hope that were not too many questions and many thanks in advance!