Quickstart Tutorial
This tutorial will guide you through creating your first AI workflow in Raikoo. By the end, you'll have built a simple but powerful workflow that demonstrates key Raikoo concepts and capabilities.
What We'll Build
We'll create a "Content Enhancer" workflow that takes a basic text input, enhances it using AI, and returns the improved version. This workflow will:
- Accept a text input through a parameter
- Analyze the content's structure and tone
- Generate an enhanced version with improved language and formatting
- Provide the enhanced content as the output
This example demonstrates several key Raikoo features while remaining simple enough for beginners.
Prerequisites
Before starting, ensure you have:
- A Raikoo account (sign up at app.raikoo.ai if you don't have one)
- Basic familiarity with the Raikoo interface (see our Getting Started guide)
Step 1: Create a New Project
- Log in to your Raikoo account
- From the Dashboard, click the "New Project" button
- Enter the following details:
- Name: Content Enhancement Project
- Description: A project for enhancing and improving text content
- Click "Create Project" to proceed
Step 2: Create a New Workflow
- Navigate to your new project
- Click "Workflow Builder" in the main navigation
- Click the "New Workflow" button
- Enter the following details:
- Name: Content Enhancer
- Description: Analyzes and enhances text content
- Click "Create" to open the Workflow Builder canvas
Step 3: Configure Workflow Parameters
Let's set up a parameter to accept the input text:
- Click on the canvas background to select the workflow itself
- In the Properties Panel, navigate to the "Parameters" section
- Click "Add Parameter" and enter:
- Name: InputText
- Type: String
- Default Value: leave empty
- Description: The text content to enhance
Step 4: Add the Analysis Operation
First, we'll add an operation to analyze the input text:
- From the Operations Panel, find and drag the "Multi-step Assistant" operation onto the canvas
- Select the operation and configure it in the Properties Panel:
- Name: ContentAnalysis
- Persona: Select "Content Analyst" (or create a new one if not available)
- Request: Enter the following prompt:
Analyze the following text content to identify its structure, tone, style, and primary purpose. Provide a brief analysis that identifies: - The apparent purpose of the text - Its current tone and style - Any structural patterns - Areas for potential improvement TEXT TO ANALYZE: {{ThreadParameters.InputText}} - Output: Set to create a file at
/analysis.md
Step 5: Add the Enhancement Operation
Now, let's add an operation that uses the analysis to create enhanced content:
- Drag another "Multi-step Assistant" operation onto the canvas
- Position it to the right of the ContentAnalysis operation
- Configure it with:
- Name: ContentEnhancement
- Persona: Select "Content Editor" (or create a new one)
- Request: Enter the following prompt:
Using the analysis provided, enhance the original text to improve its clarity, impact, and overall quality. Maintain the original purpose and key information, but improve: - Language fluency and precision - Structural organization - Tone consistency - Overall impact and effectiveness ORIGINAL TEXT: {{ThreadParameters.InputText}} CONTENT ANALYSIS: {{Workspace.[/analysis.md]}} Provide only the enhanced text without additional comments. - Output: Set to create a file at
/enhanced-content.md
Step 6: Create a Dependency Between Operations
- Click on the ContentEnhancement operation to select it
- In the Properties Panel, find the "Dependencies" section
- Add "ContentAnalysis" as a dependency
- Alternatively, you can click and drag from the output connector of ContentAnalysis to the input connector of ContentEnhancement
Step 7: Add a Final Formatting Operation
Let's add one more operation to ensure the output is properly formatted:
- Drag another "Multi-step Assistant" operation onto the canvas
- Position it to the right of the ContentEnhancement operation
- Configure it with:
- Name: FinalFormatting
- Persona: Select "Technical Editor" (or create a new one)
- Request: Enter the following prompt:
Format the enhanced content below to ensure: - Consistent paragraph spacing - Proper heading hierarchy (if applicable) - Clean list formatting (if applicable) - Consistent punctuation style - No spelling errors ENHANCED CONTENT: {{Workspace.[/enhanced-content.md]}} Provide only the formatted text with no additional comments. - Output: Set to create a file at
/final-output.md - Add "ContentEnhancement" as a dependency for this operation
Step 8: Save Your Workflow
- Click the "Save" button in the toolbar
- Enter a comment such as "Initial workflow setup"
- Click "Save" to commit your changes
Step 9: Execute the Workflow
Now let's run the workflow to see it in action:
- Click the "Execute" button in the Workflow Builder toolbar
- In the execution panel, enter a sample text in the "InputText" parameter, such as:
this is a sample text for our workflow. it has some issues with capitalization and structure. the content could be clearer and more engaging. hopefully our AI workflow can improve it! - Click "Run" to start the workflow execution
- You can monitor the progress in real-time as each operation executes
Step 10: Review the Results
Once the workflow completes:
- Click on the "Workspace" tab in the execution view
- Open each file to see the progression:
/analysis.md- The analysis of the original text/enhanced-content.md- The AI-enhanced version/final-output.md- The final formatted output- You can download the final output or any other files as needed
Step 11: Make Improvements (Optional)
If you want to iterate on your workflow:
- Return to the Workflow Builder
- Try adjusting the prompts or adding more operations
- Experiment with different personas for each operation
- Add error handling or conditional logic
- Save your changes and run the workflow again to see the impact
What You've Learned
In this quickstart tutorial, you've:
- Created a new project and workflow
- Set up a workflow parameter to accept input
- Added multiple AI operations with different personas
- Created dependencies between operations
- Executed a workflow and reviewed the results
- Learned how the workspace stores intermediate and final outputs
Next Steps
Now that you've created your first workflow, you can:
- Explore more complex operation types
- Learn about iterator operations for processing collections of items
- Discover how to use text replacements for dynamic content
- Dive deeper into workspace management
- Experiment with custom tools to extend AI capabilities
Ready for more? Check out our complete User Guides for detailed instructions on all Raikoo features.