HeliosHelios Docs

Advanced

Advanced usage of Helios

Advanced

Workflow YAML definition

Workflows can be defined in YAML for advanced customization. Some examples are below.

1. Webhook Trigger

trigger:
  type: webhook
  events: ["issues.opened"]

2. Format Message Node

// Script node to format the message
const issue = triggers['github-issue'].payload;
return {
  text: `🚨 New Issue: ${issue.title}`,
  url: issue.html_url,
  author: issue.user.login
};

3. Post to Slack Node

# Slack integration node
channel: "#dev-alerts"
message: |
  {{nodes['format-message'].output.text}}
  
  Author: {{nodes['format-message'].output.author}}
  Link: {{nodes['format-message'].output.url}}

Test Your Workflow

  1. Save the workflow
  2. Run Test to verify functionality
  3. Set up webhook in GitHub repository
  4. Create test issue to confirm workflow

4. Conditional Logic

# Condition node
if: "nodes['format-message'].output.priority === 'high'"
then: ["urgent-notification"]
else: ["standard-notification"]

5. AI Processing

# AI node for issue analysis
model: "gemini-2.5-flash"
prompt: "Analyze and categorize this issue: {{trigger.payload.body}}"
output_schema:
  category: ["bug", "feature", "documentation", "question"]
  priority: ["low", "medium", "high", "critical"]

Step 4: Manage Variable

Variables

Non-sensitive configuration values with hierarchical scoping.

Create Variable:

  1. Go to Variables in project/organization settings
  2. Click Add Variable
  3. Set key-value (e.g., ENVIRONMENT: production)
  4. Reference in workflows: {{variables.ENVIRONMENT}}

Step 5: Monitor and Debug

Workflow Runs

Each execution creates a run record with:

  • Status: Success, failure, or running
  • Duration: Execution time
  • Node Results: Output from each node
  • Logs: Detailed execution information

Common Issues

Node Failures

  • Check logs for error messages
  • Validate all required inputs
  • Test integration connections

Authentication Errors

  • Verify integration permissions
  • Check API key validity

Last updated on

On this page