Agent Runtime
Tutorial

Ticket Management Agent

Build an agent automatically routes tickets in Asana to the correct team and label the issue. When a new ticket is created, the agent analyzes the ticket content and assigns it to the appropriate product team.

Setup

npx create-agent-runtime-app@latest

TK

const teamNames = ["Product", "Support", "Engineering", "Design", "Marketing", "Sales"];
 
const productAreaLabels = ["Core", "Enterprise", "Developer Experience", "Community", "Analytics", "Billing"];
 
 
const agent = createAgent({
  name: "Ticket Management Agent",
  goal: structuredGoal(`Route tickets in Asana to the correct team and label the issue. The available teams are ${teamNames.join(", ")}. The available product area labels are ${productAreaLabels.join(", ")}.`),
  tools: [
    asanaTool({
      apiKey: process.env.ASANA_API_KEY,
    }),
  ],
})

Get your Asana API key from the Asana Developer Center. TK

Build up existing data for classification

Fetch the data of past human-classified tickets from Asana to develop a classifier.

 

Build the agent

On this page