Hello, Im new to Rasa. For my first project I am simply extending the demo bot and I have programmed it to respond to a few intents.
My main issue right now is trying to configure this bot to execute a custom action. The scenario where this happens is when the human user tells the bot they want to “book a hotel room”. This should execute a custom action that will eventually involve the bot making an API call, but right now I’ve set it to just respond with “This is a test”…see my files below.
## say goodbye
## search path1
- book hotel
- text: “Let me find that for you!”
- text: “Hey! How can I help you?”
- text: “Bye”
from future import absolute_import
from future import division
from future import unicode_literals
from rasa_core.actions.action import Action
class BookHotel (Action): def name(self): return ‘action_get_hotel_link’
def run(self, dispatcher, tracker, domain): sp_data = "this is a test" dispatcher.utter_message(sp_data) return 
But for some reason, the bot is never able to relay the dispatcher message back to the user…
and I get this error in terminal:
“2019-06-12 10:57:30 ERROR rasa.core.processor - Encountered an exception while running action 'action_get_hotel_link '. Bot will continue, but the actions events are lost. Make sure to fix the exception in your custom code.”
Perhaps I messed up on my syntax somewhere…could someone point me in the right direction??