Creating Custom Workflows
Learn how to design and implement custom workflows in Assembly for your team’s specific needs
Overview
Custom workflows in Assembly allow you to create structured templates for AI-assisted tasks. When users start a new session with your workflow, Assembly’s AI assistant guides them through your defined process, maintaining context and providing consistent guidance throughout the interaction.
Workflow Structure
Every custom workflow consists of these essential components:
Core Components
- Workflow Name
- Description
- Suggested Inputs
- Process Guidelines
- Output Requirements
Optional Elements
- Start Messages
- Context Files
- Templates
- Example Outputs
Creating a Workflow
Step 1: Planning Your Workflow
Before creating a workflow, gather these key details:
-
Purpose and Scope
- Clear objective of the workflow
- Target users and use cases
- Expected outcomes
-
Required Resources
- Necessary documentation
- Code repositories
- Reference materials
- Example outputs
-
Process Steps
- Key stages and checkpoints
- Decision points
- Validation criteria
Step 2: Documenting the Workflow
Navigate to the Assembly Workflows tab (https://app.factory.ai/workflows/create) and include:
-
Workflow Name and Description
- Choose a clear, descriptive name
- Write a concise (~10 words) description
- Highlight key benefits or use cases
-
Suggested Inputs
-
Process Guidelines
-
Output Requirements
Step 3: Adding Context
Repository Context
Use the codebase explorer to link relevant repositories:
- Main codebase
- Documentation repos
- Example implementations
Documentation Context
Upload supporting documents:
- README files
- Contributing guides
- Configuration files
- Style guides
Template Context
Include any templates:
- Code templates
- Document templates
- Checklists
Step 4: Creating the Start Message
Craft a welcoming start message:
Best Practices
1. Clarity and Structure
- Use clear, consistent terminology
- Break complex processes into manageable steps
- Include examples where helpful
- Define clear success criteria
2. Flexibility and Adaptability
- Allow for variations in process
- Include optional steps or alternatives
- Provide decision-making guidance
- Enable customization within guidelines
3. Context Management
- Start with essential context
- Include relevant documentation
- Link to external resources
- Maintain context boundaries
4. User Experience
- Write clear instructions
- Use engaging language
- Include progress indicators
- Provide helpful examples
Testing Your Workflow
Before publishing:
-
Dry Run
- Test the workflow yourself
- Follow each step
- Verify outputs
- Check context loading
-
Peer Review
- Share with team members
- Gather feedback
- Test edge cases
- Verify clarity
-
Refinement
- Incorporate feedback
- Clarify instructions
- Add missing context
- Optimize steps
Next Steps
After creating your workflow:
- Share with your team
- Gather usage feedback
- Iterate and improve
- Document learnings
Explore Workflow Types
Discover different types of workflows you can create