{
  "schema_version": "1.0.0",
  "id": "freshdesk-ai-summary-note",
  "title": "Add an AI summary note to each Freshdesk ticket",
  "category": "support",
  "difficulty": "beginner",
  "featured": false,
  "description": "Summarise each new Freshdesk ticket in three lines with the customer's mood and the ask, and add it as a private note for the agent.",
  "tags": [
    "freshdesk",
    "support",
    "ai-summary",
    "sentiment"
  ],
  "apps": [
    "Freshdesk",
    "AI by Zapier"
  ],
  "plan": {
    "minimum": "Professional",
    "reasons": [
      "multi-step Zap: 2 steps after the trigger",
      "AI by Zapier"
    ]
  },
  "tasks": {
    "typical": 2,
    "max": 2
  },
  "trigger": {
    "app": "Freshdesk",
    "event": "New Ticket",
    "kind": "polling",
    "title": "New ticket",
    "why": "Fires for each new ticket in the helpdesk.",
    "config": {
      "Domain": "YOUR_FRESHDESK_DOMAIN"
    },
    "outputs": [
      "ticket_id",
      "subject",
      "description_text",
      "requester_email",
      "requester_name",
      "priority",
      "status",
      "created_at"
    ],
    "sample": "sample-trigger.json"
  },
  "steps": [
    {
      "key": "summary",
      "kind": "ai",
      "app": "AI by Zapier",
      "event": "Analyze and Return Data",
      "title": "Summarise the ticket",
      "why": "Three fixed outputs keep the note scannable. The prompt tells the model not to propose a solution, which is the agent's job.",
      "fields": {
        "Model": "Default (fast)",
        "Instructions": "You help support agents read long tickets fast. Return: summary (at most three short sentences: what happened, what they already tried, what they are asking for), sentiment (one of calm, frustrated, angry), and facts (order numbers, dates, account names or error messages quoted exactly, comma-separated, empty if none). Do not suggest a solution.",
        "Input data": "Subject: {{trigger.subject}}\nFrom: {{trigger.requester_name}}\n\n{{trigger.description_text}}",
        "Output fields": "summary, sentiment, facts"
      },
      "outputs": [
        "summary",
        "sentiment",
        "facts"
      ]
    },
    {
      "key": "note",
      "kind": "action",
      "app": "Freshdesk",
      "event": "Add Note to Ticket",
      "title": "Add the private note",
      "why": "Private, so the customer never sees it.",
      "fields": {
        "Ticket": "{{trigger.ticket_id}}",
        "Body": "AI summary ({{summary.sentiment}}):\n{{summary.summary}}\n\nFacts quoted: {{summary.facts}}",
        "Private": "Yes"
      },
      "outputs": [
        "id"
      ]
    }
  ]
}
