https://github.com/robocorp/template-action
Template for implementing actions for Robocorp Action Server and AI Agents
https://github.com/robocorp/template-action
Last synced: 6 months ago
JSON representation
Template for implementing actions for Robocorp Action Server and AI Agents
- Host: GitHub
- URL: https://github.com/robocorp/template-action
- Owner: robocorp
- License: apache-2.0
- Created: 2024-01-04T12:01:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-17T17:04:31.000Z (about 2 years ago)
- Last Synced: 2025-01-29T08:11:13.575Z (over 1 year ago)
- Language: Python
- Size: 188 KB
- Stars: 2
- Watchers: 14
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Template: Python - Actions
This template gets you started in creating Actions for [Sema4.ai Action Server](https://github.com/sema4ai/actions/tree/master/action_server/docs#readme).
`Actions` and `Action Server` enable you to "give your AI Agents hands" meaning that your AI/LLM Agent can help your users perform distinct actions that get executed based on the LLM discussion.
## Quickstart
👉 Follow the Action Server [Quickstart guide](https://github.com/sema4ai/actions?tab=readme-ov-file#%EF%B8%8F-quickstart) in the main repository.
## Dependency management
Dependencies need to be added to [`package.yaml`](package.yaml).
👉 [package.yaml documentation](https://github.com/sema4ai/actions/blob/master/action_server/docs/guides/01-package-yaml.md) in the main repository.
## Actions in VS Code
👉 Using [Robocorp Code extension for VS Code](https://marketplace.visualstudio.com/items?itemName=robocorp.robocorp-code), you can get everything set up and running in VS Code in no time.
The template has a few files that enable the extension to find and set up your action environment and provide code completion. There is also a side panel where we have and will add some easy-to-use functionalities.

When debugging your Actions Python code, you probably do not want to give the inputs every time you run and always be running the Action Server. `Robocorp Code` integration allows you to run and debug actions from within VSCode, enabling custom input to be specified as `.json` files.
## What does the template Action do?
The template is a simple starting point to show how to get started.
The action enables you to get the timezone differences between locations.
We use [pytz](https://pypi.org/project/pytz/) as an example to show that you can leverage the whole Python ecosystem. Sema4.ai provides a [bunch of libraries](https://pypi.org/search/?q=robocorp-); you can make your own. The sky is the limit.
🚀 Now, go get'em