Thank you for your interest in improving AgentKit! This guide walks you through building a kit in Lamatic, exporting it, and contributing it to the repository.
- Quick Start (TL;DR)
- Prerequisites
- Step 1: Fork the Repository
- Step 2: Build Your Kit in Lamatic
- Step 3: Export Your Kit
- Step 4: Create Your Kit Folder
- Step 5: Run and Test Locally
- Step 6: Deploy to Vercel
- Step 7: Open a Pull Request
- Examples & References
- Troubleshooting
- Community & Support
- Fork the AgentKit repository
- Build & Deploy your flow in Lamatic Studio
- Export your flow files and API keys
- Create your kit folder using the sample template
- Test locally, then submit a PR
| Tool | Version | Installation |
|---|---|---|
| Node.js | 18+ | nodejs.org |
| npm | 9+ | Comes with Node.js |
| Git | Latest | git-scm.com |
| GitHub Account | - | github.com |
| Lamatic Account | - | lamatic.ai |
| Vercel Account | - | vercel.com (optional, for deployment) |
This is the standard first step for any open source contribution.
- Go to github.com/Lamatic/AgentKit
- Click the Fork button in the top-right corner
git clone https://github.com/YOUR-USERNAME/AgentKit.git
cd AgentKitgit remote add upstream https://github.com/Lamatic/AgentKit.git- Go to studio.lamatic.ai
- Sign in or create a free account
- From the dashboard, click "Create Project +"
- Enter a project name (e.g., "My Content Generator") and particulars

- Click "Create"
Choose your starting point:
- Templates: Select a pre-built template to customize
- Flow: Build a flow on the blank canvas
- Add nodes for your workflow (triggers, LLM, conditions, etc.)
- Configure providers and API integrations
- Set up input/output schemas
- Click the "Deploy" button in the top-right corner
- Select flows to deploy and wait for deployment to complete
- You'll see a green "Deployed" status when ready
Navigate: Settings → API Keys (in the left sidebar)

You'll need these values:
| Key | Where to Find It | Screenshot |
|---|---|---|
LAMATIC_API_KEY |
Settings → API Keys → Copy | ![]() |
LAMATIC_PROJECT_ID |
Settings → Project → Project ID | ![]() |
LAMATIC_API_URL |
Settings → API Docs Button → API → Endpoint | ![]() |
- Open your deployed flow
- Look at the URL or the flow details panel (three-dot menu)
- Copy the Flow ID (e.g.,
agentic-generate-content)
Navigate: Flow → Details Panel → Flow ID

