Create Templates
How to build valid JSON templates for import.
Template Structure
Import expects a template object with a questions array.
- name (string) – template name.
- description (string) – short description.
- questions (array) – list of questions.
- version (string, optional) – version number.
Required Fields by Question Type
Most types only need the base fields. Selection and file questions require extra fields.
| Type | Required extra fields | Format |
|---|---|---|
| select | options | ["Option 1", "Option 2"] |
| multiselect | options | ["Option 1", "Option 2"] |
| file | fileConfig | {"allowedFileTypes": ["image/*"], "maxFileSizeMB": 25, "maxFiles": 3} |
| All others | None | Base fields only. |
JSON Examples
These examples show how finished JSON files must look.
Template JSON examples
Text
{
"name": "Project Name",
"description": "Short text input",
"questions": [
{
"questionText": "What is the project name?",
"questionType": "text",
"required": true
}
]
}Textarea
{
"name": "Project Brief",
"description": "Long-form answer",
"questions": [
{
"questionText": "Please describe the project scope.",
"questionType": "textarea",
"required": false
}
]
}{
"name": "Contact Email",
"description": "Validated email field",
"questions": [
{
"questionText": "Which email should we use for updates?",
"questionType": "email",
"required": true
}
]
}URL
{
"name": "Reference Link",
"description": "Website or asset link",
"questions": [
{
"questionText": "Add a link to the reference.",
"questionType": "url",
"required": false
}
]
}Phone
{
"name": "Callback",
"description": "Phone number for quick follow-up",
"questions": [
{
"questionText": "What phone number should we call?",
"questionType": "phone",
"required": false
}
]
}Number
{
"name": "Estimated Budget",
"description": "Numeric input",
"questions": [
{
"questionText": "What is the budget in USD?",
"questionType": "number",
"required": false
}
]
}Date
{
"name": "Launch Date",
"description": "Pick a date",
"questions": [
{
"questionText": "When should we launch?",
"questionType": "date",
"required": true
}
]
}Select
{
"name": "Brand Tone",
"description": "Tone of voice selection",
"questions": [
{
"questionText": "Which tone of voice fits the campaign?",
"questionType": "select",
"required": true,
"options": ["Modern", "Classic", "Bold"]
}
]
}Multiselect
{
"name": "Deliverables",
"description": "Multiple choice list",
"questions": [
{
"questionText": "Which deliverables do you need?",
"questionType": "multiselect",
"required": false,
"options": ["Social clips", "Master export", "Thumbnail set"]
}
]
}Yes/No
{
"name": "Approval",
"description": "Binary decision",
"questions": [
{
"questionText": "Do you need rush delivery?",
"questionType": "yesno",
"required": true
}
]
}File
{
"name": "Logo Upload",
"description": "Collect logo files",
"questions": [
{
"questionText": "Please upload the current logo.",
"questionType": "file",
"required": true,
"fileConfig": {
"allowedFileTypes": ["image/*", "application/pdf"],
"maxFileSizeMB": 25,
"maxFiles": 3
}
}
]
}Was this page helpful?
Your feedback helps improve this guide.