Comment

Overview

The Comment action adds documentation and notes directly within workflows. It provides inline documentation, step explanations, and context that helps team members understand workflow logic and decisions.

circle-info

💬 Purpose

Use Comment to:

  • Document complex logic

  • Explain decision points

  • Add context and reasoning

  • Mark important sections

  • Create readable workflows


When to Use Comment

✅ Good Use Cases

Scenario
Reason

Complex Logic

Explain why this decision exists

Non-Obvious Steps

Context for unusual operations

Important Sections

Mark critical workflow areas

TODO Reminders

Future work or improvements

Known Issues

Document workarounds

Important Notes

Keep team informed

Decision History

Why this approach chosen

❌ Anti-Patterns (Don't Do)

  • ❌ Over-commenting obvious steps

  • ❌ Letting comments get out of sync

  • ❌ Using comments instead of clear step naming

  • ❌ Including sensitive data in comments

  • ❌ Never updating comments as workflow changes


Configuration

Basic Setup

  1. Open your workflow

  2. Click "Add Action" → Select "Comment"

  3. Configure comment:

    • Type: Note, TODO, Warning, Info

    • Title (optional): Section heading

    • Content: Comment text

    • Visibility: Internal or Shared

  4. Save

Configuration Options


Comment Types

Note

General documentation and explanation:

TODO

Reminder for future improvements:

Warning

Important cautionary information:

Info

Informational context:


Practical Examples

Example 1: Complex Decision Documentation

Example 2: TODO for Future Work

Example 3: Warning for Critical Section

Example 4: Explaining Non-Obvious Logic

Example 5: Decision History


Best Practices

✅ Do

  • Document the why, not the what - Code shows what, explain why

  • Keep comments current - Update when workflow changes

  • Use for complex sections - Obvious steps don't need comments

  • Be specific - Include examples and context

  • Link to resources - Reference docs, tickets, contacts

  • Use appropriate type - Warning vs Note vs Info

  • Include dates - When decision was made

  • Add contact info - Who to ask about this decision

  • Keep concise - Multi-paragraph limits, use bullets

❌ Don't

  • Over-comment - Comment obvious steps

  • Duplicate information - Don't repeat what step name says

  • Let comments rot - Update when logic changes

  • Include sensitive data - No passwords, tokens, personal info

  • Use for communication - Use chat for team discussions

  • Ignore team conventions - Follow established commenting standards

  • Make comments vague - "this is important" isn't helpful

  • Comment every line - Only document complex decisions

  • Use comments as code - Don't disable code with comments


Comment Templates

Template 1: Complex Decision

Template 2: TODO Item

Template 3: Warning

Template 4: Decision History


Organizing Comments

Section Comments

Mark major workflow sections:

Workflow Map

Create overview with comments:


Sharing Comments

Team Guidelines

Documentation Extraction

Comments become part of workflow documentation:


Comment Maintenance

Keeping Comments Current


Real-World Scenarios

E-Commerce Checkout Workflow

API Testing Workflow

Data Verification Workflow


Integration with Other Actions

Comment + Condition

Explain conditional logic:

Comment + Wait

Document timing decisions:



Summary

  • Comment adds documentation to workflows

  • Use to explain why decisions, not just what steps

  • Document complex logic and non-obvious sections

  • Keep comments current as workflow evolves

  • Use appropriate type - Note/TODO/Warning/Info

  • Include context - Examples, links, contacts


Next: Return to Action Types Overview to explore all available actions.

Last updated