export_agent_json
Export complete BotUyo agent configurations as editable JSON files for backup, editing, or external integration. Automatically saves to local directory for easy modification.
Instructions
Export the full agent configuration as clean, editable JSON.
Returns the complete agentConfig including identity, stages, connections (graph edges), channelFlows, enabledTools, channels, widgetConfig, voice, and all other settings. Also includes apiKey (read-only) for external integrations.
The exported JSON is automatically saved to a local file for easy editing:
Default: saves to ./agents/{agent-name}.json in the current working directory
Custom: use savePath to specify a different directory
Use import_agent_json to re-import after editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | The MongoDB ID of the agent to export | |
| savePath | No | Optional. Directory path where the JSON file will be saved. Default: ./agents/ |