---
agentTools:
  projectIndex: https://developers.pipefy.com/llms.txt
---

# Template Agents Query

Find the AI Agents of a Template

### **Before You Begin**

* **GraphQL Playground**:
  🔗 All examples should be run in the [GraphQL Playground](https://app.pipefy.com/graphiql).
  ➡️ New to GraphQL? Review the [Playground Basics Guide](https://developers.pipefy.com/reference/exploring-the-playground).
* **Authentication**:
  🛠️ Use [Service Account tokens](https://developers.pipefy.com/reference/service-accounts) *(Personal Access Tokens are deprecated)*.

### **Prerequisites**

* `Super Admin, Admin or Member` role on the `Organization`.
* `Organization UUID`.

***

### **Step 1. Find the Organization ID**

Find the organization UUID.

You can retrieve it using this query:

```graphql
{
  organization(id: "<ORGANIZATION_ID>") {
    uuid
  }
}
```

The organization ID can be found on the home page url: `https://app.pipefy.com/organizations/<ORGANIZATION_ID>`

### **Step 2. Execute the query**

```graphql
{
  templateAgents(templateId: ID, organizationUuid: UUID) {
    edges {
      node {
        name
      }
    }
  }
}

```

**Sample Response**:

```json
{
  "data": {
    "templateAgents": {
      "edges": [
        {
          "node": {
            "name": "Document Processing Agent"
          }
        },
        {
          "node": {
            "name": "Agent to Analyst"
          }
        },
        {
          "node": {
            "name": "Policy & Document Automation Agent"
          }
        },
        {
          "node": {
            "name": "FBI Agent"
          }
        }
      ]
    }
  }
}
```

The response includes only the name of the agents.

***