Create an Intelligence Configuration
Legal information
Conversation Intelligence, including the APIs, may use artificial intelligence or machine learning technologies and is subject to the terms of the Predictive and Generative AI/ML Features Addendum. For more details on AI usage and data, see AI Nutrition Facts for Conversation Intelligence.
Conversation Intelligence is not PCI compliant or a HIPAA Eligible Service and should not be used in workflows that are subject to HIPAA or PCI.
Conversations products are only available in the new Twilio Console. If your account hasn't been migrated, you'll be redirected to the legacy Console where these products won't appear.
POST/v3/ControlPlane/Configurations
Base url: https://intelligence.twilio.com (Twilio Intelligence API)
Create an Intelligence Configuration to control how and when language operators analyze conversations.
You must include the rules field in the request. You can pass an empty array ("rules": []), but an Intelligence Configuration with an empty rules array doesn't execute any language operators. To add rules later, make a PUT /v3/ControlPlane/Configurations/{id} request.
After creating an Intelligence Configuration, you must attach it to a Conversations Configuration by using the Conversations API.
application/jsonThe display name of the Intelligence Configuration describing its purpose.
1Max length: 128The description of the Intelligence Configuration further explaining its purpose.
List of Intelligence Configuration Rules that govern when and how Language Operators run. Each Rule represents a bundle of Operators, Triggers, Context, and Actions to be executed by the Intelligence Configuration on a Conversation. A maximum of five (5) Rules are allowed per Intelligence Configuration.
To create an Intelligence Configuration without any Rules configured yet, pass an empty array
("rules": []). The Configuration will not execute any Language Operators until at least one Rule
has been added.
5Intelligence Configuration resource created.
The ID of the Account that created the Intelligence Configuration.
ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaThe unique identifier for the Intelligence Configuration. Assigned by Twilio (TTID).
The display name of the Intelligence Configuration describing its purpose.
1Max length: 128The description of the Intelligence Configuration further explaining its purpose.
The numeric version of the Intelligence Configuration. Automatically incremented with each update on the resource, used to ensure integrity when updating the Configuration.
List of Intelligence Configuration Rules that govern when and how Language Operators run. Each Rule represents a bundle of Operators, Triggers, Context, and Actions to be executed by the Intelligence Configuration on a Conversation. A maximum of five (5) Rules are allowed per Intelligence Configuration.
5Timestamp of when the Intelligence Configuration was created.
Timestamp of when the Intelligence Configuration was last updated.
1// Download the helper library from https://www.twilio.com/docs/node/install2const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";34// Find your Account SID and Auth Token at twilio.com/console5// and set the environment variables. See http://twil.io/secure6const accountSid = process.env.TWILIO_ACCOUNT_SID;7const authToken = process.env.TWILIO_AUTH_TOKEN;8const client = twilio(accountSid, authToken);910async function createConfiguration() {11const configuration = await client.intelligence.v3.configurations.create({12displayName: "real-time-intelligence-config",13description:14"Intelligence configuration to trigger real-time script adherence operator",15rules: [16{17operators: [18{19id: "intelligence_operator_01kcgy1ew0e9x8re6jq542zt8b",20version: 4,21parameters: {22scale: 2,23},24},25],26triggers: [27{28on: "COMMUNICATION",29parameters: {30count: 3,31},32},33],34actions: [35{36type: "WEBHOOK",37method: "POST",38url: "https://my-webhook-endpoint.com/rule-action",39},40],41context: {42memory: {43enabled: true,44},45knowledge: {46bases: ["knowledge_base_id"],47},48},49},50],51});5253console.log(configuration.accountId);54}5556createConfiguration();
Response
1{2"accountId": "AC00000000000000000000000000000000",3"id": "intelligence_configuration_01kermhm82e5mr98nbeh1hpmbn",4"displayName": "real-time-intelligence-config",5"description": "Intelligence configuration to trigger real-time script adherence operator",6"version": 1,7"rules": [8{9"operators": [10{11"id": "intelligence_operator_01kcgy1ew0e9x8re6jq542zt8b",12"version": 4,13"parameters": {14"scale": 215}16}17],18"triggers": [19{20"on": "COMMUNICATION",21"parameters": {22"count": 323}24}25],26"actions": [27{28"type": "WEBHOOK",29"method": "POST",30"url": "https://my-webhook-endpoint.com/rule-action"31}32],33"context": {34"memory": {35"enabled": true36},37"knowledge": {38"bases": [39"knowledge_base_id"40]41}42}43}44],45"dateCreated": "2026-01-12T08:18:17Z",46"dateUpdated": "2026-01-12T08:18:17Z"47}