A kit is a full project — a Next.js web application paired with one or more Lamatic flows. Kits are the most complete contribution type, giving users a ready-to-deploy app with UI, server actions, and flow orchestration.
Reference implementation: kits/sample/content-generation/
Before following this guide, complete Steps 1–3 in the main Contributing Guide:
- Fork and clone the repository
- Build your flow(s) in Lamatic Studio
- Export your flow files and API keys
You'll also need:
- Node.js 18+ and npm 9+
- A Vercel account (optional, for deployment)
Place your kit in the appropriate category:
| Category | Description | Example |
|---|---|---|
agentic |
Autonomous reasoning/planning agents | Deep Search, Content Generation |
assistant |
Interactive helpers (chat, extensions) | Grammar Extension |
automation |
Business workflow automation | Hiring Automation |
embed |
Embeddable AI widgets | Chat Widget, Search Widget |
If none of these fit, you can propose a new category — but check existing kits first.
# Create your kit folder
mkdir -p kits/<category>/<kit-name>
# Copy the sample template
cp -R kits/sample/content-generation/* kits/<category>/<kit-name>/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
This file is committed to the repo as a template. Never include real secrets.
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": "YOUR_FLOW_ENV_VAR"
}
],
"integrations": [],
"features": [],
"demoUrl": "",
"githubUrl": "https://github.com/Lamatic/AgentKit/tree/main/kits/<category>/<kit-name>",
"deployUrl": "",
"documentationUrl": ""
}Step types:
"mandatory"— Required flow, always included"any-of"— User picks from options (usesminSelection,maxSelection, andoptionsarray)
Naming alignment: The flow folder name, step id, and envKey should all be semantically aligned:
- Folder:
agentic-generate-content/ - Step ID:
agentic-generate-content - Env key:
AGENTIC_GENERATE_CONTENT
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 (with a table explaining where to get each)
- 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>/
Each flow directory must contain:
config.json— Flow graph (nodes + edges)inputs.json— Input schemameta.json— Flow metadataREADME.md— Auto-generated flow documentation
Do not hand-edit flow
config.jsonfiles unless you understand the node/edge schema. Re-export from Studio if changes are needed.
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 the export step:
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
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| Resource | Link |
|---|---|
| Sample Kit (complete reference) | kits/sample/content-generation/ |
| Kit config.json | kits/sample/content-generation/config.json |
| .env.example | kits/sample/content-generation/.env.example |
| Kit README | kits/sample/content-generation/README.md |
| orchestrate.ts | kits/sample/content-generation/actions/orchestrate.ts |
| Flow files | kits/sample/content-generation/flows/ |
- Check the Troubleshooting section in the main contributing guide
- Ask in GitHub Discussions
- Review Lamatic Docs