In this module, you'll learn how to create clear, consistent, and self-explanatory names for tasks and variables in your automation workflows. The video covers why naming matters and provides key principles and best practices to ensure your workflows are intuitive and easy to maintain.
Video (9:01 minutes)
Why it matters
Well-named variables and actions improve readability and maintainability.
Clear names reduce confusion and make workflows easier to understand.
Key naming principles
Be descriptive β Names should indicate what the variable or action stores or does.
Use proper grammar β Use plural for lists (e.g., tickets, users) and singular for single items (user).
Follow a verb-noun format β Use action-oriented names for workflows (e.g., delete_user, get_ticket).
Stay consistent β Choose a naming convention (e.g., snake_case, camelCase) and apply it uniformly.
Best practices
Use meaningful lengths β Avoid names that are too vague (like x or tempVar) or excessively long.
Avoid reserved words β Certain words have specific meanings in Jinja and should not be used alone.
Limit numbers and special characters β Only use them when required by integrations.
Use universally understood abbreviations β Stick to widely recognized terms like ID, UUID, and DB.
Be specific with attributes β Name objects broadly (ticket, device) and their attributes clearly (ticket_id, device_serial).
The impact
Self-documenting workflows β Clear names make the workflow understandable without extra documentation.
Faster troubleshooting β Easy-to-read naming simplifies debugging and modifications.
Improved collaboration β Consistent naming conventions help teams work together more effectively.
By applying these thoughtful naming conventions, you'll create automation workflows that are not only more intuitive and readable but also easier to maintain and scale over time.