https://github.com/robocorp/example-rasa-robot
Example robot that returns current time in specified city to RASA. Demonstrates two-way integration between chatbots and RPA.
https://github.com/robocorp/example-rasa-robot
Last synced: over 1 year ago
JSON representation
Example robot that returns current time in specified city to RASA. Demonstrates two-way integration between chatbots and RPA.
- Host: GitHub
- URL: https://github.com/robocorp/example-rasa-robot
- Owner: robocorp
- License: apache-2.0
- Created: 2022-06-30T13:37:00.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T09:15:10.000Z (over 3 years ago)
- Last Synced: 2025-01-09T09:27:00.102Z (over 1 year ago)
- Language: RobotFramework
- Homepage:
- Size: 24.4 KB
- Stars: 8
- Watchers: 17
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RASA chatbot triggering a robot excecution
Chatbots and RPA robots are a great match creating great business outcomes together. RPA robots extend the capabilities of conversational user interface to be able to perform tasks with legacy systems that lack simple API connectivity. This robot is made as a part of the solution architecture to demonstrate end-to-end capabilities of platforms when integrated together.
## What you'll learn with this robot
- Using Control Room API to trigger robots with a work item from chatbot conversations
- Using Basic Selenium browser automation with Google.com
- Using Work Data Management to create work items between robot steps
- Using `RPA.HTTP` to call a webhook to return data to Rasa conversation
## Overview
Example consists of two robots: one that gets the current time from Google using browser automation, and one that sends the result back to Rasa chatbot conversation.
## Configuration
> This example uses the `rasa.robot` file to return results the the chat conversation. An additional `email.robot` is included should you want to skip sending the results to Rasa, but want them send to email instead.
In order to set the demo up, please create a robot with two steps in the [Control Room](https://cloud.robocorp.com/).

Also notice that in order for the robot to be able to return results back to Rasa conversations, the robot needs to run locally in the same environment as the chatbot server using [Robocorp Workforce Agent](https://robocorp.com/docs/control-room/configuring-workforce/overview), or otherwise have access to the RASA endpoint.
The exact steps required to configure the process:
1. Have or create a Robocorp [Control Room](https://cloud.robocorp.com/) account.
2. Install [Workforce Agent](https://robocorp.com/docs/control-room/configuring-workforce/overview)
3. Connect Workforce Agent with Control Room to create an execution environment.
4. Create a robot from public git repository (this repo). _Note: if you are running the Rasa service somewhere else than `localhost:5005` you'll need to clone/fork the repository and make required changes._
5. Create a new Process under Workforce tab
6. Add Search Time as the first task, and choose the execution environment to be your newly linked local environment.
7. Add Send to RASA as the second task, and choose the execution environment to be your newly linked local environment.
8. Follow [instructions](https://github.com/robocorp/example-rasa-chatbot/blob/master/README.md) on Rasa example repo how to get the Rasa server running.
:heart: Have fun chatting!