Building Your First AI Agents
Learn foundational concepts like workflows, variables, prompt structuring, markdown formatting, and AI model selection as you build and publish agents from scratch.
Last updated
Learn foundational concepts like workflows, variables, prompt structuring, markdown formatting, and AI model selection as you build and publish agents from scratch.
Last updated
This guide walks you through creating two AI agents in MindStudio: a blog post generator and a Chrome extension-based summarizer. Along the way, you'll learn about workflows, variables, prompt design, and agent publishing.
To start building:
Navigate to the Build tab in MindStudio.
Click Create New Agent.
You'll land inside the AI Editor on the automations canvas, where the workflow begins with a Start and End block.
Workflows consist of functional blocks connected in sequence. Key block types include:
User Input: Creates form fields and stores input as variables.
Generate Text: Sends prompts to an AI model and returns text.
Display Content: Displays output within the workflow (for testing or UI).
Variables are created in form blocks and referenced using {{ double curly braces }}
.
Best practice for prompt formatting:
Separate variables from instructions using custom tags.
Example:
This improves clarity and avoids formatting or grammatical issues when users input long or complex text.
Use markdown formatting to improve the structure of the AI's output.
Add instructions:
Make sure to use markdown formatting in your response.
Provide a template using example tags:
This gives the AI a clear outline to follow and leads to more consistent, polished outputs.
To publish your agent:
Click the root folder to open agent settings.
Provide a name, and optionally add a description, icon, or landing page.
Click Publish.
You can preview and re-publish at any time. Agents are private until explicitly shared.
Under Model Settings, you can:
Choose from over 90 AI models by Anthropic, OpenAI, Google, Meta, and more.
Adjust the temperature to control randomness:
Higher values = more variation
Lower values = more deterministic
Set a response size limit, which defines the max output length.
Start with defaults and refine based on behavior and output quality.
To build a Chrome extension-based summarizer:
Create a new agent.
In the Start block, change the Run Mode to Browser Extension
.
Use the launch variable page_content
.
Add a Generate Text block with a prompt like:
Name and publish your agent (e.g., Summarize Anything).
Once published, this agent can summarize:
Website content
YouTube transcripts
PDFs and documents
It becomes available inside the MindStudio Chrome extension automatically.
You’ve now built:
A blog post generator using structured markdown prompting.
A content summarizer for the browser using launch variables.
Along the way, you learned:
How to use variables and form inputs
How to structure prompts for better output
How to configure and select AI models
How to publish and test your agents
These techniques will serve as your foundation for building more complex AI agents. Continue experimenting, iterating, and publishing as you expand your skills in future lessons.