Can I call a Rest end-point as bot's response for user input?

I have requirement to fetch data as response, using a Rest Call. Is it possible in Rasa?

Ex: Room_booking (intent)

  - utter_available_rooms (here I want to make a Rest call to get room availability details)

Hi there, you should create a (custom action)[Actions] to pull the information. Then you can utter the response directly from the action server, or fill the information using slot format, e.g.

- utter_available_rooms:
  - text: "there are available rooms in {location}."

Hey thanks for the answer. Is there any limit on number of custom actions?

Nope!

1 Like