Overview
Prerequisites
- JSON file with your documents
- Understanding of your data structure
Configuration
Required Fields
Optional Fields
Setup Steps
- Navigate to Knowledge → Sources
- Click Create Source
- Select JSON as the source type
- Configure field mappings:
- Set the title field
- Set content field(s)
- Set ID field (optional)
- Click Save
- Upload your JSON file via the sync interface
JSON Format
Basic Format
Array of objects with consistent structure:Multiple Content Fields
Combine multiple fields into document content:Custom Field Names
Map any field structure:Uploading Files
Via Admin Interface
- Go to the JSON source in Admin > Knowledge > Sources
- Click Import > Upload File
- Select your JSON file
- Monitor import progress
Via API
Automation tools (n8n, Zapier, your own scripts) send the records directly to the Public API v1 instead of uploading a file. Give each document apage_id — your own
identifier for that record. Sending the same page_id again updates the document
rather than creating a duplicate, so you can re-run the same sync as often as you like.
not_found comes back as page_id values, so you can match it against your own records.
Both endpoints accept up to 100 items per request, and need an API key with the
knowledge:write scope. When you send records this way, you choose the title and
content yourself, so the field mapping configured on the source does not apply.Content Field Combination
When multiple content fields are specified, they are combined in order: Configuration:Best Practices
Data Preparation
- Ensure all objects have the same structure
- Use consistent field names
- Clean HTML or convert to Markdown before import
- Validate JSON syntax before upload
Field Mapping
- Choose descriptive titles (not IDs or codes)
- Include all relevant content fields
- Use a unique ID field for updates
Large Files
- For large datasets, consider splitting into smaller files
- Upload sequentially to avoid timeouts
- Monitor sync history for errors
Migration Use Cases
From Other Knowledge Bases
- Export data from source system as JSON
- Map fields to AGO’s expected structure
- Upload and verify import
From Spreadsheets
- Export spreadsheet to CSV
- Convert CSV to JSON (many tools available)
- Upload JSON to AGO
From Databases
- Export database query results as JSON
- Transform field names if needed
- Upload to AGO
Troubleshooting
Invalid JSON
Invalid JSON
- Validate JSON syntax (use online validators)
- Check for trailing commas
- Ensure proper quoting of strings
Missing Content
Missing Content
- Verify
content_fieldsincludes all needed fields - Check field names match exactly (case-sensitive)
- Review for null or empty values
Duplicate Documents
Duplicate Documents
- Use unique values in
id_field - Re-importing updates existing documents by ID
- Clear source before re-importing for fresh start
Encoding Issues
Encoding Issues
- Use UTF-8 encoding
- Handle special characters properly
- Convert from other encodings if needed
Related Documentation
- Public API v1 Reference - Complete API documentation
- Knowledge Connectors - All available connectors
- Knowledge Source Management - Source configuration
- Knowledge AI Ingestion - AI-powered import
