How to use AI agents to build integrations in Nango
Building custom integrations for Nango is much faster when using AI tools. This guide shows you how to leverage Cursor or Claude Code to build high-quality integrations quickly.
First, make sure your Nango project is properly initialized:
Copy
# If you don't have a nango-integrations folder yetnango init --ai cursor# Navigate to your integrations directorycd nango-integrations# Ensure your environment is configured# Check that .env contains your NANGO_SECRET_KEY_DEV# Get your dev secret from: https://app.nango.dev/dev/environment-settings
When working with your AI assistant, provide clear, specific prompts:Example prompt structure:
Copy
I need to build a Nango custom [SYNC/ACTION] for [API_NAME] called [INTEGRATION_NAME].## Context- Provider: [api-name]- Integration: [integration-name]- Type: [sync/action]- Test connection ID: [connection-id]## Additional details- **Output schema**: [describe the expected data structure]- **Field mapping**: - `api_field_name` → `nango_field_name` - other transformations (e.g., dates)- **API Documentation**: [link-to-docs]- **Data source**: [specific API endpoint(s) to call]- **Error handling requirements**Please implement this step by step and use `nango dryrun <integration-name> <connection-id> --validation [--input '{...}']` to test.