You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[project]
2
2
name = "uipath"
3
-
version = "2.1.17"
3
+
version = "2.1.18"
4
4
description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools."
This guide explains how to create Python-based UiPath Coded Agents that respond to event triggers, enabling seamless event-driven agents.
4
+
5
+
## Overview
6
+
7
+
UiPath Coded Agents allow you to write automation logic directly in Python while leveraging UiPath's event trigger system. This project demonstrates how to create agents that handle external events from systems like Gmail, Slack, and other connectors.
8
+
9
+
## How to Set Up UiPath Coded Agents with Event Triggers
10
+
11
+
### Step 1: Install UiPath Python SDK
12
+
13
+
1. Open it with your prefered editor
14
+
2. In terminal run:
15
+
```bash
16
+
uv init
17
+
uv add uipath
18
+
uv run uipath new event-agent
19
+
uv run uipath init
20
+
```
21
+
22
+
### Step 2: Create Your Coded Agent
23
+
24
+
Create a Python file with your agent logic using the UiPath SDK:
25
+
26
+
```python
27
+
from dataclasses import dataclass
28
+
from uipath.models import EventArguments
29
+
from uipath import UiPath
30
+
import logging
31
+
32
+
logger = logging.getLogger(__name__)
33
+
34
+
@dataclass
35
+
classEchoOut:
36
+
message: dict
37
+
38
+
# use EventArguments when called by UiPath EventTriggers
39
+
defmain(input: EventArguments) -> EchoOut:
40
+
sdk = UiPath()
41
+
42
+
# get the event payload, this will be different from event to event
0 commit comments