- Open your flow in the editor
- Click the three-dot menu (⋮) → "Export"
- Download the exported
.jsonfiles
You should receive files like:
config.json- Flow configurationinputs.json- Input schemameta.json- Flow metadataREADME.md- Auto-generated documentation
| Type | When to Use | Folder Location |
|---|---|---|
| Kit | Full project with UI, backend, configs | kits/<category>/<kit-name>/ |
| Bundle | Multiple flows working together | bundles/<bundle-name>/ |
| Template | Single flow, minimal setup | templates/<template-name>/ |
For Kits (most common):
# Create your kit folder
mkdir -p kits/<category>/<kit-name>
# Copy the sample template
cp -R kits/sample/content-generation/* kits/<category>/<kit-name>/Categories: agentic, assistant, automation, embed, or create a new relevant category.
Your kit folder should look like this:
kits/<category>/<kit-name>/
├── .env.example # Environment variables template (NO SECRETS!)
├── .gitignore # Git ignore rules
├── README.md # Setup & usage instructions
├── config.json # Kit metadata for the platform
├── package.json # Dependencies & scripts
├── actions/
│ └── orchestrate.ts # Server action calling Lamatic flows
├── app/
│ └── page.tsx # Main UI page
├── components/
│ └── ... # React components
├── flows/
│ └── <flow-name>/ # Exported flow from Lamatic
│ ├── config.json # Flow configuration
│ ├── inputs.json # Input schema
│ ├── meta.json # Flow metadata
│ └── README.md # Flow documentation
└── lib/
└── lamatic-client.ts # Lamatic SDK client
AGENTIC_GENERATE_CONTENT = "YOUR_FLOW_ID"
LAMATIC_API_URL = "YOUR_API_ENDPOINT"
LAMATIC_PROJECT_ID = "YOUR_PROJECT_ID"
LAMATIC_API_KEY = "YOUR_API_KEY"📎 See example: kits/sample/content-generation/.env.example
{
"name": "Your Kit Name",
"description": "Brief description of what your kit does.",
"tags": ["🤖 Agentic", "✨ Generative"],
"author": {
"name": "Your Name",
"email": "your@email.com"
},
"steps": [
{
"id": "your-flow-id",
"type": "mandatory",
"envKey": "AGENTIC_GENERATE_CONTENT"
}
],
"integrations": [],
"features": [],
"demoUrl": "https://your-demo.vercel.app/",
"githubUrl": "https://github.com/Lamatic/AgentKit/tree/main/kits/<category>/<kit-name>",
"deployUrl": "",
"documentationUrl": ""
}📎 See example: kits/sample/content-generation/config.json
Your README should include:
- What the kit does and the problem it solves
- Prerequisites and required providers
- Environment variables needed
- Setup and run instructions
- Usage examples
- Screenshots/GIFs (optional but recommended)
📎 See example: kits/sample/content-generation/README.md
-
Create the flows directory:
mkdir -p kits/<category>/<kit-name>/flows/<flow-name>
-
Copy your exported flow files into this folder:
cp -R ~/Downloads/exported-flow/* kits/<category>/<kit-name>/flows/<flow-name>/
ℹ️ This step applies to Kits only. Bundles and Templates only contain flows—skip to Step 7.
cd kits/<category>/<kit-name>
npm install# Copy the example file
cp .env.example .env
# Edit with your actual values
nano .env # or use any text editorFill in your actual values from Step 3:
AGENTIC_GENERATE_CONTENT = "your-actual-flow-id"
LAMATIC_API_URL = "https://api.lamatic.ai/v1/..."
LAMATIC_PROJECT_ID = "proj_xxxxxxxxxxxx"
LAMATIC_API_KEY = "lam_xxxxxxxxxxxx"npm run dev- Open http://localhost:3000 in your browser
- Test all functionality end-to-end
- Verify your flow is being called correctly
ℹ️ This step applies to Kits only.
git checkout -b feat/<kit-name>
git add .
git commit -m "feat: Add <kit-name> AgentKit"
git push origin feat/<kit-name>- Go to vercel.com and sign in
- Click "Add New..." → "Project"
- Select your forked repository
Important: Set the root directory to your kit folder.
Navigate: Configure Project → Root Directory
Enter: kits/<category>/<kit-name>
Navigate: Configure Project → Environment Variables
Add each variable from your .env.example:
| Name | Value |
|---|---|
AGENTIC_GENERATE_CONTENT |
Your flow ID |
LAMATIC_API_URL |
Your API endpoint |
LAMATIC_PROJECT_ID |
Your project ID |
LAMATIC_API_KEY |
Your API key |
- Click "Deploy"
- Wait for the build to complete
- Test your live preview URL
- Go to github.com/Lamatic/AgentKit
- Click "New Pull Request"
- Select your fork and branch
- Add a clear title:
feat: Add <kit-name> AgentKit
## What This Kit Does
Brief description of the kit's purpose and the problem it solves.
## Providers & Prerequisites
- List any external providers (e.g., OpenAI, Anthropic)
- Note any special setup required
## How to Run Locally
1. `cd kits/<category>/<kit-name>`
2. `npm install`
3. `cp .env.example .env` and fill in values
4. `npm run dev`
## Live Preview
https://your-kit.vercel.app
## Lamatic Flow
Flow ID: `your-flow-id`- [ ] Kit runs locally with `npm run dev`
- [ ] `.env.example` has no secrets, only placeholders
- [ ] `README.md` documents setup and usage
- [ ] Folder structure follows `kits/<category>/<kit-name>/`
- [ ] `config.json` is present and valid
- [ ] All flows exported in `flows/` folder
- [ ] Vercel deployment works
- [ ] Live preview URL works end-to-end- [ ] Folder structure follows `bundles/<bundle-name>/`
- [ ] `README.md` documents what the bundle does
- [ ] `config.json` is present with correct flow references
- [ ] All flows exported in `flows/` folder
- [ ] No secrets committed- [ ] Folder structure follows `templates/<template-name>/`
- [ ] All flow files from Lamatic export are present
- [ ] No secrets committedThe best way to understand the expected structure is to explore the sample kit:
| File | Description |
|---|---|
| Sample Kit Folder | Complete working example |
| config.json | Kit metadata format |
| .env.example | Environment variables template |
| README.md | Documentation template |
| orchestrate.ts | Flow orchestration example |
| flows/ | Exported flow structure |
| Problem | Solution |
|---|---|
npm run dev fails |
Check Node.js version: node --version (needs 18+) |
| Flow not responding | Verify .env values match your deployed flow |
| "API key invalid" error | Check LAMATIC_API_KEY is correct |
| Missing flows folder | Re-export flows from Lamatic Studio |
| Vercel build fails | Ensure root directory is set correctly |
- Check existing issues
- Ask in GitHub Discussions
- Review Lamatic Docs
- Write clear, maintainable code
- Use TypeScript where possible
- Follow patterns from the sample kit
- Keep dependencies minimal
- Add comments for complex logic
- Check if a similar kit already exists
- Search open issues to avoid duplicates
- Review this guide completely
Include:
- Steps to reproduce
- Expected vs. actual behavior
- Environment (Node.js version, OS)
- Relevant logs or screenshots
- GitHub Discussions: github.com/Lamatic/AgentKit/discussions
- Issues: github.com/Lamatic/AgentKit/issues
- Lamatic Docs: lamatic.ai/docs
We appreciate your contributions to Lamatic AgentKit! 🚀











