{
  "schema_version": "1.0.0",
  "id": "intake-form-host-brief",
  "title": "Brief the host from an intake form before the session",
  "category": "booking",
  "difficulty": "intermediate",
  "featured": false,
  "description": "A client intake form becomes a five-line brief sent to the host by Slack DM and appended to the client's running notes doc.",
  "tags": [
    "booking",
    "typeform",
    "intake",
    "ai-summary",
    "google-docs"
  ],
  "apps": [
    "Typeform",
    "AI by Zapier",
    "Slack",
    "Google Docs"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 3 steps after the trigger",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 3,
    "max": 3
  },
  "trigger": {
    "app": "Typeform",
    "event": "New Entry",
    "kind": "instant",
    "title": "Intake form submitted",
    "why": "Fires when a client submits the intake form. A hidden field carries the host's Slack username from the booking link.",
    "config": {
      "Form": "Pre-session intake"
    },
    "outputs": [
      "response_id",
      "submitted_at",
      "name",
      "email",
      "session_date",
      "host_slack",
      "goals",
      "background",
      "constraints"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "brief",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Write the brief",
      "why": "Five fixed lines, so every brief reads the same and the host knows where to look.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "Write a pre-session brief for the host from this intake form. Return brief as exactly five lines: Goal:, Context:, Constraints:, Watch for: (anything sensitive or a mismatch between goal and constraints), Open with: (one suggested opening question). Use the client's words where possible. Do not diagnose or add facts not in the form.",
        "Input data": "Client: {{trigger.name}}\nSession: {{trigger.session_date}}\n\nGoals: {{trigger.goals}}\nBackground: {{trigger.background}}\nConstraints: {{trigger.constraints}}",
        "Output fields": "brief"
      },
      "outputs": [
        "brief"
      ]
    },
    {
      "key": "dm",
      "kind": "action",
      "app": "Slack",
      "event": "Send Direct Message",
      "title": "Send the brief to the host",
      "why": "A direct message, so the brief is private and easy to find before the session.",
      "fields": {
        "To Username": "{{trigger.host_slack}}",
        "Message Text": "Brief for {{trigger.name}} ({{trigger.session_date}}):\n{{brief.brief}}",
        "Send as a bot?": "Yes",
        "Bot Name": "Zap alerts"
      },
      "outputs": [
        "ts"
      ]
    },
    {
      "key": "notes",
      "kind": "action",
      "app": "Google Docs",
      "event": "Append Text to Document",
      "title": "Add it to the client notes doc",
      "why": "Keeps the intake brief at the top of the running notes for later sessions.",
      "fields": {
        "Document": "Client notes - {{trigger.name}}",
        "Text": "\n\nIntake brief ({{trigger.submitted_at}})\n{{brief.brief}}"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
