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

# Enable or disable AI features

Control if AI features can be used in your organization

### **Before You Begin**

*Include universal prerequisites and tools here.*

* **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` 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 mutation**

```graphql
mutation {
  updateAiSettings(
    input: {
      organizationUuid: <ORGANIZATION_UUID>,
      aiEnabled: true,
      aiAssistantsEnabled: false,
      pipeAiAgentsEnabled: false
    }
  ) {
    success
    organizationPreferences {
      aiEnabled
      aiAssistantsEnabled
      pipeAiAgentsEnabled
      aiDisabledBy
    }
  }
}
```

**Input Explanation**:

* **aiEnabled:** Enables **all** AI features in the product.
* **aiAssistantsEnabled:** Enables the AI assistants. Find more about them [here](https://help.pipefy.com/en/articles/10769512-what-is-the-ai-assistant-beta)
* **pipeAiAgentsEnabled:** Enables the AI agents inside the Pipe. Find more about them [here](https://help.pipefy.com/en/articles/8524296-what-are-ai-agents-beta)

**Sample Response**:

```json
{
  "data": {
    "updateAiSettings": {
      "success": true,
      "organizationPreferences": {
        "aiEnabled": true,
        "aiAssistantsEnabled": false,
        "pipeAiAgentsEnabled": false,
        "aiDisabledBy": null
      }
    }
  }
}
```

The response includes a success field and the field organizationPreferences, that contains all the updated AI Settings.

***

## **Key Notes**

You **can't** set the fields aiAssistantsEnabled and pipeAiAgentsEnabled to true if the field aiEnabled is set to false, as it control AI features in general.