robomotion-0.1.2 has been yanked.
Robomotion Rust SDK
Official Rust SDK for building Robomotion RPA packages.
Overview
Robomotion is a Robotic Process Automation (RPA) platform that allows you to build automation workflows using visual flow designers. This SDK enables you to create custom nodes (packages) in Rust that can be used within Robomotion flows.
Installation
Add this to your Cargo.toml:
[]
= "0.1"
= { = "1", = ["full"] }
= "0.1"
= { = "1", = ["derive"] }
= "1"
Quick Start
1. Create a new node
use *;
use Context;
2. Register and start
use *;
async
3. Create config.json
Important: All node IDs must start with the namespace from config.json. If namespace is
MyPackage, node IDs must beMyPackage.NodeName.
Features
- Strongly-typed variables:
InVariable<T>,OutVariable<T>,OptVariable<T> - Async lifecycle methods:
on_create,on_message,on_close - Credential/Vault access: Secure access to stored credentials
- Large Message Objects (LMO): Automatic handling of payloads >256KB
- AI Tool support: Expose nodes as AI-callable tools
- OAuth2 support: Browser-based authorization flows
- Debug mode: Attach mode for rapid development
Variable Types
| Type | Usage | Access |
|---|---|---|
InVariable<T> |
Required input | .get(ctx).await |
OptVariable<T> |
Optional input | .get(ctx).await returns Option<T> |
OutVariable<T> |
Output | .set(ctx, value).await |
Credential |
Vault access | .get(ctx).await returns credentials |
Node Attributes
Documentation
License
MIT License - see LICENSE for details.