rt-triggers
БесплатноБез исполняемых скриптовНе проверенCreate RT 2.0 Journeys (Real-Time Triggers) that activate in real-time when specific events occur, triggering activations to external systems via API
от treasure-data★ 23 звезды на GitHubОб этом скилле
RT 2.0 Triggers (RT Journeys)
Create event-triggered journeys that activate in real-time when specific events occur, sending data to external systems.
Note: This skill is for RT Journeys (event-triggered, API-only). For stage-based Batch Journeys (YAML workflow with tdx journey), use the journey skill.
Journey Types
| Type | Entry | Workflow | Use Case |
|---|---|---|---|
| RT Journeys (this skill) | Event occurs | API-only | Real-time activations when events happen |
| Batch Journeys (journey skill) | Segment membership | YAML + tdx journey |
Multi-stage customer journey orchestration |
Prerequisites
- RT configuration complete (run
rt-configskill first) - RT status is "ok" (not "updating")
- Key events configured
- Webhook/activation endpoint ready (optional)
Quick Start
# Check RT status
tdx ps view <parent_segment_id> --json | jq '.realtime_config.status'
# List key events
tdx api "/audiences/<parent_segment_id>/realtime_key_events" --type cdp
# Create RT journey via API
tdx api "/entities/realtime_journeys" --type cdp --method POST --data '{
"name": "welcome_email",
"parent_segment_id": 394649,
"event_name": "registration",
"activations": [
{
"type": "webhook",
"endpoint": "https://your-app.com/webhooks/welcome",
"payload_template": {
"user_id": "{{user_id}}",
"event": "registration"
}
}
]
}'
RT Journey Structure
{
"name": "abandoned_cart_recovery",
"parent_segment_id": 394649,
"event_name": "cart_abandon",
"description": "Send webhook when cart is abandoned",
"activations": [
{
"type": "webhook",
"name": "cart_recovery_webhook",
"endpoint": "https://marketing-platform.com/webhooks/cart",
"method": "POST",
"headers": {
"Authorization": "Bearer {{api_key}}",
"Content-Type": "application/json"
},
"payload_template": {
"user_id": "{{user_id}}",
"cart_value": "{{cart_value}}",
"cart_items": "{{cart_items}}",
"event_time": "{{event_time}}"
}
}
],
"filters": {
"cart_value": {
"operator": "greater_than",
"value": 50
}
}
}
Event Triggers
RT journeys trigger when key events occur:
# List available key events
tdx api "/audiences/<parent_segment_id>/realtime_key_events" --type cdp
# Create key event
tdx api "/audiences/<parent_segment_id>/realtime_key_events" --type cdp --method POST --data '{
"name": "high_value_purchase",
"event_name": "purchase",
"description": "Purchase over $100",
"filters": {
"purchase_amount": {
"operator": "greater_than",
"value": 100
}
}
}'
Activations
Webhook Activation
{
"type": "webhook",
"name": "send_to_marketing_platform",
"endpoint": "https://platform.com/api/events",
"method": "POST",
"headers": {
"Authorization": "Bearer {{secret:api_key}}",
"Content-Type": "application/json"
},
"payload_template": {
"user_id": "{{user_id}}",
"event": "{{event_name}}",
"timestamp": "{{event_time}}",
"attributes": {
"last_product_viewed": "{{last_product_viewed}}",
"purchase_count_30d": "{{purchase_count_30d}}"
}
},
"timeout_ms": 5000,
"retry_count": 3
}
Salesforce Activation
{
"type": "salesforce",
"name": "update_lead_score",
"object": "Lead",
"operation": "update",
"field_mapping": {
"Email": "{{email}}",
"Lead_Score__c": "{{customer_score}}",
"Last_Activity__c": "{{event_time}}"
},
"match_field": "Email"
}
Email Activation
{
"type": "email",
"name": "welcome_email",
"provider": "sendgrid",
"template_id": "d-abc123",
"to": "{{email}}",
"dynamic_data": {
"user_name": "{{first_name}}",
"signup_date": "{{event_time}}"
}
}
Payload Templates
Use variables from RT attributes and event data:
{
"payload_template": {
// User identifiers
"user_id": "{{user_id}}",
"email": "{{email}}",
"td_client_id": "{{td_client_id}}",
// Event data
"event_name": "{{event_name}}",
"event_time": "{{event_time}}",
"event_properties": "{{event_properties}}",
// RT attributes
"last_product_viewed": "{{last_product_viewed}}",
"viewed_products_30d": "{{viewed_products_30d}}",
"purchase_count_7d": "{{purchase_count_7d}}",
// Batch attributes
"customer_tier": "{{customer_tier}}",
"total_lifetime_value": "{{total_lifetime_value}}"
}
}
Event Filters
Filter which events trigger the journey:
{
"filters": {
// Numeric filters
"purchase_amount": {
"operator": "greater_than",
"value": 100
},
// String filters
"product_category": {
"operator": "equals",
"value": "electronics"
},
// List filters
"viewed_categories": {
"operator": "contains",
"value": "premium"
Установить rt-triggers в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл rt-triggers?
Create RT 2.0 Journeys (Real-Time Triggers) that activate in real-time when specific events occur, triggering activations to external systems via API
Как установить скилл rt-triggers?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл rt-triggers запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic