Supported agents
The function builder works with 18+ AI frameworks as a Vercel skill, including:- Claude Code
- Cursor
- GitHub Copilot
- Gemini CLI
- Codex
- OpenCode
- Windsurf
Install the skill
Add the Nango function builder skill to your development environment:nango-function-builder skill, which includes guidance for building both syncs and actions.
If your coding agent is already running, restart it after installing the skill so it picks up the new instructions.
Write a prompt
Tell your agent what you want to build. The more detail you provide, the better the initial output will be. Minimal prompt (action):What the agent does
Once you provide your prompt, the agent typically:Generates the function code
Creates a complete action or sync implementation in your
nango-integrations folder, including the function file and an updated index.ts import.Creates a full test suite
Writes mock-based tests for your CI/CD pipeline, following patterns from hundreds of production Nango integrations.
Validates with a dry run
Runs
nango dryrun against your connection to verify the function works against the real API.What gets generated
The agent produces two types of files: The function file — for example,slack/actions/get-channel.ts:
index.ts:
Reviewing and customizing
The generated code is yours to edit. Common customizations include:- Adjusting the output schema — add or remove fields from the Zod schema to match what your app needs
- Adding error handling — throw
nango.ActionErrorfor domain-specific failures - Adding pagination — use
nango.paginate()for endpoints that return paginated results - Adding checkpoints — for syncs fetching large datasets, add a
checkpointschema to save progress between runs
Deploying generated functions
Once you are satisfied with the generated code, deploy it to Nango:Most teams automate deployment to production in their CI/CD pipeline by running
nango deploy as part of their release process.Also useful
- Nango documentation MCP — feed Nango’s docs directly into your agent context
- Integration templates — 800+ pre-built function examples to reference or start from