workato-connector-sdk-actions
This skill should be used when the user asks about "build action", "create action", "execute block", "input_fields", "output_fields", "streaming action", "multistep action", "config_fields", "wait for resume", or needs to implement actions for a Workato custom connector.
What this skill does
# Workato SDK Actions
Guide for building actions in Workato custom connectors. Actions are operations that send data to or retrieve data from an API.
## Overview
Actions in Workato connectors:
- Receive input from recipe datapills
- Execute API requests
- Return output as datapills for subsequent steps
## Action Structure
```ruby
actions: {
create_record: {
title: 'Create record',
subtitle: 'Create a new record in the system',
description: lambda do |input, pick_list_label|
"Create a new <span class='provider'>#{pick_list_label['object_type'] || 'record'}</span>"
end,
help: 'Creates a new record with the specified fields.',
input_fields: lambda do |object_definitions|
object_definitions['record_input']
end,
execute: lambda do |connection, input|
post('/api/records')
.payload(input)
.after_error_response(/.*/) do |_, body, _, message|
error("#{message}: #{body}")
end
end,
output_fields: lambda do |object_definitions|
object_definitions['record_output']
end,
sample_output: lambda do |connection, input|
get('/api/records/sample')
end
}
}
```
## Key Components
### input_fields
Define what data the action accepts:
```ruby
input_fields: lambda do |object_definitions|
[
{ name: 'name', label: 'Record Name', optional: false },
{ name: 'email', label: 'Email Address', control_type: 'email' },
{ name: 'amount', type: 'number', control_type: 'number' },
{ name: 'active', type: 'boolean', control_type: 'checkbox' }
]
end
```
### execute
The main logic that runs when the action executes:
```ruby
execute: lambda do |connection, input|
response = post('/api/records')
.payload(
name: input['name'],
email: input['email'],
metadata: { source: 'workato' }
)
{ id: response['id'], created_at: response['created_at'] }
end
```
### output_fields
Define the datapills available after execution:
```ruby
output_fields: lambda do |object_definitions|
[
{ name: 'id', label: 'Record ID' },
{ name: 'created_at', label: 'Created At', type: 'date_time' }
]
end
```
## config_fields
Dynamic fields that change the action's behavior:
```ruby
config_fields: [
{
name: 'object_type',
label: 'Object Type',
control_type: 'select',
pick_list: 'object_types',
optional: false,
extends_schema: true # Refresh schema when changed
}
],
input_fields: lambda do |object_definitions, connection, config_fields|
case config_fields['object_type']
when 'contact'
[{ name: 'email', optional: false }, { name: 'phone' }]
when 'company'
[{ name: 'company_name', optional: false }, { name: 'industry' }]
end
end
```
## Common Action Patterns
### Get Record by ID
```ruby
get_record: {
title: 'Get record',
input_fields: lambda do
[{ name: 'id', label: 'Record ID', optional: false }]
end,
execute: lambda do |connection, input|
get("/api/records/#{input['id']}")
end,
output_fields: lambda do |object_definitions|
object_definitions['record']
end
}
```
### Search Records
```ruby
search_records: {
title: 'Search records',
input_fields: lambda do
[
{ name: 'query', label: 'Search Query' },
{ name: 'limit', type: 'integer', default: 100 }
]
end,
execute: lambda do |connection, input|
{ records: get('/api/records').params(q: input['query'], limit: input['limit'])['items'] }
end,
output_fields: lambda do
[{ name: 'records', type: 'array', of: 'object', properties: [...] }]
end
}
```
### Create Record
```ruby
create_record: {
title: 'Create record',
input_fields: lambda do |object_definitions|
object_definitions['record_input']
end,
execute: lambda do |connection, input|
post('/api/records').payload(input)
end,
output_fields: lambda do |object_definitions|
object_definitions['record']
end
}
```
### Update Record
```ruby
update_record: {
title: 'Update record',
input_fields: lambda do |object_definitions|
[{ name: 'id', optional: false }] + object_definitions['record_input']
end,
execute: lambda do |connection, input|
id = input.delete('id')
patch("/api/records/#{id}").payload(input)
end,
output_fields: lambda do |object_definitions|
object_definitions['record']
end
}
```
## Multistep Actions
Actions that require multiple API calls:
```ruby
execute: lambda do |connection, input, eis, eos, continue|
if continue.blank?
# First step: initiate
job = post('/api/jobs').payload(input)
{ job_id: job['id'] }
elsif continue['status'] == 'pending'
# Poll for completion
job = get("/api/jobs/#{continue['job_id']}")
if job['status'] == 'complete'
{ result: job['result'] }
else
{ reinvoke_after: 30, continue: { job_id: continue['job_id'], status: 'pending' } }
end
end
end
```
## Streaming Actions
### Download Streaming
For downloading large files:
```ruby
execute: lambda do |connection, input|
workato.stream.out('download_stream', { file_id: input['file_id'] })
end,
streams: {
download_stream: {
input_fields: lambda { [{ name: 'file_id' }] },
read: lambda do |connection, input, byte_offset|
get("/api/files/#{input['file_id']}/content")
.headers('Range' => "bytes=#{byte_offset}-")
.response_format_raw
end
}
}
```
### Upload Streaming
For uploading large files:
```ruby
execute: lambda do |connection, input|
workato.stream.in(input['file_content']) do |chunk, byte_offset, eof|
if byte_offset == 0
# Initialize upload
session = post('/api/uploads/init').payload(filename: input['filename'])
{ upload_id: session['id'], byte_offset: 0 }
else
# Upload chunk
put("/api/uploads/#{chunk['upload_id']}/chunks")
.payload(chunk)
.headers('Content-Range' => "bytes #{byte_offset}-#{byte_offset + chunk.size - 1}/*")
end
end
end
```
## Wait for Resume Actions
Actions that pause and wait for external callback:
```ruby
execute: lambda do |connection, input, eis, eos, continue, resume_data|
if continue.blank?
# Start process and return resume URL
{ wait_for_resume: { resume_url: workato.resume_url } }
elsif resume_data.present?
# Resume after callback received
{ result: resume_data }
end
end
```
## Error Handling
```ruby
execute: lambda do |connection, input|
post('/api/records')
.payload(input)
.after_error_response(/4\d{2}/) do |code, body, headers, message|
error("API Error (#{code}): #{body['error']}")
end
end
```
## Reference Files
For detailed documentation:
### Building Actions
- **`references/guides__building-actions.md`** - Actions overview
- **`references/guides__building-actions__create-objects.md`** - Create patterns
- **`references/guides__building-actions__get-objects.md`** - Get/search patterns
- **`references/guides__building-actions__update-objects.md`** - Update patterns
- **`references/guides__building-actions__custom-action.md`** - Custom action support
- **`references/guides__building-actions__multistep-actions.md`** - Multistep actions
- **`references/guides__building-actions__multi-threaded-actions.md`** - Multi-threaded
- **`references/guides__building-actions__wait-for-resume-actions.md`** - Wait for resume
### Streaming
- **`references/guides__building-actions__streaming.md`** - Streaming overview
- **`references/guides__building-actions__streaming__download-stream.md`** - Download streaming
- **`references/guides__building-actions__streaming__upload-stream-chunk-id.md`** - Upload with chunk ID
- **`references/guides__building-actions__streaming__upload-stream-content-range.md`** - Upload with content range
### Input Fields
- **`references/guides__config_fields.md`** - Config fields and dynamic schemas
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.