Configure RT journey activations - webhooks, Salesforce, email, and other integrations for real-time event-triggered actions
69%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./realtime-skills/rt-journey-activations/SKILL.mdConfigure activations for RT journeys - webhooks, Salesforce, email, and other integrations.
rt-journey-create skill first)Send HTTP POST requests to external endpoints:
{
"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",
"X-Custom-Header": "value"
},
"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}}",
"customer_tier": "{{customer_tier}}"
}
},
"timeout_ms": 5000,
"retry_count": 3
}{{secret:key}} for credentials){
"type": "webhook",
"endpoint": "https://marketing.com/api/v1/events",
"headers": {
"Authorization": "Bearer {{secret:marketing_api_key}}",
"Content-Type": "application/json"
},
"payload_template": {
"event_type": "user_action",
"user_id": "{{user_id}}",
"action": "{{event_name}}",
"timestamp": "{{event_time}}",
"properties": {
"email": "{{email}}",
"product_id": "{{product_id}}",
"amount": "{{purchase_amount}}"
}
}
}{
"type": "webhook",
"endpoint": "{{secret:slack_webhook_url}}",
"payload_template": {
"text": "High value purchase!",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Purchase Alert*\nCustomer: {{email}}\nAmount: ${{purchase_amount}}"
}
}
]
}
}{
"type": "webhook",
"endpoint": "https://api.example.com/realtime/events",
"method": "POST",
"headers": {
"X-API-Key": "{{secret:custom_api_key}}",
"X-Event-Type": "{{event_name}}"
},
"payload_template": {
"customer": {
"id": "{{user_id}}",
"email": "{{email}}",
"tier": "{{customer_tier}}"
},
"event": {
"name": "{{event_name}}",
"time": "{{event_time}}",
"data": "{{event_properties}}"
}
},
"timeout_ms": 10000
}Update Salesforce objects directly:
{
"type": "salesforce",
"name": "update_lead_score",
"object": "Lead",
"operation": "update",
"field_mapping": {
"Email": "{{email}}",
"Lead_Score__c": "{{customer_score}}",
"Last_Activity__c": "{{event_time}}",
"Products_Viewed__c": "{{viewed_products_30d}}",
"Purchase_Count__c": "{{purchase_count_30d}}"
},
"match_field": "Email"
}update, create, or upsert{
"type": "salesforce",
"object": "Contact",
"operation": "update",
"field_mapping": {
"Email": "{{email}}",
"VIP_Status__c": "true",
"Last_Purchase_Date__c": "{{event_time}}",
"Last_Purchase_Amount__c": "{{purchase_amount}}",
"Lifetime_Value__c": "{{total_lifetime_value}}"
},
"match_field": "Email"
}{
"type": "salesforce",
"object": "Lead",
"operation": "create",
"field_mapping": {
"Email": "{{email}}",
"FirstName": "{{first_name}}",
"LastName": "{{last_name}}",
"Company": "{{company}}",
"LeadSource": "Website",
"Status": "New"
}
}{
"type": "salesforce",
"object": "Customer_Activity__c",
"operation": "upsert",
"field_mapping": {
"Customer_Email__c": "{{email}}",
"Activity_Type__c": "{{event_name}}",
"Activity_Date__c": "{{event_time}}",
"Product_ID__c": "{{product_id}}",
"Amount__c": "{{purchase_amount}}"
},
"match_field": "Customer_Email__c"
}Send transactional emails:
{
"type": "email",
"name": "welcome_email",
"provider": "sendgrid",
"template_id": "d-abc123xyz",
"to": "{{email}}",
"from": "welcome@company.com",
"from_name": "Company Name",
"subject": "Welcome to Our Platform!",
"dynamic_data": {
"user_name": "{{first_name}}",
"signup_date": "{{event_time}}",
"account_type": "{{customer_tier}}"
}
}{{email}} variable){
"type": "email",
"provider": "sendgrid",
"template_id": "d-welcome-template",
"to": "{{email}}",
"from": "noreply@company.com",
"dynamic_data": {
"first_name": "{{first_name}}",
"product_name": "{{purchased_product}}",
"order_total": "{{purchase_amount}}",
"shipping_date": "{{estimated_delivery}}"
}
}{
"type": "email",
"provider": "sendgrid",
"template_id": "d-cart-recovery",
"to": "{{email}}",
"from": "shop@company.com",
"subject": "Your cart is waiting!",
"dynamic_data": {
"customer_name": "{{first_name}}",
"cart_items": "{{cart_items}}",
"cart_value": "{{cart_value}}",
"discount_code": "SAVE10",
"cart_url": "https://shop.com/cart/{{cart_id}}"
}
}RT journeys can have multiple activations:
{
"name": "high_value_purchase",
"event_name": "purchase",
"filters": {
"purchase_amount": {
"operator": "greater_than",
"value": 500
}
},
"activations": [
// 1. Update Salesforce
{
"type": "salesforce",
"object": "Contact",
"operation": "update",
"field_mapping": {
"Email": "{{email}}",
"VIP_Status__c": "true"
},
"match_field": "Email"
},
// 2. Send thank you email
{
"type": "email",
"template_id": "vip-thank-you",
"to": "{{email}}",
"dynamic_data": {
"purchase_amount": "{{purchase_amount}}"
}
},
// 3. Notify Slack
{
"type": "webhook",
"endpoint": "{{secret:slack_webhook_url}}",
"payload_template": {
"text": "VIP purchase: {{email}} - ${{purchase_amount}}"
}
}
]
}Use double curly braces for variables:
{
// 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 (from rt-config-attributes)
"last_product_viewed": "{{last_product_viewed}}",
"viewed_products_30d": "{{viewed_products_30d}}",
"purchase_count_7d": "{{purchase_count_7d}}",
"cart_value": "{{cart_value}}",
// Batch Attributes (from parent segment)
"customer_tier": "{{customer_tier}}",
"total_lifetime_value": "{{total_lifetime_value}}",
"account_status": "{{account_status}}",
// Event-specific Fields
"product_id": "{{product_id}}",
"category": "{{category}}",
"purchase_amount": "{{purchase_amount}}"
}Store credentials securely:
{
"headers": {
"Authorization": "Bearer {{secret:api_key}}",
"X-API-Token": "{{secret:webhook_token}}"
},
"endpoint": "{{secret:webhook_url}}"
}Secret format: {{secret:secret_name}}
# Test webhook endpoint manually
curl -X POST "https://your-webhook.com/endpoint" \
-H "Content-Type: application/json" \
-d '{
"user_id": "test_123",
"event": "test_event",
"data": "test_data"
}'
# Check webhook response
# Expected: 200 OK
# Test email template
# Use provider's test interface (SendGrid, Mailgun)
# Test Salesforce connection
# Verify credentials and object permissions| Error | Solution |
|---|---|
| "Webhook timeout" | Increase timeout_ms or optimize endpoint |
| "Invalid endpoint URL" | Use HTTPS and verify URL format |
| "Authentication failed" | Check secret values and credentials |
| "Salesforce field not found" | Verify field API names in Salesforce |
| "Email template not found" | Check template ID in email provider |
| "Variable not found" | Verify variable name matches RT attribute |
After configuring activations:
rt-journey-monitor skilltreasure-data/td-skills
7c1015d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.