--- title: "AI Agents Settings" slug: "ai-agents-settings" description: "Manage reusable API Endpoints for API Call Actions and mask sensitive data in Support and Shopping Agent conversations with predefined and custom PII rules." updated: 2026-10-28T09:14:47Z published: 2026-10-28T09:14:47Z canonical: "academy.insiderone.com/ai-agents-settings" --- > ## Documentation Index > Fetch the complete documentation index at: https://academy.insiderone.com/llms.txt > Use this file to discover all available pages before exploring further. # AI Agents Settings The AI Agents Settings page lets you configure reusable **API Endpoints** for the API Call Actions of your [Support](https://academy.insiderone.com/v1/docs/support-agent-overview) and [Shopping Agents](https://academy.insiderone.com/v1/docs/shopping-agent-overview), choose which sensitive data is masked in your agents' conversations with **PII Configuration**. To access AI Agents Settings page, navigate to **InOne** > **Agent One** > **Agent One Audiences** > **AI Agents** and click **Settings**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-0JTGC051.png) In the Settings page, you will see two tabs: - [API Endpoints](https://academy.insiderone.com/v1/docs/ai-agents-settings-2#api-endpoints) - [PII Configuration](https://academy.insiderone.com/v1/docs/ai-agents-settings-2#pii-configuration) > [!NOTE] > The Product Details Widget is available for [Shopping Agents](/v1/docs/shopping-agent-overview) only. For setup details, refer to [Product Details Widget for Shopping Agent](https://academy.insiderone.com/docs/product-details-widget-for-shopping-agent). ## API Endpoints API Endpoints let you centrally manage the base URLs and authentication headers used by your **AI Agents** when calling external services. Once configured, you can reuse them across the **API Call Actions** of all your agents. Values you mark as sensitive information, such as API keys and tokens, are stored securely and displayed as masked values throughout the platform. > [!WARNING] > Admin users create, edit, delete, and test API Endpoints; other users can view the list, with sensitive values masked and management actions disabled. > [!NOTE] > API Endpoints are defined per account and shared by all your AI Agents (Support and Shopping Agents). 1. To define an endpoint, click **Create API Endpoint**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-AETHGC9L.png) 1. Name your **API Endpoint** and enter its **API Endpoint URL**. 2. The endpoint name is used only within the platform. The API Endpoint URL should contain only the base URL (for example, `https://api.yourcompany.com`). Add paths and dynamic parameters later in the API Call Action. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-TIB952MD.png) 3. Click **Add Header** to add more rows. Headers include Key-value pairs sent with every request that uses this endpoint, typically authentication credentials such as `Authorization: Bearer <token>` or an api-key. `Content-Type: application/json` is included by default. 4. Select **Mark as Sensitive Information** for each header that contains a credential or other sensitive value. Marked values are displayed masked and can't be viewed in full again on the platform; to change one, re-enter the value.![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-433KWUN2.png) 5. Click the **Create** button. > [!NOTE] > If one or more header values aren't marked as sensitive information, a confirmation asks you to verify that these values will remain visible before the endpoint is created. > [!NOTE] > Sensitive values are masked for every user on the platform once saved; they are only used when your agent sends the actual request. Once you create the endpoint, you can perform these actions: ### See Endpoint details Click **See Details** on an endpoint to review its URL and headers; sensitive values stay masked, and the AI Agent Details table, which lists the AI Agents and the API Call Actions using this endpoint, with links to each agent. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-QKYYTFCH.png) ### Edit an API Endpoint Click **Edit** on an endpoint to update its name, URL, and headers. Masked values remain masked while editing; re-enter a value to replace it or to change its sensitivity. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-4HYTP9ET.png) ### Delete an API Endpoint Click **Delete** on an endpoint. Deleting is permanent and can't be undone. API Endpoints used by AI Agents in Active status can't be deleted; **update** the API Call Action of those agents to use a different endpoint first. The delete panel lists the agents using the endpoint so you can check them before you proceed. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-5Z4IOQJS.png) ## PII configuration > [!WARNING] > PII Configuration is defined per account and applies to all your [Support](/v1/docs/support-agent-overview) and [Shopping Agents](/v1/docs/shopping-agent-overview), including agents you create later. PII Configuration lets you choose which personally identifiable information (PII) is masked in your AI Agents' conversations. Insider One detects the selected data types in conversation messages and masks them in the stored conversation history, so the values do not appear in plain text when your team reviews conversations. The **PII Configuration** tab has two parts: - **Predefined Rules**: ready-made rules for common data types. Select the ones you want to mask. - **Custom Rules**: your own rules for data specific to your business, such as customer numbers or national ID numbers, written as regular expressions (regex). > [!NOTE] > Users with the **Admin** or **Editor** role can change the configuration. Other users can view it, with management actions disabled. > [!NOTE] > Your AI Agent still uses the information a customer shares to answer them and to run actions during the conversation, such as looking up an order. Masking applies to how the conversation is stored and shown afterwards. ### Predefined rules Select one or more data types to mask. Each rule works without any setup. | Data type | What it detects | | --- | --- | | Credit Card Number | 13 to 19 digits, spaced or hyphenated | | Phone Number | Phone numbers that start with + or 0, such as +90 532 123 45 67 or 0532 123 45 67 | | IBAN | Country code followed by 24 digits | | MAC Address | 6 hex pairs, colon or hyphen separated | | Email Address | Name, @ sign and domain | | IP Address | Four numbers separated by periods | > [!WARNING] > Credit Card Number is always selected and cannot be turned off. Insider One detects credit card numbers and their security codes but does not store them: the stored conversation keeps a mask instead of the number. 1. Go to the **PII Configuration** tab. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-MQD4ZLJP.png) 2. Select the data types you want to mask. 3. Click **Save**. ### Custom rules Custom Rules let you mask data that has a format specific to your business. Each rule has a name and a regex pattern. Insider One masks every part of a message that matches the pattern. #### Add a custom rule 1. In the **Custom Rules** section, click **Add Custom Rule**. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-2U4SNJ7Z.png) 2. Enter a **Name** for the rule, for example Customer Number. Each rule name must be unique. 3. Enter the **Regex Pattern** that describes the data. Refer to [Write a regex pattern](https://academy.insiderone.com/docs/ai-agents-settings#writing-a-regex-pattern) below. 4. Test the pattern before you save it. Type a sample customer message in **Test String**, then check **Redacted Preview**. Every part that the pattern matches appears as asterisks. ![](https://cdn.document360.io/c6df4583-da94-4cb2-bb8a-be0cbdd11109/Images/Documentation/image-ZZ9VIMET.png) 5. Click **Save**. After you add a rule, you can perform these actions from the rules table: - **Turn a rule on or off** with its status toggle. A rule that is off is kept but does not mask anything. - **Edit** a rule to change its name or pattern. Click **Update** to apply your changes. - **Delete** a rule. Deleting is permanent. > [!WARNING] > You can add up to 20 Custom Rules. A rule name can be up to 120 characters and a pattern up to 512 characters. #### Write a regex pattern > [!NOTE] > For more information about regular expressions, refer to [Regular Expression (Regex)](https://academy.insiderone.com/docs/regular-expression-regex). A pattern runs on every message in the conversation, and the data you want to mask usually sits inside a sentence. Follow these rules so your pattern masks the right values. - **Do not use ^ and $.** They match the start and end of the whole message, so the pattern only works when the customer sends the value alone. For example, `^[1-9][0-9]{9}[02468]$` masks a message that is only 12345678902, but masks nothing in "My ID number is 12345678902, where is my order?". - **Mark where the value starts and ends.** Use `(?<!\d)` before and `(?!\d)` after a number, so the pattern does not match part of a longer number. For a value that mixes letters and digits, use `(?<![A-Za-z0-9])` and `(?![A-Za-z0-9])`. - **Make the pattern specific.** A pattern such as `\d{10}` matches every 10-digit number, including order numbers and prices. Add a fixed prefix, a fixed length, or the words customers write before the value. - **Do not use inline flags such as (?i).** The panel does not accept them. To match both cases, list both letters, for example `[Tt]ax`. - **Do not add a rule a Predefined Rule already covers.** Select the predefined rule instead. - **Test with real messages.** In Test String, try messages that contain the value and messages that contain similar numbers that must stay visible, such as order numbers. #### Example patterns You can copy these patterns and adapt them to your data. | Data | Regex Pattern | Masked | Not masked | | --- | --- | --- | --- | | Turkish national ID number (TCKN) | `(?<!\d)[1-9]\d{9}[02468](?!\d)` | My ID number is 12345678902 | 02345678902 (starts with 0) 1234567890212 (13 digits) | | Tax ID number, masks the number only | `(?<=(?:[Tt]ax(?: [Ii][Dd])?(?: ?[Nn]o)?\|TIN)\W{0,3})\d{10}(?!\d)` | Tax ID: 1234567890 TIN 1234567890 | Order 1234567890 (no tax ID wording before it) | | Passport number (one letter and 8 digits) | `(?<![A-Za-z0-9])[A-Z]\d{8}(?![A-Za-z0-9])` | My passport is U12345678. | XU12345678 u12345678 | | Order or customer number with a fixed prefix | `(?<![A-Za-z0-9])ORD-\d{8}(?!\d)` | Where is ORD-00123456? | ORD-123 ORD-001234567 | | Turkish license plate | `(?<!\d)(?:0[1-9]\|[1-7]\d\|8[01]) ?[A-Z]{1,3} ?\d{2,4}(?!\d)` | 34 ABC 123 34ABC1234 | 99 ABC 123 (no such province code) | > [!NOTE] > Custom Rules match the format of a value, not whether the value is real. The TCKN pattern above masks any 11-digit number that starts with 1 to 9 and ends with an even digit, without checking the ID number's checksum. ### Things to know - Detection is pattern-based. A value written in an unexpected format, such as a phone number split by words, may not be detected. - A broad pattern can mask more than you intend, such as order numbers or prices. Check new rules with Test String before you turn them on. - Changes apply to messages processed after you save them. Conversations that were already stored keep their previous masking. - When two rules match the same text, the longer match is masked. - **Phone Number** masks numbers that start with + or 0. A number written without them, such as 532 123 45 67, is not masked. To mask these, add a Custom Rule. ## Related - [Create and Configure the Support Agent](/create-and-configure-the-support-agent.md) - [Create and Configure the Shopping Agent](/create-and-configure-the-shopping-agent.md)