{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://circuitgarden.dev/brief/schema.json",
  "title": "Circuit Garden campaign brief",
  "description": "Draft or saved answers for the brief form at https://circuitgarden.dev/brief/. The form sends nothing. A draft only fills empty fields, and the customer reviews every answer before saving the file and emailing it to hello@circuitgarden.dev.",
  "oneOf": [
    {
      "title": "AI draft",
      "type": "object",
      "required": [
        "format",
        "version",
        "answers"
      ],
      "additionalProperties": false,
      "properties": {
        "format": {
          "const": "digital-campaign-draft"
        },
        "version": {
          "const": 1
        },
        "answers": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "productionScope": {
              "type": "string",
              "enum": [
                "",
                "ads",
                "page",
                "both",
                "web-only",
                "none",
                "undecided"
              ],
              "description": "What do you need help with?"
            },
            "campaign": {
              "type": "string",
              "description": "Project or campaign name"
            },
            "requester": {
              "type": "string",
              "description": "Who is the client or main contact?"
            },
            "objective": {
              "type": "string",
              "enum": [
                "",
                "membership",
                "sales",
                "donations",
                "leads",
                "traffic",
                "awareness",
                "other"
              ],
              "description": "What is the main goal of the campaign?"
            },
            "customObjective": {
              "type": "string",
              "description": "Describe the goal"
            },
            "success": {
              "type": "string",
              "description": "How will you know the campaign worked? For example 100 sign-ups or 50,000 people reached."
            },
            "audience": {
              "type": "string",
              "description": "Who do you want to reach?"
            },
            "exclusions": {
              "type": "string",
              "description": "Who should the campaign exclude? For example existing customers or members."
            },
            "noExclusions": {
              "type": "boolean",
              "description": "Set to true instead of answering exclusions."
            },
            "insights": {
              "type": "string",
              "description": "What do you know about the audience? Describe their situation, what drives them and what holds them back."
            },
            "offer": {
              "type": "string",
              "description": "What is the offer, and why should the audience act now?"
            },
            "proof": {
              "type": "string",
              "description": "What makes the message believable? For example customer cases, reviews, figures or arguments."
            },
            "response": {
              "type": "string",
              "description": "What should a person feel, think or do?"
            },
            "landing": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to the landing page as an http or https link, or an empty string."
            },
            "landingPlanned": {
              "type": "boolean",
              "description": "Set to true instead of answering landing."
            },
            "cta": {
              "type": "string",
              "description": "What should the button say?"
            },
            "noCta": {
              "type": "boolean",
              "description": "Set to true instead of answering cta."
            },
            "budget": {
              "type": "string",
              "description": "Budget Give the amount, the currency and whether VAT is included. For example 25,000 SEK including VAT."
            },
            "budgetPending": {
              "type": "boolean",
              "description": "Set to true instead of answering budget."
            },
            "start": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Preferred start date as YYYY-MM-DD, or an empty string."
            },
            "end": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Preferred end date as YYYY-MM-DD, or an empty string."
            },
            "deadline": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Deadline for all material as YYYY-MM-DD, or an empty string."
            },
            "material": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "enum": [
                  "image",
                  "video",
                  "copy",
                  "landing-page",
                  "none"
                ]
              },
              "description": "What material exists today? Use [\"none\"] alone when nothing exists."
            },
            "channels": {
              "type": "string",
              "description": "Which channels are you considering? For example Facebook, Instagram, TikTok, LinkedIn or other ad networks."
            },
            "channelsOpen": {
              "type": "boolean",
              "description": "Set to true instead of answering channels."
            },
            "assets": {
              "type": "string",
              "description": "Link to the material folder"
            },
            "adDeliverables": {
              "type": "string",
              "description": "What needs to be produced? For example two short videos, vertical images or headlines for search ads. Give the channel and format if known."
            },
            "adReuse": {
              "type": "string",
              "description": "What can be reused or adapted?"
            },
            "adOwner": {
              "type": "string",
              "description": "Who makes the material?"
            },
            "adApprover": {
              "type": "string",
              "description": "Who approves the material?"
            },
            "pageType": {
              "type": "string",
              "enum": [
                "",
                "new",
                "update",
                "undecided"
              ],
              "description": "What is the job?"
            },
            "pageDeadline": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "When must the page be ready? as YYYY-MM-DD, or an empty string."
            },
            "pageDeadlinePending": {
              "type": "boolean",
              "description": "Set to true instead of answering pageDeadline."
            },
            "pageCurrentUrl": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to the page to change as an http or https link, or an empty string."
            },
            "pageAction": {
              "type": "string",
              "description": "What should a visitor be able to do on the page? For example sign up, read a document or find contact details."
            },
            "pageMessage": {
              "type": "string",
              "description": "What should a visitor learn? Describe the offer, why it matters and what a visitor needs to know before the next step."
            },
            "pageContent": {
              "type": "string",
              "description": "Which parts should the page have? For example a programme, prices, customer reviews, questions and answers or contact details."
            },
            "pageAssets": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to texts, images and a design guide as an http or https link, or an empty string."
            },
            "pageLanguage": {
              "type": "string",
              "description": "Which languages does the page need?"
            },
            "pagePlatform": {
              "type": "string",
              "description": "Where will the page be published? Give the domain and web platform if you know them. Say so if you need help choosing. Do not share login details here."
            },
            "pageExamples": {
              "type": "string",
              "description": "Are there pages that show what you have in mind?"
            },
            "pagePublisher": {
              "type": "string",
              "description": "Who approves and publishes the page?"
            },
            "pageNeedsForm": {
              "type": "boolean",
              "description": "Form"
            },
            "pageNeedsMeasurement": {
              "type": "boolean",
              "description": "Measurement"
            },
            "pageFormDetails": {
              "type": "string",
              "description": "What must the form collect, and where should the answers go?"
            },
            "pageMeasurementDetails": {
              "type": "string",
              "description": "Which events should be tracked? For example completed sign-ups or clicks to an external form."
            },
            "experiments": {
              "type": "string",
              "description": "Is there anything to test? For example a hypothesis or a split test."
            },
            "constraints": {
              "type": "string",
              "description": "Is there anything to consider? For example legal limits, tone of voice or internal sign-off. Write ‘None’ if nothing in particular applies."
            }
          },
          "description": "Any subset of the answers. Leave a key out when the customer has not said. Never invent an answer."
        }
      }
    },
    {
      "title": "Saved brief file",
      "type": "object",
      "required": [
        "format",
        "version",
        "answers"
      ],
      "additionalProperties": false,
      "properties": {
        "format": {
          "const": "digital-campaign-order"
        },
        "version": {
          "const": 4
        },
        "answers": {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "productionScope": {
              "type": "string",
              "enum": [
                "",
                "ads",
                "page",
                "both",
                "web-only",
                "none",
                "undecided"
              ],
              "description": "What do you need help with?"
            },
            "campaign": {
              "type": "string",
              "description": "Project or campaign name"
            },
            "requester": {
              "type": "string",
              "description": "Who is the client or main contact?"
            },
            "objective": {
              "type": "string",
              "enum": [
                "",
                "membership",
                "sales",
                "donations",
                "leads",
                "traffic",
                "awareness",
                "other"
              ],
              "description": "What is the main goal of the campaign?"
            },
            "customObjective": {
              "type": "string",
              "description": "Describe the goal"
            },
            "success": {
              "type": "string",
              "description": "How will you know the campaign worked? For example 100 sign-ups or 50,000 people reached."
            },
            "audience": {
              "type": "string",
              "description": "Who do you want to reach?"
            },
            "exclusions": {
              "type": "string",
              "description": "Who should the campaign exclude? For example existing customers or members."
            },
            "noExclusions": {
              "type": "boolean",
              "description": "Set to true instead of answering exclusions."
            },
            "insights": {
              "type": "string",
              "description": "What do you know about the audience? Describe their situation, what drives them and what holds them back."
            },
            "offer": {
              "type": "string",
              "description": "What is the offer, and why should the audience act now?"
            },
            "proof": {
              "type": "string",
              "description": "What makes the message believable? For example customer cases, reviews, figures or arguments."
            },
            "response": {
              "type": "string",
              "description": "What should a person feel, think or do?"
            },
            "landing": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to the landing page as an http or https link, or an empty string."
            },
            "landingPlanned": {
              "type": "boolean",
              "description": "Set to true instead of answering landing."
            },
            "cta": {
              "type": "string",
              "description": "What should the button say?"
            },
            "noCta": {
              "type": "boolean",
              "description": "Set to true instead of answering cta."
            },
            "budget": {
              "type": "string",
              "description": "Budget Give the amount, the currency and whether VAT is included. For example 25,000 SEK including VAT."
            },
            "budgetPending": {
              "type": "boolean",
              "description": "Set to true instead of answering budget."
            },
            "start": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Preferred start date as YYYY-MM-DD, or an empty string."
            },
            "end": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Preferred end date as YYYY-MM-DD, or an empty string."
            },
            "deadline": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "Deadline for all material as YYYY-MM-DD, or an empty string."
            },
            "material": {
              "type": "array",
              "uniqueItems": true,
              "items": {
                "enum": [
                  "image",
                  "video",
                  "copy",
                  "landing-page",
                  "none"
                ]
              },
              "description": "What material exists today? Use [\"none\"] alone when nothing exists."
            },
            "channels": {
              "type": "string",
              "description": "Which channels are you considering? For example Facebook, Instagram, TikTok, LinkedIn or other ad networks."
            },
            "channelsOpen": {
              "type": "boolean",
              "description": "Set to true instead of answering channels."
            },
            "assets": {
              "type": "string",
              "description": "Link to the material folder"
            },
            "adDeliverables": {
              "type": "string",
              "description": "What needs to be produced? For example two short videos, vertical images or headlines for search ads. Give the channel and format if known."
            },
            "adReuse": {
              "type": "string",
              "description": "What can be reused or adapted?"
            },
            "adOwner": {
              "type": "string",
              "description": "Who makes the material?"
            },
            "adApprover": {
              "type": "string",
              "description": "Who approves the material?"
            },
            "pageType": {
              "type": "string",
              "enum": [
                "",
                "new",
                "update",
                "undecided"
              ],
              "description": "What is the job?"
            },
            "pageDeadline": {
              "type": "string",
              "pattern": "^(\\d{4}-\\d{2}-\\d{2})?$",
              "description": "When must the page be ready? as YYYY-MM-DD, or an empty string."
            },
            "pageDeadlinePending": {
              "type": "boolean",
              "description": "Set to true instead of answering pageDeadline."
            },
            "pageCurrentUrl": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to the page to change as an http or https link, or an empty string."
            },
            "pageAction": {
              "type": "string",
              "description": "What should a visitor be able to do on the page? For example sign up, read a document or find contact details."
            },
            "pageMessage": {
              "type": "string",
              "description": "What should a visitor learn? Describe the offer, why it matters and what a visitor needs to know before the next step."
            },
            "pageContent": {
              "type": "string",
              "description": "Which parts should the page have? For example a programme, prices, customer reviews, questions and answers or contact details."
            },
            "pageAssets": {
              "type": "string",
              "pattern": "^(https?://\\S+)?$",
              "description": "Link to texts, images and a design guide as an http or https link, or an empty string."
            },
            "pageLanguage": {
              "type": "string",
              "description": "Which languages does the page need?"
            },
            "pagePlatform": {
              "type": "string",
              "description": "Where will the page be published? Give the domain and web platform if you know them. Say so if you need help choosing. Do not share login details here."
            },
            "pageExamples": {
              "type": "string",
              "description": "Are there pages that show what you have in mind?"
            },
            "pagePublisher": {
              "type": "string",
              "description": "Who approves and publishes the page?"
            },
            "pageNeedsForm": {
              "type": "boolean",
              "description": "Form"
            },
            "pageNeedsMeasurement": {
              "type": "boolean",
              "description": "Measurement"
            },
            "pageFormDetails": {
              "type": "string",
              "description": "What must the form collect, and where should the answers go?"
            },
            "pageMeasurementDetails": {
              "type": "string",
              "description": "Which events should be tracked? For example completed sign-ups or clicks to an external form."
            },
            "experiments": {
              "type": "string",
              "description": "Is there anything to test? For example a hypothesis or a split test."
            },
            "constraints": {
              "type": "string",
              "description": "Is there anything to consider? For example legal limits, tone of voice or internal sign-off. Write ‘None’ if nothing in particular applies."
            }
          },
          "description": "Any subset of the answers. Leave a key out when the customer has not said. Never invent an answer."
        }
      }
    }
  ],
  "examples": [
    {
      "format": "digital-campaign-draft",
      "version": 1,
      "answers": {
        "productionScope": "both",
        "campaign": "Spring sign-up drive",
        "objective": "membership",
        "audience": "People aged 25 to 40 in Stockholm",
        "landing": "https://example.com/join",
        "cta": "Join now",
        "material": [
          "image",
          "copy"
        ]
      }
    }
  ]
}
