Hi,
I have created stories where the bot should return a hardcoded URL (inside the custom action) when asked info about any company.
Below is the code from ‘actions.py’ file.
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from rasa_core_sdk import Action
from rasa_core_sdk.events import SlotSet
class AboutCompany(Action):
RANDOMIZE = False
def name(self):
return 'about_company'
def run(self, dispatcher, tracker, domain):
response = "here is the information you asked for https://companyabc.com/#aboutBox"
dispatcher.utter_message("Ok, here is the information you asked for.")
dispatcher.utter_message(response)
return [SlotSet("Here is the information you asked for", response if response is not None else [])]
**Below is the output I get:**
**User: Hi**
**Bot: Hello, How may I help you?**
**User: Who are your clients?**
**Bot: (No response)**
The output image below: