# Quick Start Source: https://developers.nlpearl.ai/api-reference/api_quickstart Get started with the NLPearl.AI API by following these simple steps to set up your subscription, API secret key, and authentication. ![NLPearl.AI API cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-quickstart-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=19d694f5de3dcd87c799d5834c7b813b) ## Quick Start with NLPearl.AI API Getting started with the NLPearl.AI API is straightforward. Follow these steps to set up your subscription, create an API secret key, and authenticate your API requests. ### Step 1: Choose a Subscription Before you can use the NLPearl.AI API, you need to select a subscription plan that suits your needs. See [Billing](/pages/billing) to view and choose the plan that best fits your requirements. ### Step 2: Create Your Credentials To interact with the NLPearl.AI API, you need credentials. Open **Settings** on the platform, select the **API Access** page, and create one of the two: * An [**API secret key**](/api-reference/api_secret_key) - full access to your workspace, for code you own and run yourself. Store it securely. * An [**OAuth 2.0 app**](/api-reference/oauth) - a Client ID and Client Secret with only the [scopes](/api-reference/oauth#scopes) you select, for a third-party integration or an app that should reach only part of your workspace. If you are not sure, start with an API secret key and follow the steps below. ### Step 3: Find Your Account ID Your Account ID is required to authenticate with an API secret key. Open **Settings**, then **General Settings**, and copy it from the **Account ID** field. (An OAuth 2.0 app does not need it - the workspace is already part of its access token.) ### Step 4: Set Up API Authentication To authenticate your API requests, include your credentials in the header of each request. Check the guide that matches the credentials you created: > [card] [API Secret Key](/api-reference/api_secret_key) > > Send your Account ID and secret key as a bearer token. > [card] [OAuth 2.0](/api-reference/oauth) > > Request an access token and scope what an integration can reach. ## Conclusion Starting with the NLPearl.AI API is easy and straightforward. By following these steps, you can quickly set up your account and begin integrating powerful AI capabilities into your applications. To run a Pearl inside your own app, website or phone system, see [Stream Calls](/pages/stream/overview). # API Secret Key Source: https://developers.nlpearl.ai/api-reference/api_secret_key Authenticate your own backend code with one key: your Account ID and a secret key, sent as a bearer token. > [!NOTE] > > Handing access to someone else? An **OAuth 2.0 app** has its own client ID and > secret, reaches only the scopes you grant it, and can be rotated on its own - > see [OAuth 2.0](/api-reference/oauth). ## Overview An API secret key is the simplest way to call the NLPearl API: one key, created in your workspace settings, sent on every request. It carries **full access** to the workspace, which makes it the right credential for code you own and run yourself, and the wrong one to give to a third party. > [!NOTE] > > API keys live on the **API Access** page of your workspace settings. Creating > one requires an active subscription. *** ## Creating an API Key **1. Open the API Access page** Click your **profile card** at the bottom-left corner of the sidebar, open **Settings**, then select **API Access** in the settings menu. You can also go there directly: [platform.nlpearl.ai/app/settings/api](https://platform.nlpearl.ai/app/settings/api). **2. Open Add API Key** Click **Create API Key**. The window that opens holds a **Name** and the **Secret Key** itself. **3. Name it and copy the key** Give it a name that identifies where the key will be used - up to 15 characters - then copy the secret key with the button at the end of the field. **4. Create the key** Click **Create Key**. The key appears in the credentials list, marked with a key glyph and showing its first characters. You can copy a key again at any time with the **copy** button on its row, and the **delete** button revokes it immediately. > [!WARNING] > > A secret key carries **full access** to your workspace and cannot be > restricted to part of it. Keep it server-side, never ship it in a browser, a > mobile app or a public repository, and never share it with a third party - > create an [OAuth 2.0 app](/api-reference/oauth) for that instead. *** ## Finding Your Account ID The header carries two values: your Account ID and the secret key. The **Account ID** identifies your workspace and is on the **General Settings** page of your workspace settings, under that name. It is also shown, with a copy button, in the workspace switcher. *** ## Authorization Header Send both values as a bearer token, separated by a colon: ```http theme={null} Authorization: Bearer AccountId:SecretKey ``` For example: ```http theme={null} Authorization: Bearer 66552698d60e456235eae520:tWPqr5EEZv2dxqutv58NsCg7NuqGc1tX ``` ### Example request ```bash theme={null} curl -X GET "https://api.nlpearl.ai/v2/Pearl" \ -H "Authorization: Bearer 66552698d60e456235eae520:tWPqr5EEZv2dxqutv58NsCg7NuqGc1tX" ``` Replace `66552698d60e456235eae520` with your Account ID and `tWPqr5EEZv2dxqutv58NsCg7NuqGc1tX` with your secret key. > [!NOTE] > > The key does not expire and there is no token to request first: send the same > header on every call. Deleting the key on the API Access page is what ends its > access. *** ## Errors | Status | Meaning | | - | - | | `401` | The `Authorization` header is missing or malformed, the Account ID and key do not belong together, or the key was deleted. | # API Authorization Source: https://developers.nlpearl.ai/api-reference/authorization Every API request carries an Authorization header. Choose the credential that matches who is making the calls. ## API Authorization Guide Every request to the NLPearl API must carry an `Authorization` header. There are two kinds of credential behind it, and both are accepted on every `/v2` endpoint - so an integration built against one works against the other without changing a single call. > [card] [API Secret Key](/api-reference/api_secret_key) > > One key with full access to your workspace. Best for **your own** backend > code. > [card] [OAuth 2.0](/api-reference/oauth) > > An app with its own client ID and secret, limited to the **scopes** you > grant and rotatable on its own. Best for a **third-party** integration. *** ## Choosing Between Them | | API secret key | OAuth 2.0 app | | - | - | - | | What you send | `Bearer AccountId:SecretKey` on every call | `Bearer `, after requesting a token | | Reach | The whole workspace, always | Only the scopes you granted the app | | Lifetime | The key does not expire | Access tokens last one hour; request a new one when they expire | | If the secret leaks | Delete the key and create a new one | Rotate the app's secret; its client ID and scopes stay as they are | | Readable again later | Yes, copy it from the credentials list | No, the client secret is shown once | Both are created on the **API Access** page of your workspace settings, and creating either one requires an active subscription. *** ## Next Steps > [card] [Quick Start](/api-reference/api_quickstart) > > Set up your account and make your first API call. # Building a Pearl Flow Source: https://developers.nlpearl.ai/api-reference/building_a_flow How to build a Pearl as a graph of nodes and transitions through the API, for both Voice and Text. A **Pearl** can be driven in one of two ways: * A **Simple Pearl**: a single opening sentence plus a flow script. Created with [Create Pearl](/api-reference/v2/pearlFlow/add-pearl-flow). * A **Pearl** (the focus of this guide): a **graph of nodes** connected by **transitions**, giving you full control over the conversation, branching, integrations, and post-call automation. This page explains the node logic: how nodes connect, how the entry point and IDs work, how transitions branch, and what differs between the **Voice** and **Text** channels. > [!NOTE] > > Endpoints for node-graph Pearls: > > * **Voice**: [Create Voice Pearl](/api-reference/v2/pearlFlow/add-voice-pearl), [Update Voice Pearl](/api-reference/v2/pearlFlow/update-voice-pearl) > * **Text**: [Create Text Pearl](/api-reference/v2/pearlFlow/add-text-pearl), [Update Text Pearl](/api-reference/v2/pearlFlow/update-text-pearl) > * **Read back**: [Get Pearl Settings](/api-reference/v2/pearlFlow/get-pearl-flow) *** ## The mental model A Pearl flow is a **directed graph**: * Each **node** does one thing (say something, call an API, send an email, transfer, end the call, ...). * Each **transition** is a labeled edge from one node to another. The label is a plain-language **condition** that decides when that edge is taken. * The conversation starts at a single **entry point** and every path eventually reaches the one **EndCall** node. You send the whole graph in the `pearl.nodes` array. You do not draw the graph visually, you describe it: every node lists its outgoing transitions, and each transition names the `toNodeId` it leads to. The nodes reference each other by ID, so the order inside the array does not matter. > [!NOTE] > > The words "call" and "EndCall" are kept for both channels. On a Text Pearl they simply mean the conversation and the end-of-conversation node. *** ## Node types Every node has a `nodeType` (an integer). This is the single most important field: it decides what the node does and which settings object it must carry. | `nodeType` | Name | Channel | Carries | | - | - | - | - | | `2` | OpeningSentence | Both | `script` (+ optional `instructions`) | | `3` | PreCallAPI | Both | `apiSettings` | | `10` | Dialogue | Both | `script` (+ optional `instructions`) | | `31` | HandoffChatToHuman | **Text only** | `handOffAction` (+ optional `script`) | | `40` | API | Both | `apiSettings` | | `50` | SMS | **Voice only** (as a node) | `smsSettings` | | `51` | Email | Both | `emailSettings` | | `60` | TransferCall | **Voice only** | `transferCallSettings` | | `65` | StartCallRecording | **Voice only** | nothing (its presence is the whole configuration) | | `80` | SearchKnowledgeBase | Both | searches the knowledge base, branches on the result | | `100` | EndCall | Both | transitions to post-call containers only | | `200` | PostCallActions | Both | `postCallActions` (a container of actions) | > [!NOTE] > > Sending a node type that is not allowed for the channel is rejected. For example an SMS node (`50`) or a TransferCall node (`60`) in a Text Pearl, or a HandoffChatToHuman node (`31`) in a Voice Pearl. *** ## Anatomy of a node ```json theme={null} { "nodeId": "triage", "name": "Triage the caller", "nodeType": 10, "script": "Are you calling to book a new appointment or to reschedule an existing one?", "instructions": "Stay friendly. If the caller is unsure, briefly explain both options.", "transitions": [ { "name": "Wants to book", "toNodeId": "booking" }, { "name": "Wants to reschedule", "toNodeId": "reschedule" } ] } ``` | Field | Meaning | | - | - | | `nodeId` | **You choose it.** A unique ID for the node within the flow. Transitions reference it. | | `name` | A human-readable label for the node (shown in the editor). | | `nodeType` | What the node does (see the table above). | | `transitions` | The outgoing edges. Each has a `name` (the condition) and a `toNodeId` (the target). | | `script` | `🧩 May support variables` The text for OpeningSentence and Dialogue nodes. | | `instructions` | `🧩 May support variables` Optional guidance on tone, exceptions, and how closely to follow the script. | | `apiSettings` / `smsSettings` / `emailSettings` / `transferCallSettings` | The settings object matching the node type. | | `handOffAction` / `postCallActions` | Nested lists of action nodes (see below). | > [!NOTE] > > Only fields marked `🧩 May support variables` accept the `{variableId}` syntax. See [Flow Variables](/api-reference/flow_variables) for the full variable system. *** ## Node IDs and transitions This is the part people get wrong most often, so read it carefully. There are **two kinds of IDs**, and they behave differently. ### Node IDs: you provide them * **You choose `nodeId`.** It is how the graph wires itself together: a transition points at a node through `toNodeId`, which must equal that node's `nodeId`. * The `nodeId` must be **unique** within the flow and is capped at **20 characters**. The `name` does **not** have to be unique. * Pick short, stable, meaningful IDs (`opening`, `triage`, `booking`, `endCall`). You will reuse them across every transition that leads to the node. * **A node needs at least one of `nodeId` or `name`, and the platform derives the missing one.** Send only a `nodeId` and the `name` is generated from it (`verifyCustomer` → "Verify Customer", `endCall` → "End Call"); send only a `name` and the `nodeId` is generated from it in camelCase ("Verify Customer" → `verifyCustomer`). Send neither and the request is rejected. > [!WARNING] > > A name-only node gets an **auto-generated `nodeId`** (the camelCase of its `name`, made unique). Because a transition's `toNodeId` must match that id, any node another node points to should carry an explicit `nodeId`, it is the robust path and you still get the `name` for free. Deriving the id from the name is most convenient for nodes nothing transitions to (post-call actions, hand-off sub-actions). ### Transition IDs: you do NOT provide them A transition only needs two things from you: | Field | Meaning | | - | - | | `name` | `🧩 May support variables` The condition, written in plain language ("Caller is a VIP", "Wants to reschedule", "Always"). Must be unique within the node. | | `toNodeId` | The `nodeId` this transition leads to. | You never send a transition ID. The platform **generates it from the transition `name`** in camelCase ("is successful" becomes `isSuccessful`), adding a numeric suffix on collisions (`isSuccessful1`, `isSuccessful2`). This is why the transition `name` must be unique inside a node. > [!WARNING] > > Write transition names as readable **conditions**, not code. Use "Age greater than 60", not `{customerAge} > 60`. **A single transition:** ```json theme={null} { "name": "Wants to reschedule", "toNodeId": "reschedule" } ``` *** ## The opening Every flow needs an entry point. In most flows that is a single **OpeningSentence** node (`nodeType: 2`). ```json theme={null} { "nodeId": "opening", "name": "Greeting", "nodeType": 2, "script": "Hi {firstName}, this is {agentName} from Bright Dental. How can I help you today?", "transitions": [ { "name": "Caller states their reason", "toNodeId": "triage" } ] } ``` > [!NOTE] > > **The opening script is spoken as written.** Whatever you put in an OpeningSentence node's `script` is what the agent says to open the conversation, close to verbatim. This is different from a **Dialogue** node, where the `script` is a guide that the agent adapts in real time to what the customer says. ### The entry point is derived, not sent You do **not** tell the API which node is first. The entry point is resolved automatically: * If the flow contains a **PreCallAPI** node, that node is the entry point. * Otherwise, the single **OpeningSentence** node is the entry point. Because of this, the opening rules are strict: * **Without a PreCallAPI**: exactly **one** OpeningSentence node. * **With a PreCallAPI**: **one or two** OpeningSentence nodes (see the next section). *** ## Pre-call API A **PreCallAPI** node (`nodeType: 3`) runs an API call **before** the conversation starts, typically to look the customer up so the opening can be personalized. A flow may contain **at most one** PreCallAPI node. Its transitions are special: each one must set `apiResult`, and each one must lead to an **OpeningSentence** node. | `apiResult` | Meaning | Generated transition ID | | - | - | - | | `1` | Success (the API call succeeded) | `sapisuccess` | | `2` | Failure (the call failed or returned nothing) | `sapinotsuccess` | > [!NOTE] > > `apiResult` is only valid on the transitions of a PreCallAPI node, and it is required there. It must not appear on any other node's transitions. **One opening (continue on both outcomes):** the Success transition leads to the opening. A Failure transition, if present, must point at that same opening. **Two openings (branch on the outcome):** the Success transition leads to the "known customer" opening, the Failure transition to the "unknown customer" opening. They must point at two different OpeningSentence nodes. ```json theme={null} { "nodeId": "lookup", "name": "Customer lookup", "nodeType": 3, "apiSettings": { "name": "Find customer", "method": 1, "endpointUrl": "https://crm.example.com/customers?phone={phoneNumber}", "description": "Looks up the caller by phone number before greeting.", "outputBody": [ { "key": "firstName", "variableId": "firstName" } ] }, "transitions": [ { "name": "Customer found", "toNodeId": "openingKnown", "apiResult": 1 }, { "name": "Customer not found", "toNodeId": "openingUnknown", "apiResult": 2 } ] } ``` Here `method: 1` is a GET (see the method codes under [Action nodes](#action-nodes)). `outputBody` maps a field of the API response onto a flow variable so the opening can use `{firstName}`. *** ## Connecting nodes into a sequence A flow is only valid when it is fully connected. The rules: * **Exactly one EndCall node** (`nodeType: 100`), and **every path must be able to reach it**. * **Every non-entry node needs at least one incoming transition.** A node nobody points to is unreachable and rejected. (The one exception is a floating TransferCall node, see below.) * Transitions may only point at node IDs that exist in the flow. A simple linear chain looks like this (order in the array does not matter, the `toNodeId` links do the wiring): ```json theme={null} "nodes": [ { "nodeId": "opening", "name": "Greeting", "nodeType": 2, "script": "Hi {firstName}, how can I help?", "transitions": [ { "name": "Continue", "toNodeId": "triage" } ] }, { "nodeId": "triage", "name": "Triage", "nodeType": 10, "script": "Do you want to book or reschedule?", "transitions": [ { "name": "Wants to book", "toNodeId": "booking" }, { "name": "Wants to reschedule", "toNodeId": "endCall" } ] }, { "nodeId": "booking", "name": "Take the booking", "nodeType": 10, "script": "Great, what day works best for you?", "transitions": [ { "name": "Continue", "toNodeId": "endCall" } ] }, { "nodeId": "endCall", "name": "End", "nodeType": 100, "transitions": [] } ] ``` > [!TIP] > > Give the EndCall node a stable ID like `endCall` and point every terminal branch at it. It keeps the graph easy to reason about, and every action node (transfer, SMS, email) should ultimately continue to it. *** ## Action nodes Action nodes do work instead of talking. Each carries the settings object that matches its `nodeType`. | Node | `nodeType` | Settings object | Notes | | - | - | - | - | | API | `40` | `apiSettings` | Calls an HTTP endpoint mid-conversation. | | SMS | `50` | `smsSettings` | Voice only as a standalone node. | | Email | `51` | `emailSettings` | Sends an email. | | TransferCall | `60` | `transferCallSettings` | Voice only. Hands the call to a phone number. | | StartCallRecording | `65` | none | Voice only. Its presence starts recording from that point. | `apiSettings` (`method` codes: `1` GET, `2` POST, `3` PUT, `4` DELETE, `5` PATCH): ```json theme={null} { "nodeId": "checkAvail", "name": "Check availability", "nodeType": 40, "apiSettings": { "name": "Availability", "method": 1, "endpointUrl": "https://booking.example.com/slots?day={preferredDay}", "description": "Returns open appointment slots for the requested day.", "outputBody": [ { "key": "slots", "variableId": "availableSlots" } ] }, "transitions": [ { "name": "Slots available", "toNodeId": "confirm" }, { "name": "No slots", "toNodeId": "offerCallback" } ] } ``` > [!NOTE] > > Action node settings on a node graph carry **no trigger description**: the transitions decide when an action runs, so there is nothing to describe. (The one exception is a *floating* TransferCall, see below.) For the full API body, headers, credentials, and output-schema options, see the [API node](/pages/api_action) guide and [Flow Variables](/api-reference/flow_variables). ### TransferCall: wired vs floating (Voice) A TransferCall node behaves differently depending on how it is reached, and this changes whether `triggerDescription` is required: | The transfer node is... | `triggerDescription` | Behavior | | - | - | - | | **Wired** (another node has a transition into it) | **Not allowed** | The flow decides when the transfer happens. | | **Floating** (no incoming transition) | **Required** | The agent fires the transfer on its own, based on the description, from anywhere in the call. | ```json theme={null} { "nodeId": "toBilling", "name": "Transfer to billing", "nodeType": 60, "transferCallSettings": { "transferCallPhoneNumber": "+12125551234" }, "transitions": [ { "name": "Continue", "toNodeId": "endCall" } ] } ``` > [!NOTE] > > A TransferCall node does **not** need an outgoing transition. Once the call is handed off there is nothing left to branch on, so the platform connects it **straight to the EndCall node** on its own. This holds whether the transfer is **wired** (it has an incoming transition) or **floating** (it has none): in both cases you can leave its `transitions` empty and the post-call flow still runs. The `{ "name": "Continue", "toNodeId": "endCall" }` transition shown above is therefore optional. *** ## Post-call actions Post-call actions run **after** the conversation ends. They are fire-and-forget: the platform sends them and moves on, so they never have transitions and their result is not captured. The structure has two parts: 1. A **PostCallActions container** node (`nodeType: 200`) whose `postCallActions` array holds the actual action nodes (API `40`, Email `51`, and on Voice also SMS `50`). These inner nodes have **no transitions**. 2. The **EndCall** node's transitions, which point at those containers. **This is the only place EndCall may transition to.** Each transition `name` is the **condition** under which that container fires. When the call ends, the platform evaluates all of EndCall's transitions at once. Each condition that is true triggers its container, and multiple containers can fire in parallel (logical OR). Use a transition named "Always" for a container that should run on every call. ```json theme={null} "nodes": [ { "nodeId": "endCall", "name": "End", "nodeType": 100, "transitions": [ { "name": "Appointment booked", "toNodeId": "postBooked" }, { "name": "Always", "toNodeId": "postLog" } ] }, { "nodeId": "postBooked", "name": "Booking actions", "nodeType": 200, "postCallActions": [ { "nodeId": "crmLog", "name": "Update CRM", "nodeType": 40, "apiSettings": { "name": "Log booking", "method": 2, "endpointUrl": "https://crm.example.com/bookings", "description": "Records the booking after the call.", "body": [ { "key": "phone", "variableId": "phoneNumber" }, { "key": "summary", "variableId": "post_call_summary" } ] } } ] }, { "nodeId": "postLog", "name": "Always-on recap", "nodeType": 200, "postCallActions": [ { "nodeId": "emailRecap", "name": "Email recap", "nodeType": 51, "emailSettings": { "to": ["ops@example.com"], "subject": "Call recap for {firstName}", "body": "Summary: {post_call_summary}" } } ] } ] ``` > [!NOTE] > > Post-call actions are the only place where **post-call variables** (`post_call_summary`, `post_call_transcript`, `post_call_recording`, ...) are available. See [Flow Variables](/api-reference/flow_variables). *** ## Voice vs Text The node logic above is identical for both channels. The differences are the node types allowed, the model, and a few channel fields. | | Voice Pearl | Text Pearl | | - | - | - | | Endpoint | [Create Voice Pearl](/api-reference/v2/pearlFlow/add-voice-pearl) | [Create Text Pearl](/api-reference/v2/pearlFlow/add-text-pearl) | | Model (`modelType`) | `1` Trident, `2` Oyster, `3` Arrow, `4` Hydra, `5` Flame (defaults to Arrow) | `12` Orchid, `11` Swan (defaults to Orchid) | | Agent identity | `agents` (voice agents, one per language) + `speechRecognitionKeywords` | `agentName` (single text agent, all languages natively) | | Human escalation | TransferCall node (`60`) to a phone number | HandoffChatToHuman node (`31`) | | Voice-only nodes | SMS (`50`), TransferCall (`60`), StartCallRecording (`65`) | not available | | Text-only nodes | not available | HandoffChatToHuman (`31`) | | SMS | a standalone SMS node (`50`) | **only inside a Hand-Off** (as a sub-action), never as a standalone node or post-call action | | Channel binding | phone number is assigned on the platform | `textChannelId` on the inbound/outbound settings (from [Get Text Channels](/api-reference/v2/pearlSettings/get-text-channels)) | ### The Hand-Off node (Text) The Text equivalent of a transfer. It hands the conversation to a human and can fire inline notifications through its `handOffAction` array. Those sub-actions may be SMS (`50`), Email (`51`), or API (`40`), have **no transitions** of their own, and the Hand-Off node itself transitions to EndCall. ```json theme={null} { "nodeId": "handoff", "name": "Escalate to a human", "nodeType": 31, "script": "Connecting you with a teammate now, one moment.", "transitions": [ { "name": "Continue", "toNodeId": "endCall" } ], "handOffAction": [ { "nodeId": "notifyTeam", "name": "Email the team", "nodeType": 51, "emailSettings": { "to": ["support@example.com"], "subject": "Human requested in chat", "body": "Customer {firstName} asked for a human." } } ] } ``` > [!NOTE] > > `script` on a Hand-Off is the last line the agent sends before it stops replying. Leave it empty for a silent hand-off. See the [Hand-Off node](/pages/text/handoff_action) guide for the full behavior. *** ## Creating vs updating ### Create Send the whole thing at once. The request wrapper is the same shape for both channels (only the settings variant differs): ```json theme={null} { "name": "Bright Dental Reception", "pearl": { "companyName": "Bright Dental", "agentPersonality": "Warm and professional", "modelType": 3, "agents": [ /* voice agents (Voice), or use agentName for Text */ ], "nodes": [ /* the full node graph */ ] }, "variables": [ /* your flow variables, see Flow Variables */ ], "inbound": { /* OR "outbound": provide exactly one */ } } ``` * Provide **exactly one** channel: `inbound` **or** `outbound`, never both. * For a Text Pearl, put the `textChannelId` on the `inbound`/`outbound` settings. * `variables` defines the flow variables; keep it minimal and only include what you reference. See [Flow Variables](/api-reference/flow_variables). * The Pearl is created **already published**: the configuration you send becomes its live version. ### Update: `pearl` is a full replace, settings are a patch The update endpoints ([Update Voice Pearl](/api-reference/v2/pearlFlow/update-voice-pearl), [Update Text Pearl](/api-reference/v2/pearlFlow/update-text-pearl)) treat each part of the request differently. In every case the update applies to the **published version** of the Pearl: if several versions exist on the platform, only the currently published one is modified. | Part of the request | Behavior on update | | - | - | | `pearl` | **Full replacement.** If you send `pearl`, you send the **complete node graph**, it replaces the existing one entirely. Omit `pearl` to leave the flow untouched. | | `inbound` / `outbound` | **Partial patch.** Only the fields you include are changed; every field you omit keeps its current value. | | `name`, `variables` | Applied when provided. | > [!WARNING] > > There is no partial edit of a single node. To change one node you resend the entire `pearl.nodes` graph. Fetch the current graph first with [Get Pearl Settings](/api-reference/v2/pearlFlow/get-pearl-flow), modify it, and send it back. > [!NOTE] > > The channel patch works field by field: sending `{ "inbound": { "waitingSentence": "..." } }` changes only the waiting sentence and preserves everything else. This is why `inbound`/`outbound` behave as a patch while `pearl` does not. *** ## Validation checklist Before you send a flow, confirm: * [ ] Exactly **one EndCall** node, and every node can reach it. * [ ] Exactly **one OpeningSentence** (or, with a PreCallAPI, one or two). * [ ] **At most one PreCallAPI**; its transitions all set `apiResult` and lead to OpeningSentence nodes. * [ ] Every `nodeId` is **unique** and every `toNodeId` points at an existing node. * [ ] Every non-entry node has an **incoming transition** (except a floating TransferCall). * [ ] Each node carries the **settings object for its `nodeType`**, and no forbidden node type for the channel. * [ ] `apiResult` only on PreCallAPI transitions; post-call and hand-off sub-actions have **no transitions**. * [ ] Transition names are **unique within their node** and written as plain-language conditions. *** ## Related > [card] [Flow Variables](/api-reference/flow_variables) > > The `{variableId}` syntax, variable groups, and built-in variables. > [card] [API Node](/pages/api_action) > > Request body, headers, credentials, and response output schema. > [card] [Get Pearl Settings](/api-reference/v2/pearlFlow/get-pearl-flow) > > Read the current flow back before updating it. > [card] [Hand-Off Node](/pages/text/handoff_action) > > Escalate a Text conversation to a human. # Pearl Flow Variables Guidance Source: https://developers.nlpearl.ai/api-reference/flow_variables API variables are placeholders you can embed in specific Pearl Flow fields to make your configuration dynamic (scripts, endpoints, messages, and notifications). Whenever a field is labeled: `🧩 May support variables` you can insert variables using this syntax: ```text theme={null} {variableId} ``` Example: ```text theme={null} Hello {firstName}, this is {agentName}. ``` *** ## Variable Groups Variables belong to one of three groups. ### Pre-call variables (Group = `PreCall`) Pre-call variables are expected to be available **before** the call starts (for example from your lead import, CSV mapping, or an API integration). If a pre-call value is missing, it’s not always blocking, depending on your flow, the agent may still collect it during the call. Common usage: * Opening sentence * Pre-call API actions * Endpoint URLs and message templates (when supported) **Opening sentence example (pre-call only):** ```text theme={null} Hello, I’m {agentName}. Am I speaking with {firstName}? ``` *** ### In-call variables (Group = `InCall`) In-call variables are collected or updated **during** the call. Common usage: * In-call API actions * Email/SMS templates (when supported) * Flow scripts (when supported) **Script example (collecting an in-call variable):** ```text theme={null} Please tell me your address. I will store it as {customerAddress}. ``` *** ### Post-call variables (Group = `PostCall`) Post-call variables are generated **after** the call ends (transcript, summary, duration, etc.). You **cannot create** post-call variables manually, as they are pre-defined by the platform. Common usage: * End-call notifications (Email / API) *** ## Built-in Variables (Reserved IDs) Some variables are built into the platform and already exist by default. Because they are reserved, \*\*you cannot create a new variable using the same `id**` as a built-in variable. If you try, the API will reject it as a duplicate ID. ### Built-in Pre-call Variables | ID | Name | Description | | - | - | - | | `agentName` | Agent Name | The name of the agent. | | `agentPhoneNumber` | Agent Phone Number | The Pearl's own phone line for the current conversation. Read-only; empty on channels without a phone number. | | `firstName` | First Name | The customer's first name formatted as a proper first name. | | `lastName` | Last Name | The customer's last name formatted as a proper last name. | | `emailAddress` | Email Address | The customer's email address in a standard format (RFC 5321 / RFC 5322). | | `phoneNumber` | Phone Number | The customer's phone number with country code (digits + optional `+`). | | `callId` | Call ID | The identifier of the call. | > [!WARNING] > > `agentPhoneNumber` is empty on channels without a phone number, including Telegram and browser Test Chat. An API node does not execute when it references an empty required pre-call variable, so only use this variable in API nodes for channels that have a phone number. ### Built-in In-call Variables There are currently **no built-in in-call variables**. In-call variables are typically created per Pearl to match what you want to collect during the conversation. ### Built-in Post-call Variables | ID | Name | Description | | - | - | - | | `post_call_duration` | Call Duration | Duration of the call. | | `post_call_summary` | Call Summary | Summary generated after the call concludes. | | `post_call_transcript` | Call Transcript | Transcript of the call for reference. | | `post_call_call_time` | Call Time | Timestamp indicating when the call occurred. | | `post_call_recording` | Recording Link | Link to the call recording. | *** ## Where Variables Are Supported Only fields explicitly marked with: `🧩 May support variables` support the `{variableId}` syntax. Typical examples include: * Flow scripts (when enabled) * API endpoint URLs * API body values (when the body field is a string) * API response output paths (the **JSON Path** column of a Response Output Schema) — not labeled, see the note below * SMS / Email templates (depending on the action timing) * End-call notifications (supports post-call variables) > [!NOTE] > > Only fields that support variables will be labeled with `🧩 May support variables`. > If the field is not labeled, assume it is static-only. > > The one exception is the **JSON Path** column of an API action's Response Output Schema: it carries no label, but it does accept `{variableId}` placeholders. See [Using variables in API response output paths](#4-use-variables-in-api-response-output-paths). *** ## Using Variables in API Requests ### 1) Use variables inside scripts Example script snippet: ```text theme={null} Ask the caller for their address and store it in {customerAddress}. If {customerAddress} is empty, ask again politely. ``` *** ### 2) Use variables in API action endpoint URLs Example: ```text theme={null} https://example-crm.com/leads?phone={phoneNumber}&name={firstName} ``` *** ### 3) Use variables in API action body values (string) If a body field is a string value, it can include variables: ```json theme={null} { "key": "message", "type": "String", "value": "New call completed for {firstName} {lastName}." } ``` > [!NOTE] > > **API Body Exception (VariableId field)** > > When configuring an API action body, the `VariableId` property must contain the **raw variable ID without brackets**. > Example: use `firstName` (not `{firstName}`). > > This is a special case for the API body schema only. Everywhere else, variables are inserted using `{variableId}`. *** ### 4) Use variables in API response output paths The **JSON Path** column of a [Response Output Schema](/pages/api_action#path-syntax) accepts variables, so the value you extract can depend on what the conversation has already collected. Example path: ```text theme={null} collection[?(@.start_time startswith '{preferredDateIso}')][0].start_time ``` The placeholder is replaced with the variable's current value before the API response is read. *** ### 5) Use post-call variables in End-call notifications Example email body: ```text theme={null} Call ended for {firstName} {lastName}. Summary: {post_call_summary} Transcript: {post_call_transcript} Recording: {post_call_recording} Duration: {post_call_duration} ``` *** ## Best Practices * Use short, stable variable IDs (e.g., `customerAddress`, `membershipStatus`). * Treat built-in variable IDs as reserved keywords. * Use post-call variables only in end-call notifications. * Avoid defining variables you never reference in your flow. *** ## Quick Reference * **Syntax:** `{variableId}` * **Groups:** `PreCall` / `InCall` / `PostCall` * **Built-in InCall variables:** none * **Post-call variables:** available inside end-call notifications only # OAuth 2.0 Source: https://developers.nlpearl.ai/api-reference/oauth Give an integration its own credential: a client ID and secret, only the scopes you grant it, and a secret you can rotate on your own. > [!NOTE] > > Looking for the simpler scheme? An **API key** is one secret with full access > to your workspace, best for your own backend code - see [API Secret > Key](/api-reference/api_secret_key). ## Overview An **OAuth 2.0 app** is a credential with a client ID, a client secret you can rotate, and a set of scopes that decide exactly what it may reach. NLPearl implements the **client credentials** grant: the app authenticates with its own credentials and receives an access token limited to the scopes you granted it. There is no redirect, no login screen and no end user in the loop - it is machine-to-machine authentication. > [!NOTE] > > OAuth 2.0 apps and API keys both live on the **API Access** page of your > workspace settings. Creating either one requires an active subscription. *** ## Creating an OAuth 2.0 App **1. Open the API Access page** Click your **profile card** at the bottom-left corner of the sidebar, open **Settings**, then select **API Access** in the settings menu. You can also go there directly: [platform.nlpearl.ai/app/settings/api](https://platform.nlpearl.ai/app/settings/api). ![API Access page with the Create OAuth 2.0 App button](https://mintcdn.com/nlpearl/kZiBiXTKlMlzdUHM/images/dark_mode/oauth-api-access-page.png?fit=max\&auto=format\&n=kZiBiXTKlMlzdUHM\&q=85\&s=67cc470f7ac8b76c475d51f65d1e87d1) **2. Add OAuth 2.0 App** Click **Create OAuth 2.0 App**. The window that opens holds everything the app is made of: a **Name**, its **Client ID** and **Client Secret**, and the **Scopes** it is allowed to use. ![Create OAuth 2.0 App dialog](https://mintcdn.com/nlpearl/kZiBiXTKlMlzdUHM/images/dark_mode/oauth-create-app.png?fit=max\&auto=format\&n=kZiBiXTKlMlzdUHM\&q=85\&s=f71f55172129d5f617a01e5c2e3af766) **3. Name it and choose its scopes** Give it a name that identifies the integration. Then select its scopes, grouped under **Pearls**, **Account** and **Billing**. Grant the fewest the integration actually needs. **4. Copy the Client ID and Client Secret, then create** Both are already filled in, above the scopes - copy them and only then click **Create App**. > [!WARNING] > > **The client secret is shown once, in that window** - reopening the app later > shows only its first characters. Treat it as a password: keep it server-side, > never ship it in a browser, a mobile app or a public repository. If you lose > it or it leaks, [rotate it](#rotating-the-client-secret). *** ## Requesting an Access Token ```http theme={null} POST https://api.nlpearl.ai/oauth/token Content-Type: application/x-www-form-urlencoded ``` > [!NOTE] > > The token endpoint sits at the **root** of the API host. Unlike every other > Client API route, it is **not** under `/v2`. ### Request parameters | Parameter | Required | Description | | - | - | - | | `grant_type` | Yes | Must be `client_credentials`. No other grant type is supported. | | `client_id` | Yes | Your app's Client ID. | | `client_secret` | Yes | Your app's Client Secret. | | `scope` | No | Space-separated list of scopes to request. Omit it to receive every scope granted to the app. | Your credentials can be sent either in the request body or in an HTTP Basic header. Both methods are supported and issue the same token. > [tab] Credentials in the body > > Also known as `client_secret_post`. > > ```bash theme={null} > curl -X POST "https://api.nlpearl.ai/oauth/token" \ > -H "Content-Type: application/x-www-form-urlencoded" \ > -d "grant_type=client_credentials" \ > -d "client_id=6a6c72b69b39e6add21204e7" \ > -d "client_secret=YOUR_CLIENT_SECRET" > ``` > [tab] Basic authentication header > > Also known as `client_secret_basic`. The header value is `base64(client_id:client_secret)`. > > ```bash theme={null} > curl -X POST "https://api.nlpearl.ai/oauth/token" \ > -H "Content-Type: application/x-www-form-urlencoded" \ > -u "6a6c72b69b39e6add21204e7:YOUR_CLIENT_SECRET" \ > -d "grant_type=client_credentials" > ``` > [!WARNING] > > Send your credentials **one way or the other, never both**. A request carrying > a Basic header *and* a `client_secret` in the body is rejected with `400 > invalid_request`. ### Response ```json theme={null} { "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "scope": "pearls:read pearls:calls pearls:analytics" } ``` | Field | Description | | - | - | | `access_token` | The token to send on your API calls. | | `token_type` | Always `Bearer`. | | `expires_in` | Token lifetime in seconds - **3600**, one hour. | | `scope` | The scopes actually granted to this token. Read it to know what the token can do. | > [!NOTE] > > There is **no refresh token**. When a token expires, request a new one with > the same credentials. **Cache the token and reuse it** for its whole lifetime. > Do not request a new one on every API call. *** ## Calling the API Send the access token as a bearer token on any `/v2` endpoint: ```bash theme={null} curl -X GET "https://api.nlpearl.ai/v2/Pearl" \ -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..." ``` > [!NOTE] > > There is no `AccountId:` prefix here, unlike the [secret key > scheme](/api-reference/api_secret_key) - the workspace the token belongs to is > already part of the token. *** ## Scopes A scope is a permission. An app only reaches what its scopes allow; everything else is refused with `403`. The tables below map every checkbox in the **OAuth 2.0 App** window - grouped **Pearls**, **Account** and **Billing**, exactly as the platform groups them - to the scope string it produces in the token. ### Pearls | In the platform | Scope | What it reaches | | - | - | - | | View pearls | `pearls:read` | Listing Pearls, inbounds and campaigns, and reading one of them | | Create and edit, including access to PearlVibe | `pearls:write` | Creating and updating Pearls, conversation flows, voice and text settings, and the voice list | | Moderate activity status - Allow changing pearl status | `pearls:moderate` | Running and pausing a Pearl, resetting customer memory | | View analytics | `pearls:analytics` | Pearl, inbound and outbound analytics | | View and moderate leads | `pearls:leads` | Reading, adding, updating and deleting outbound leads | | View calls and post-call information | `pearls:calls` | Calls and recordings, placing and deleting calls, call requests | | Make stream calls through the API | `pearls:stream` | Starting [stream calls](/pages/stream/overview) | > [!NOTE] > > **Any Pearls scope also grants `pearls:read`.** Every integration needs to > list Pearls to resolve their ids, so selecting *View calls* alone still yields > `pearls:read pearls:calls` - you will see it in the token's `scope`. ### Account | In the platform | Scope | What it reaches | | - | - | - | | Manage phone numbers | `account:phone_numbers` | The account's phone numbers and text channels | | Manage users | `account:users` | The account's users | | Manage advanced settings - security, sessions, etc. | `account:advanced` | The account blacklist: search, add, remove | | View audit log | `account:audit_log` | The audit log | > [!NOTE] > > `GET /v2/Account/Voices` sits under `pearls:write`, not under an account > scope: the list of voices is part of building a Pearl. ### Billing | In the platform | Scope | What it reaches | | - | - | - | | Manage account billing | `account:billing` | Account information and credit balance - `GET /v2/Account` | ### Changing an app's scopes Open the app with the **edit** button, tick or untick scopes, then click **Save Scopes**. ![Edit OAuth 2.0 App scopes](https://mintcdn.com/nlpearl/kZiBiXTKlMlzdUHM/images/dark_mode/oauth-edit-scopes.png?fit=max\&auto=format\&n=kZiBiXTKlMlzdUHM\&q=85\&s=752bf452cbdc8e87f034fe469cdf9938) Scope changes apply to **newly issued tokens**. A token issued before the change keeps the scopes it was created with until it expires. *** ## Errors ### Token endpoint | Status | `error` | When | | - | - | - | | `400` | `invalid_request` | `grant_type` is missing, or credentials were sent in the Basic header **and** the body. | | `400` | `unsupported_grant_type` | `grant_type` is anything other than `client_credentials`. | | `400` | `invalid_scope` | A requested `scope` is not a known scope string, or is one the app was not granted. | | `401` | `invalid_client` | Unknown `client_id`, wrong `client_secret`, or the app was deleted. | | `405` | - | The endpoint only accepts `POST`. | Every error comes back as JSON: ```json theme={null} { "error": "invalid_client", "error_description": "Client authentication failed" } ``` ### API endpoints | Status | Meaning | | - | - | | `401` | The token is missing, malformed, or expired. Request a new token. | | `403` | The token is valid but **lacks the scope** this endpoint requires. | A `403` carries a challenge header and a machine-readable body: ```http theme={null} HTTP/1.1 403 Forbidden WWW-Authenticate: Bearer error="insufficient_scope", error_description="The token does not carry the scope required by this endpoint" ``` ```json theme={null} { "error": "insufficient_scope", "error_description": "The token does not carry the scope required by this endpoint" } ``` > [!WARNING] > > Handle `403` and `401` differently. A `401` means *get a new token*; a `403` > means *this app was never granted the scope* - requesting another token will > return the same result. Retrying a `403` in a loop will never succeed. *** ## Rotating the Client Secret Rotation replaces an app's secret without changing its Client ID, its scopes, or anything else about it. Use it when a secret may have been exposed, or as routine hygiene. **1. Open the app** On the **API Access** page, open the OAuth 2.0 app with the **edit** button. **2. Rotate the secret** Click the **rotate** button next to **Client Secret**. **3. Copy the new secret** The new secret replaces the masked one in the field - copy it before closing the window. > [!WARNING] > > The previous secret stops working as soon as you rotate. Every integration > using it must be updated with the new secret, or it will start receiving `401 > invalid_client`. Access tokens that were already issued stay valid until they expire - rotation blocks new tokens, it does not revoke the ones already in circulation. To cut an integration off immediately, delete the app with the **delete** button on the API Access page. *** ## Token Format and Discovery You do not need any of this to call the API, but it is there if your OAuth client expects it. Access tokens are **RS256-signed JWTs**. You can verify a token's signature against the public keys published in the JWKS below. | Claim | Value | | - | - | | `iss`, `aud` | Both `https://api.nlpearl.ai` | | `sub` | The **Client ID** of the app the token was issued to | | `account_id` | The **Account ID** of your workspace | | `scope` | The granted scopes, space separated | | `jti`, `iat`, `nbf`, `exp` | Token id, issued-at, not-before and expiry | | Endpoint | Purpose | | - | - | | [`https://api.nlpearl.ai/.well-known/oauth-authorization-server`](https://api.nlpearl.ai/.well-known/oauth-authorization-server) | Authorization server metadata: token endpoint, supported grant types and auth methods, full scope list. | | [`https://api.nlpearl.ai/.well-known/jwks.json`](https://api.nlpearl.ai/.well-known/jwks.json) | Public keys used to verify token signatures. | Both are public and require no authentication. # Get Account Source: https://developers.nlpearl.ai/api-reference/v1/account/get-account get /v1/Account Retrieves account details # Delete Calls Source: https://developers.nlpearl.ai/api-reference/v1/call/delete-call delete /v1/Call Deletes one or more calls. Without `purgeOption`, each call is fully deleted, recording included; with it, the calls are kept and only the parts flagged true are removed. The request is all or nothing: if any ID is invalid, already deleted, or belongs to a conversation still in progress (`conversationStatus` is `InQueue` or `OnGoing`), nothing is deleted or purged and the 400 lists every refused ID. # Get Call Source: https://developers.nlpearl.ai/api-reference/v1/call/get-call get /v1/Call/{callId} Retrieves all the information about a call # Get Analytics Source: https://developers.nlpearl.ai/api-reference/v1/inbound/get-analytics post /v1/Inbound/{inboundId}/Analytics Retrieves analytics data for a specific inbound campaign within a given date range. # Get Inbound Source: https://developers.nlpearl.ai/api-reference/v1/inbound/get-inbound get /v1/Inbound/{inboundId} Retrieves a specific inbound by its ID # Get Inbound Ongoing Calls Source: https://developers.nlpearl.ai/api-reference/v1/inbound/get-inbound-ongoing-calls get /v1/Inbound/{inboundId}/OngoingCalls Returns the number of active calls currently in progress and in queue for the specified inbound ID. # Get Inbounds Source: https://developers.nlpearl.ai/api-reference/v1/inbound/get-inbounds get /v1/Inbound Retrieves all inbounds # Search Calls Source: https://developers.nlpearl.ai/api-reference/v1/inbound/search-calls post /v1/Inbound/{inboundId}/Calls Retrieves the calls within a specific date range of inbound # Set Activity State Source: https://developers.nlpearl.ai/api-reference/v1/inbound/set-activity-state post /v1/Inbound/{inboundId}/Active Run or Pause a specific inbound # Add Lead Source: https://developers.nlpearl.ai/api-reference/v1/outbound/add-lead put /v1/Outbound/{outboundId}/Lead Adds a new lead to a specified outbound # Delete Leads Source: https://developers.nlpearl.ai/api-reference/v1/outbound/delete-leads delete /v1/Outbound/{outboundId}/Leads Permanently deletes one or more leads associated with a specific outbound campaign. Deleted leads are removed and cannot be restored. # Delete leads Via External Source: https://developers.nlpearl.ai/api-reference/v1/outbound/delete-leads-external-id delete /v1/Outbound/{outboundId}/Leads/External Permanently deletes one or more leads associated with a specific outbound campaign. Deleted leads are removed and cannot be restored. # Get Analytics Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-analytics post /v1/Outbound/{outboundId}/Analytics Retrieves analytics data for a specific outbound campaign within a given date range. # Get Call Request Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-call-request get /v1/Outbound/CallRequest/{requestId} Fetches detailed information about a specific API request identified by its unique requestId. # Get Lead Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-lead get /v1/Outbound/{outboundId}/Lead/{leadId} Retrieves details of a specific lead within a outbound # Get Lead via External ID Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-lead-via-external-id get /v1/Outbound/{outboundId}/Lead/External/{externalId} Retrieves details of a specific lead within an outbound # Get Lead via Phone Number Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-lead-via-phone-number get /v1/Outbound/{outboundId}/Lead/PhoneNumber/{phoneNumber} Retrieves details of a specific lead within an outbound via phone number # Get Outbound Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-outbound get /v1/Outbound/{outboundId} Retrieve a specific outbound by its ID # Get Outbounds Source: https://developers.nlpearl.ai/api-reference/v1/outbound/get-outbounds get /v1/Outbound Retreive all the Outbounds # Make Call Source: https://developers.nlpearl.ai/api-reference/v1/outbound/make-call post /v1/Outbound/{outboundId}/Call Initiates an outbound phone call associated with the specified outbound ID. The request body must contain the necessary details for making the call. Once initiated, the call will be routed to the first available agent. # Search Call Requests Source: https://developers.nlpearl.ai/api-reference/v1/outbound/search-call-requests post /v1/Outbound/{outboundId}/CallRequest Fetches a list of API call requests associated with a specific outbound identifier. The search criteria, such as filters or pagination options, should be provided in the request body. # Search Calls Source: https://developers.nlpearl.ai/api-reference/v1/outbound/search-calls post /v1/Outbound/{outboundId}/Calls Retrieves the calls within a specific date range for a given outbound # Search Leads Source: https://developers.nlpearl.ai/api-reference/v1/outbound/search-leads post /v1/Outbound/{outboundId}/Leads Retrieves the leads associated with a specific outbound # Set Activity State Source: https://developers.nlpearl.ai/api-reference/v1/outbound/set-activity-state post /v1/Outbound/{outboundId}/Active Activates or deactivates a specified outbound. To activate a text outbound on a WhatsApp channel, every opening sentence of its flow must match an approved WhatsApp template (case, spacing and punctuation are ignored): otherwise the outbound is not activated and the 400 names each opening sentence that has no template. Templates are managed from the platform, in Settings > Text Channels > WhatsApp. # Update Lead Source: https://developers.nlpearl.ai/api-reference/v1/outbound/update-lead put /v1/Outbound/{outboundId}/Lead/{leadId} Updates the details of an existing lead associated with a specific outbound campaign. # Reset Customer Memory Source: https://developers.nlpearl.ai/api-reference/v1/pearl/reset-memory put /v1/Pearl/{pearlId}/Memory/{phoneNumber}/Reset Resets stored memory associated with a specific customer's phone number for a given Pearl. # Add Phone Numbers To Blacklist Source: https://developers.nlpearl.ai/api-reference/v2/account/add-to-blacklist post /v2/Account/Blacklist Adds one or more phone numbers to the account blacklist. # Get Account Source: https://developers.nlpearl.ai/api-reference/v2/account/get-account get /v2/Account Retrieves account details # Get Users Source: https://developers.nlpearl.ai/api-reference/v2/account/get-account-users get /v2/Account/Users Retrieves the list of users for the account # Get Audit Log Source: https://developers.nlpearl.ai/api-reference/v2/account/get-audit-log post /v2/Account/AuditLog Retrieves the audit log of the account. The date range cannot exceed 90 days and a call returns at most 100 entries. Returns a flat list by default; set IsPaginate to true to receive a paginated result with the total count. # Remove Phone Numbers From Blacklist Source: https://developers.nlpearl.ai/api-reference/v2/account/remove-from-blacklist post /v2/Account/Blacklist/Remove Removes one or more phone numbers from the account blacklist. # Search Blacklist Source: https://developers.nlpearl.ai/api-reference/v2/account/search-blacklist post /v2/Account/Blacklist/Search Retrieves the paginated blacklist phone numbers of the account. # Delete Calls Source: https://developers.nlpearl.ai/api-reference/v2/call/delete-call delete /v2/Call Deletes one or more calls. Without `purgeOption`, each call is fully deleted, recording included; with it, the calls are kept and only the parts flagged true are removed. The request is all or nothing: if any ID is invalid, already deleted, or belongs to a conversation still in progress (`conversationStatus` is `InQueue` or `OnGoing`), nothing is deleted or purged and the 400 lists every refused ID. # Get Call Source: https://developers.nlpearl.ai/api-reference/v2/call/get-call get /v2/Call/{callId} Retrieves all the information about a call # Get Call Recording Source: https://developers.nlpearl.ai/api-reference/v2/call/get-recording get /v2/Recording/{clientId}/{pearlId}/{callId} Retrieves the audio recording for a specific call. If the client has public recordings enabled, the endpoint can be accessed anonymously; otherwise, a valid Authorization header matching the client is required. Recordings hosted on Twilio are returned as a permanent redirect, while recordings stored internally are transcoded from WAV and streamed back inline with range processing enabled for browser seeking. Pass codec=mp3 (default, audio/mpeg) or codec=ogg (Ogg Opus, audio/ogg) - mp3 is the default because Safari and every iOS browser do not reliably play Ogg Opus. Pass dualChannel=true to keep the caller/Pearl channel split; the default folds two-channel recordings to mono, which roughly halves the file size. # Hang Up Call Source: https://developers.nlpearl.ai/api-reference/v2/call/hangup-call post /v2/Call/{callId}/Hangup Ends a call that is in progress or waiting in the inbound queue, as the Hangup button of the platform does. Requires the `pearls:moderate` scope. - **A phone call** is hung up. - **A stream call nobody has connected to yet** is cancelled, and its agent is freed. Connecting with its token is then refused with `410`. - **A connected stream call** ends: its WebSocket receives `ended` with the reason `operator_hangup`, then closes. The call then gets its final status, like any other call. A call that has already ended, or a text conversation, is refused with a `400` that says why. # Add Lead Source: https://developers.nlpearl.ai/api-reference/v2/outbound/add-lead post /v2/Outbound/{pearlId}/Lead Adds a new lead to a specified outbound # Add Leads Source: https://developers.nlpearl.ai/api-reference/v2/outbound/add-leads post /v2/Outbound/{pearlId}/Leads/Add Adds new leads to a specified outbound # Delete Leads Source: https://developers.nlpearl.ai/api-reference/v2/outbound/delete-leads delete /v2/Outbound/{pearlId}/Leads Permanently deletes one or more leads associated with a specific outbound campaign. Deleted leads are removed and cannot be restored. # Delete leads Via External Source: https://developers.nlpearl.ai/api-reference/v2/outbound/delete-leads-external-id delete /v2/Outbound/{pearlId}/Leads/External Permanently deletes one or more leads associated with a specific outbound campaign. Deleted leads are removed and cannot be restored. # Get Lead Source: https://developers.nlpearl.ai/api-reference/v2/outbound/get-lead get /v2/Outbound/{pearlId}/Lead/{leadId} Retrieves details of a specific lead within a outbound # Get Lead Via External ID Source: https://developers.nlpearl.ai/api-reference/v2/outbound/get-lead-via-external-id get /v2/Outbound/{pearlId}/Lead/External/{externalId} Retrieves details of a specific lead within an outbound # Find Lead Via Phone Number Source: https://developers.nlpearl.ai/api-reference/v2/outbound/get-lead-via-phone-number get /v2/Outbound/{pearlId}/Lead/PhoneNumber/{phoneNumber} Retrieves details of a specific lead within an outbound via phone number # Search Leads Source: https://developers.nlpearl.ai/api-reference/v2/outbound/search-leads post /v2/Outbound/{pearlId}/Leads Retrieves the leads associated with a specific outbound # Update Lead Source: https://developers.nlpearl.ai/api-reference/v2/outbound/update-lead put /v2/Outbound/{pearlId}/Lead/{leadId} Updates the details of an existing lead associated with a specific outbound campaign. # Get Analytics Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-analytics post /v2/Pearl/{pearlId}/Analytics Retrieves analytics data for a specific Pearl within a given date range. # Get Calls Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-calls post /v2/Pearl/{pearlId}/Calls Retrieves the calls within a specific date range of a pearl # Get Calls Bulk Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-calls-bulk post /v2/Pearl/{pearlId}/Calls/Bulk Retrieves calls within a date range like Get Calls, but lets the caller opt into additional fields (transcript, collected info, summary, recording, sentiment, credits, ...) via the Fields property. Only the requested fields are returned. # Get Ongoing Calls Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-ongoing-calls get /v2/Pearl/{pearlId}/OngoingCalls Returns the number of active calls currently in progress for the specified Pearl. If the Pearl has inbound configurations, it also returns the number of calls currently in queue. # Get Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-pearl get /v2/Pearl/{pearlId} Retrieves a specific Pearl by its ID # Get Pearls Source: https://developers.nlpearl.ai/api-reference/v2/pearl/get-pearls get /v2/Pearl Retrieves all Pearls # Reset Customer Memory Source: https://developers.nlpearl.ai/api-reference/v2/pearl/reset-memory put /v2/Pearl/{pearlId}/ResetMemory Resets stored memory associated with a specific customer's phone number for a given Pearl. # Set Activity State Source: https://developers.nlpearl.ai/api-reference/v2/pearl/set-activity-state put /v2/Pearl/{pearlId}/Active Run or Pause a specific Pearl. To run an outbound text Pearl on a WhatsApp channel, every opening sentence of its flow must match an approved WhatsApp template (case, spacing and punctuation are ignored): otherwise the Pearl is not started and the 400 names each opening sentence that has no template. Templates are managed from the platform, in Settings > Text Channels > WhatsApp. Pausing a Pearl is never blocked by this check. # Create Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/add-pearl-flow post /v2/Pearl Creates a new Simple Pearl, driven by an opening sentence and a flow script. Provide exactly one channel: inbound settings OR outbound settings. The Pearl is created already published: the configuration you send becomes its live (published) version. To create a Pearl (node graph), use Create Voice Pearl or Create Text Pearl instead. # Create Text Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/add-text-pearl post /v2/Pearl/Text Creates a new text Pearl: the conversation is driven by a graph of nodes connected by transitions, and messages are exchanged over a text channel. Provide exactly one channel: inbound settings OR outbound settings, with the TextChannelId of the channel to use. To retrieve available text channels, use the Get Text Channels endpoint (GET /v2/Account/TextChannels). The Pearl is created already published: the configuration you send becomes its live (published) version. For more details, click [here](/api-reference/building_a_flow). # Create Voice Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/add-voice-pearl post /v2/Pearl/Voice Creates a new voice Pearl: the conversation is driven by a graph of nodes connected by transitions. The graph must contain one OpeningSentence node (or a PreCallAPI leading to one or two OpeningSentence nodes), one EndCall node, and every node must be reachable. Provide exactly one channel: inbound settings OR outbound settings. At least one agent voice is required; to retrieve available voices, use the Get Voices endpoint (GET /v2/Account/Voices). The Pearl is created already published: the configuration you send becomes its live (published) version. For more details, click [here](/api-reference/building_a_flow). # Get Pearl Credentials Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/get-pearl-credentials get /v2/Pearl/Credential/{pearlId} Retrieves the API credentials (Id and Name only) available to the specified Pearl. Use a returned Id as the CredentialId of an API action in the Pearl flow. # Get Pearl Settings Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/get-pearl-flow get /v2/Pearl/{pearlId}/Settings Retrieves the Settings for the specified Pearl. The shape of the response depends on the Pearl: the Pearl section is a Simple Pearl configuration (opening sentence + flow script) or a Pearl configuration (node graph), and the Inbound/Outbound section carries the voice or the text settings according to the AgentType field (1 = Voice, 2 = Text). AgentType also tells you which update endpoint to use: Update Pearl (Simple Pearl), Update Voice Pearl, or Update Text Pearl. # Update Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/update-pearl-flow put /v2/Pearl/{pearlId} Updates the configuration of a Simple Pearl (name, pearl settings and variables). The update applies to the published version of the Pearl: if several versions exist on the platform, only the currently published one is modified. For Pearls, use Update Voice Pearl or Update Text Pearl instead. # Update Inbound Settings Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/update-pearl-inbound put /v2/Pearl/{pearlId}/Settings/Inbound Updates the inbound settings for the specified Pearl. The update applies to the published version of the Pearl: if several versions exist on the platform, only the currently published one is modified. # Update Outbound Settings Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/update-pearl-outbound put /v2/Pearl/{pearlId}/Settings/Outbound Updates the outbound settings for the specified Pearl. The update applies to the published version of the Pearl: if several versions exist on the platform, only the currently published one is modified. # Update Text Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/update-text-pearl put /v2/Pearl/Text/{pearlId} Updates a text Pearl. Only the provided parts are updated: pearl replaces the whole conversation flow (send the complete node graph), inbound/outbound partially update the channel settings (only the fields present in the JSON are applied; when TextChannelId is omitted, the current channel is kept). Omitted parts are kept unchanged. The Pearl must be a text Pearl (AgentType = Text). The update applies to the published version of the Pearl: if several versions exist on the platform, only the currently published one is modified. On an outbound Pearl that is not paused, when the update replaces the flow or sets the outbound TextChannelId and the channel the Pearl will send on is WhatsApp, every opening sentence must match an approved WhatsApp template (case, spacing and punctuation are ignored): otherwise nothing is updated and the 400 names each opening sentence that has no template. A paused Pearl is checked when it is run. For more details, click [here](/api-reference/building_a_flow). # Update Voice Pearl Source: https://developers.nlpearl.ai/api-reference/v2/pearlFlow/update-voice-pearl put /v2/Pearl/Voice/{pearlId} Updates a voice Pearl. Only the provided parts are updated: pearl replaces the whole conversation flow (send the complete node graph), inbound/outbound partially update the channel settings (only the fields present in the JSON are applied). Omitted parts are kept unchanged. The Pearl must be a voice Pearl (AgentType = Voice). The update applies to the published version of the Pearl: if several versions exist on the platform, only the currently published one is modified. For more details, click [here](/api-reference/building_a_flow). # Get Phone Numbers Source: https://developers.nlpearl.ai/api-reference/v2/pearlSettings/get-phones get /v2/Account/PhoneNumbers Retrieves all active phone numbers of the account, with their type. A custom VoIP number also carries its inbound (`sipConfig`) and outbound (`sipTrunkConfig`) SIP configuration, passwords excluded. Use a returned `id` as the `phoneNumberId` of the Update Custom VoIP Number and Delete Phone Number endpoints. # Get Text Channels Source: https://developers.nlpearl.ai/api-reference/v2/pearlSettings/get-text-channels get /v2/Account/TextChannels Retrieves the text channels available on the account (for example SMS-capable numbers or WhatsApp accounts). Use a returned channelId as the TextChannelId of the inbound/outbound settings when creating or updating a text Pearl. # Get Voices Source: https://developers.nlpearl.ai/api-reference/v2/pearlSettings/get-voices get /v2/Account/Voices Retrieves the available voices grouped by language. # Create Custom VoIP Number Source: https://developers.nlpearl.ai/api-reference/v2/phoneNumber/create-custom-voip post /v2/PhoneNumber/CustomVoip Creates a custom VoIP phone number and, in the same call, optionally configures its inbound (`sipConfig`) and/or outbound (`sipTrunkConfig`). When an inbound configuration is provided, the generated SIP domain is returned in `sipConfig.domain`. A number that already exists as a custom VoIP number of the account is rejected with a 400 that gives its id. If the configuration fails, nothing is created and the call can be retried. # Delete Phone Number Source: https://developers.nlpearl.ai/api-reference/v2/phoneNumber/delete-phone-number delete /v2/PhoneNumber/{phoneNumberId} Deletes a phone number you brought to the account: a custom VoIP number, whose SIP resources are released, or a number imported from Twilio, which stays in your Twilio account. The number is removed from the live Pearls that use it: an outbound Pearl is paused, and an inbound Pearl is paused only when this was its last number. You receive an email listing the paused Pearls. A number purchased from NLPearl cannot be deleted through the API: delete it from the platform. The `phoneNumberId` is the `id` returned by Get Phone Numbers. # Import Twilio Phone Number Source: https://developers.nlpearl.ai/api-reference/v2/phoneNumber/import-twilio-phone-number post /v2/PhoneNumber/Twilio/Import Imports a phone number of your own Twilio account. Send in the body its number in E.164 format (for example `+14155550123`) with the same credentials as for listing the numbers: they are checked again, then kept on the imported number, which uses them for its own calls. A verified caller ID is imported for outbound calls only. A number already imported in your account is rejected with a 400 that gives its id. # List Twilio Phone Numbers Source: https://developers.nlpearl.ai/api-reference/v2/phoneNumber/list-twilio-phone-numbers post /v2/PhoneNumber/Twilio/List Lists the phone numbers of your own Twilio account that can be imported: its active numbers and its verified caller IDs. Send the credentials of that Twilio account in the body: `accountSid` and `authToken`, or `accountSid`, `apiKeySid` and the API Key Secret in `authToken`. They must have full access (Auth Token or Standard API Key, not a Restricted one) and are not stored. A number already imported in your account carries its `phoneNumberId`. # Update Custom VoIP Number Source: https://developers.nlpearl.ai/api-reference/v2/phoneNumber/update-custom-voip put /v2/PhoneNumber/CustomVoip/{phoneNumberId} Patches a custom VoIP phone number: only the fields present in the body are updated, the others are left untouched. A provided inbound (`sipConfig`) or outbound (`sipTrunkConfig`) configuration replaces the current one as a whole; setting it to null removes it and the direction is recomputed. Removing the inbound configuration while a live inbound Pearl uses the number, or the outbound configuration while any live Pearl uses it, is rejected with a 400 and nothing is changed. The `phoneNumberId` is the `id` returned by Get Phone Numbers. # Clone a Voice Source: https://developers.nlpearl.ai/api-reference/v2/speech/clone-voice post /v2/Speech/Clone Creates a private voice from a recording and adds it to your voices. # Text to Speech Source: https://developers.nlpearl.ai/api-reference/v2/speech/text-to-speech post /v2/Speech Generates speech from text with one of your voices and returns the whole clip in a single response. # Text to Speech (Streaming) Source: https://developers.nlpearl.ai/api-reference/v2/speech/text-to-speech-stream post /v2/Speech/Stream Generates speech from text with one of your voices and streams the audio as it is produced. # Create Stream Token Source: https://developers.nlpearl.ai/api-reference/v2/stream/create-token post /v2/Pearl/{pearlId}/Stream/Token The first step of a stream call: creates the call and returns the WebSocket `url`, a single-use `token` valid 60 seconds, and the audio format. Requires the `pearls:stream` scope. Then open `url?token=` within 60 seconds: [Stream WebSocket](/api-reference/v2/stream/websocket) describes the connection, the audio and the events. ## Errors A `400` lists its messages in `errors.validation`. Several `callData` problems are reported together. | Message in `errors.validation` | Cause | | --- | --- | | `Pearl not found` | `pearlId` is not a valid id, none of your Pearls has it, or the Pearl was deleted. | | `Stream calls are available for voice Pearls only.` | Your Pearl is a text Pearl. | | `The Pearl is not active.` | Your Pearl is paused. Activate it with [Set Activity State](/api-reference/v2/pearl/set-activity-state). | | `endUserId must not exceed 200 characters.` | `endUserId` is longer than 200 characters. | | `audioFormat 'X' is not supported. Valid: ulaw_8000, pcm_24000, opus_8000, opus_24000.` | `audioFormat` is not one of the four formats. | | `callData key cannot be null or whitespace.`
`callData key 'K' must not exceed 40 characters.`
`callData key 'K' contains invalid characters. Only letters, digits, underscores (_) and hyphens (-) are allowed.`
`callData value for key 'K' must not exceed 200 characters.` | A `callData` entry is invalid. | | `Missing pre-call variables: firstName, orderId.` | Required `callData` entries are absent or blank. | | `Call cannot be completed: The client has no remaining credits. Please recharge to continue.` | The account has no credits left. | | `Call cannot be completed: Account Suspended! Please contact support.` | The account is suspended. | | `The Pearl has no flow yet.`
`Invalid Conversation Flow` | Your Pearl has no usable flow. | | `The Pearl has no inbound settings.`
`The Pearl has no outbound settings.` | Your Pearl's direction settings are missing. | | `No agent is available for this Pearl right now, try again later.` | All your Pearl's [agents](/pages/agents) are busy, phone calls and stream calls together, or it has none. Retry later. | | `Could not start the call.` | An internal failure. The agent it reserved stays taken for about 90 seconds, so a retry may get `No agent is available…` until then. | Malformed JSON or a field of the wrong type (a number as `audioFormat`, for example) get the standard `400`, with the error under the field name. ## Agents and cancelling A successful create reserves one of your Pearl's [agents](/pages/agents) until the call ends. To cancel the call, before or during it, use [Hang Up Call](/api-reference/v2/call/hangup-call): a token that was never used is then refused, and its agent is freed. A token that is never used and never cancelled keeps the agent for about 90 seconds, and costs nothing. A create refused with `No agent is available…` or `Could not start the call.` still appears in the call history, as a call that never started. # Stream WebSocket Source: https://developers.nlpearl.ai/api-reference/v2/stream/websocket get /Stream/WebSocket The second step of a stream call. [Create Stream Token](/api-reference/v2/stream/create-token) returns the `url` and a `token`: open `url?token=`, for example `wss://agents.nlpearl.ai/Stream/WebSocket?token=wst_...`, within 60 seconds, and the conversation runs on this connection until the call ends. Always open the `url` that Create Stream Token returns rather than a fixed address. No subprotocol is needed. From a server you can send the token in the `Authorization: Bearer wst_...` header instead of the query. A browser does not show the status of a refused connection: the socket closes at once with code `1006`. ## Send Your app sends two kinds of messages: **binary** messages with the end user's audio, and **text** messages with JSON events. | Message | Kind | When | | --- | --- | --- | | Audio frame | Binary | Every 20 ms, from `ready` until the call ends | | `hangup` | Text (JSON) | To end the call | | `ping` | Text (JSON) | Optional, to time the round trip | ### Audio frames Send 20 ms of the end user's audio in each binary message, one message every 20 ms, from `ready` until the call ends. Keep sending while the end user is quiet or muted: send silence, not nothing. What one message holds depends on the call's `audioFormat`: | `audioFormat` | One message | | --- | --- | | `opus_24000`, `opus_8000` | One Opus packet, mono, encoded at the call's sample rate. Turn discontinuous transmission (DTX) off, so silence is encoded too. Packets of up to 120 ms are accepted. | | `ulaw_8000` | 160 bytes of μ-law: 160 samples. | | `pcm_24000` | 960 bytes of 16-bit little-endian PCM: 480 samples. | The raw formats also accept other frame lengths, as long as they hold whole samples. A message is at most 16 KB. Audio formats, below, gives each format's encoding, sample rate and silence. ### `hangup` Ends the call. Pearl answers with `ended` (`client_hangup`), then closes the connection. From your backend, [Hang Up Call](/api-reference/v2/call/hangup-call) ends it too. ```json { "type": "hangup" } ``` ### `ping` Optional. Pearl answers with `pong`, which echoes `t`, so you can time the round trip. `t` is any number you choose, such as your clock in milliseconds, and may be left out. ```json { "type": "ping", "t": 1730624400123 } ``` You never need `ping` to keep the call alive: any message, audio included, resets the 60-second `no_audio` timer. Pearl ignores unknown event types, and any text that is not a JSON object with a string `type`. ## Receive What Pearl sends: `ready` first, then audio and a `pong` for each of your pings, then at the end an optional `transfer` and one `ended`. ### `ready` Sent once, right after you connect. ```json { "type": "ready", "protocol": 1, "callId": "6720f3c1a8b4e5d6f7a8b9c0", "audio": { "encoding": "opus", "sampleRate": 24000, "channels": 1, "frameMs": 20 } } ``` - `protocol`: the protocol version, `1`. - `callId`: the call's id, as in the Create Stream Token response. - `audio`: the format of every binary message, in both directions: the same object as in the Create Stream Token response. ### Audio 20 ms of Pearl's voice, as a binary message, **every 20 ms for the whole call**, with silence while it listens. On an Opus call, each message is one 20 ms Opus packet. - Play the frames through a small jitter buffer of 60 to 100 ms. If it grows past about 300 ms, after a network stall, drop the oldest audio. - There is no "clear" or interruption event, and you need none: when the end user talks over Pearl, it stops speaking and the next frames are already silence. ### `pong` The answer to a `ping`, sent between two audio frames, within about 20 ms. `t` is the `t` of your `ping`, or `null` when it had none. A `ping` sent before the call's audio starts gets no answer. ```json { "type": "pong", "t": 1730624400123 } ``` ### `transfer` The flow's [Transfer Call](/pages/transfer_call) node transferred the call. It is sent once Pearl has finished its transfer announcement, and is followed at once by `ended` (`transfer`). Carrying the call on, to a person, a queue or a phone number, is up to you. ```json { "type": "transfer", "target": "+14155550123", "triggerDescription": "The caller asks for a human agent", "warmTransferMessage": "Dana is calling about order A-1234", "sipHeaders": {}, "variables": { "firstName": "Dana", "orderId": "A-1234" } } ``` - `target`: the destination set on your Pearl's transfer, as entered: usually a phone number or a SIP address. - `triggerDescription`: why the flow transferred. - `warmTransferMessage`: the warm-transfer message set for the receiving side, or `null`. - `sipHeaders`: SIP headers, only when the transfer is set to forward them. - `variables`: the data Pearl has collected so far, by variable name. ### `ended` The call is over. Pearl then closes the connection with code `1000` and the reason as the close description. `durationSec` is the whole seconds the call ran, from connection to end. ```json { "type": "ended", "reason": "agent_hangup", "durationSec": 94 } ``` | `reason` | Meaning | | --- | --- | | `client_hangup` | You sent `hangup`, closed the connection, or it dropped. | | `agent_hangup` | Pearl ended the call: end of the flow, its silence handling, and so on. | | `operator_hangup` | The call was hung up with [Hang Up Call](/api-reference/v2/call/hangup-call) or from the NLPearl platform. | | `transfer` | The flow transferred the call, right after `transfer`. | | `max_duration` | Your Pearl's maximum call duration was reached. | | `no_audio` | No message from you for 60 seconds. | | `error` | The call failed on NLPearl's side. | If you close the connection yourself, or it drops, nothing more arrives: the call is recorded as `client_hangup`. ## Audio formats `audioFormat`, chosen in Create Stream Token, sets the format of every frame, the same in both directions. The same format has a name in each place it appears: | `audioFormat` (Create Stream Token) | `audio.encoding` (response and `ready`) | Sample rate | Samples | One 20 ms frame | Silence | `audioQuality` (call history) | | --- | --- | --- | --- | --- | --- | --- | | `opus_24000` | `opus` | 24000 Hz | Opus, mono | One Opus packet, its size varies | Encoded silence | `hd` | | `opus_8000` | `opus` | 8000 Hz | Opus, mono | One Opus packet, its size varies | Encoded silence | `phone` | | `ulaw_8000` (default) | `mulaw` | 8000 Hz | G.711 μ-law, 8-bit, mono | 160 bytes | `0xFF` bytes | `phone` | | `pcm_24000` | `pcm_s16le` | 24000 Hz | Signed 16-bit PCM, little-endian, mono | 960 bytes (480 samples) | `0x00` bytes | `hd` | ## Limits | Item | Limit | | --- | --- | | Token | Single use, valid 60 seconds | | Connections per call | 1 | | Concurrent calls | Your Pearl's [agents](/pages/agents), shared with its phone calls. One is taken when the token is created. | | Call duration | Your Pearl's **Max Call Duration**, from 1 to 120 minutes; 30 minutes when it is not set. Reaching it ends the call with `max_duration`. | | Silence from your side | 60 seconds without any message ends the call with `no_audio` | | Message size | 16 KB | ## Versioning `ready.protocol` is `1`. New event types may be added within a version, which is why unknown types are ignored. A change to the frame format would raise the version. # Pearl Settings Source: https://developers.nlpearl.ai/pages/agent_customization ![Pearl Settings cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agent-customization-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=7a168801656df02b124d9d5de447a2d9) In this step, you can customize your voice agent's identity and behavior by setting its **name**, **language**, **voice**, **personality**, and **timezone**. *** ## Agent Names, Languages & Voices To define your agent's identity: * **(1) Agent Name** – Give your agent a name (e.g., *Joa*, *Victoria*). This name helps humanize the interaction and reflect your brand identity. * **(2) Language** – Select the default language your agent will speak. This ensures accurate pronunciation and localized expressions. * **(3) Voice** – Choose the voice that will represent your agent. You can preview voices and select the one that fits your tone. ![Agent Names, Languages & Voices section](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/voice-language-screen.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=ef7b8b1b7a6740a5936281a3642cef0a) You can set up your Pearl to support multiple languages by adding several agent configurations, each with its own **name**, **language**, and **voice**. When a caller asks to switch language mid-conversation, Pearl automatically reroutes the call to the agent for that language. The **first agent** you create is the **Default Agent** and always opens the conversation, unless another language is requested. You can add more agents directly in the table. > [!NOTE] > > Explore [Voice and Language](/pages/languages) to view all the language options available. *** ## Pearl Model The **Pearl Model** defines the intelligence, speed, and cost profile of your agent. Voice agents can choose from five models. ![Pearl Model selection in Pearl Settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/voice-language-screen-3.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=5fb665520c750e04cf3760e080529b90) | Model | Reasoning | Average latency | Cost | | - | - | - | - | | **Pearl Flame** | Medium | \~700 ms (fastest) | +1 credit/min | | **Pearl Hydra** | High | \~1,250 ms | +2 credits/min | | **Pearl Arrow** | Medium | \~850 ms | +2 credits/min | | **Pearl Trident** | Medium | \~1,250 ms | Standard Rate | | **Pearl Oyster** | Low | \~1,400 ms | -2 credits/min | > [!NOTE] > > Pearl Flame is available only for Pearls built with the PearlVibe editor. On a legacy simple Pearl, it appears greyed out in the model list. > [card] > > > [tab] Pearl Flame > > > > > [!NOTE] > > > > > > **Medium Reasoning · Fastest · +1 credit/min** > > > > Our fastest model, with stronger reasoning than Pearl Arrow, optimized for ultra-low latency. It is the default model of every voice Pearl built with PearlVibe. > > > > Use it when you need: > > > > * The snappiest real-time experience for callers, for only one extra credit per minute. > > > > * Natural, human-like conversations with solid reasoning. > > > > * Your main production Pearl for most inbound and outbound flows. > > > > > [!NOTE] > > > > > > In most cases, Pearl Flame is the recommended default for production. > > > [tab] Pearl Hydra > > > > > [!NOTE] > > > > > > **High Reasoning · Higher latency · +2 credits/min** > > > > Our smartest model, built for demanding use cases that require deeper reasoning, stronger understanding, and the highest-quality responses. > > > > Use it when you need: > > > > * The deepest reasoning for complex, multi-step conversations. > > * Maximum nuance and understanding on high-stakes or ambiguous calls. > > * The best possible answer quality, even if it means slightly higher latency. > > > [tab] Pearl Arrow > > > > > [!NOTE] > > > > > > **Medium Reasoning · Fast · +2 credits/min** > > > > Our low-latency model, offering the same reasoning level as Pearl Trident but optimized for ultra-low latency. > > > > Use it when you need: > > > > * A fast real-time experience on a legacy simple Pearl, where Pearl Flame is not available. > > * VIP lines or high-stakes calls where every second of silence matters. > > > [tab] Pearl Trident > > > > > [!NOTE] > > > > > > **Medium Reasoning · Standard Rate** > > > > Our standard model, reliable for most conversations and everyday use cases that require solid understanding and natural responses. > > > > Use it when you want: > > > > * A dependable model at the standard rate. > > * Everyday inbound and outbound flows where response speed is not critical. > > > [tab] Pearl Oyster > > > > > [!NOTE] > > > > > > **Low Reasoning · 2 credits cheaper/min** > > > > Our most cost-effective model for straightforward cases, prioritizing simplicity and efficiency. > > > > Use it when you need: > > > > * High-volume or bulk campaigns (e.g. reminders, notifications, simple surveys). > > * Flows with predictable, scripted logic and limited branching. > > * To minimize cost while maintaining a solid conversational baseline. **Choosing the right model for your Pearl** When selecting a model, consider three main dimensions: | Dimension | Recommendation | | - | - | | **Speed** | If the caller experience must feel instant (no awkward silences, rapid back-and-forth), prefer Pearl Flame, or Pearl Arrow on a legacy simple Pearl. Pearl Trident, Pearl Hydra, and Pearl Oyster respond with standard conversational latency. | | **Reasoning / intelligence** | For the most demanding use cases that need the deepest reasoning, choose Pearl Hydra. For complex qualification, multi-step troubleshooting, or situations where the agent needs to "think", Pearl Flame is a strong choice. For simple flows with clear scripts and few edge cases, Pearl Oyster is more than sufficient. | | **Cost** | Pearl Trident runs at the standard rate. Pearl Flame costs one extra credit per minute (+1 credit/min), Pearl Hydra and Pearl Arrow two (+2 credits/min). Pearl Oyster is cheaper per minute (–2 credits/min), ideal when cost per call is the main constraint. | > [!TIP] > > You can use different models for different Pearls depending on their role, volume, and business impact (for example: Hydra for the most complex high-stakes calls, Flame for main inbound and outbound support, Oyster for large reminder campaigns). > [!NOTE] > > Start with Pearl Flame as your default, then use Analytics to compare performance and cost. If you need deeper reasoning, move to Pearl Hydra; if you need to optimize budget for simple flows, switch to Pearl Oyster. *** ## Personality Your AI agent can take on a wide range of personalities, from natural and professional to wild, fictional, or downright iconic. ![Personality selection in Pearl Settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/voice-language-screen-1.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=42ca969f9a4a16798bf028e81aa2797b) > [!TIP] > > **Create your own personality.** You're not limited to the predefined list. Type any description in the **Personality** field and select **Use "\" as a custom personality** to define your own. > [!NOTE] > > Choose wisely. Your agent's personality will shape how it sounds and behaves in every interaction. Personality is optional, only **Agent Name** and **Timezone** are required. The personalities below are **examples** to give you a feel for the range available. The full list is loaded in the app and may evolve over time. | Personality Name | Description (vibe / reference) | | - | - | | Natural | Neutral and balanced, default tone. | | Friendly Consultant | Warm, helpful, and a touch conversational. | | Aggressive Closer | Direct, assertive, always aiming for a "yes." | | Donald Trump | Bold, confident, and controversial. | | Joe Biden | Soft-spoken, empathetic, with a hint of grandpa energy. | | Wolf of Wall Street | Energetic, persuasive, and money-focused. | | Elon Musk | Visionary, quirky, and matter-of-fact. | | Kevin Hart | Fast-talking and hilarious. | | The Rock | Charismatic and full of hype. | | Jar Jar Binks | Clumsy comic relief with a chaotic syntax. | | Yoda | Wise, reversed sentence order, it has. | | Tommy Shelby | Cold, calculated, Peaky Blinders style. | | Saul Goodman | Slick, legal hustler energy. | | Heisenberg (Walter White) | Dark, serious, calculated: "I am the danger." | | Jesse Pinkman | Street-smart, informal, frequent "yo." | | Optimus Prime | Heroic, formal, and noble. | | Megatron | Villainous and authoritarian. | | Son Goku | Cheerful and battle-ready. | | Daenerys Targaryen | Regal, determined, breaker of chains. | | Hermione Granger | Book-smart, precise, articulate. | | Mulan | Brave, focused, honorable. | | Lady Gaga | Glamorous and creatively intense. | | Tony Stark (Iron Man) | Witty, tech-savvy, and full of sarcasm. | | Elsa (Frozen) | Calm, regal, with an icy edge. | | Michael Scott (The Office) | Awkward, unpredictable, tries to be funny. | | Moana | Adventurous, optimistic, and kind. | | Frida Kahlo | Artistic, deep, and passionate. | | Jack Sparrow | Eccentric and unpredictable. | | Indiana Jones | Adventurous and confident. | | Beyoncé | Empowered, elegant, and commanding. | | Sherlock Holmes | Analytical, detached, brilliant. | | Tiana (The Princess & Frog) | Driven, grounded, and focused. | | Charlie Chaplin | Silent-era charm with expressive tone. | | Katniss Everdeen | Stoic, focused, and fiercely independent. | | Groot | Repetitive but expressive ("I am Groot"). | | Deadpool | Chaotic, irreverent, 4th-wall-breaking. | | The Joker | Unhinged, theatrical, and darkly funny. | | Loki | Mischievous, cunning, and charismatic. | | Bugs Bunny | Witty, cheeky, and playful. | | Pee-wee Herman | Eccentric and unpredictable. | | Dr. Evil | Satirical villain, comically ambitious. | | Borat Sagdiyev | Naive, awkward, hilariously inappropriate. | | Albert Einstein | Brilliant, theoretical, with quirky logic. | | Dorothy Gale | Innocent, curious, with wonder in her tone. | *** ## Timezone Define the timezone of the agent. This influences time-related actions, such as booking meetings. ![Timezone selection in Pearl Settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/voice-language-screen-2.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=4b46f3734393412e1aec68cdabd6fcfe) # Agents Source: https://developers.nlpearl.ai/pages/agents Agents are your capacity to handle voice calls and text conversations in NLPearl. Learn how they work and how to manage them. ![Agents cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=adcdaa59e4c1ace104f31821b97a7a3b) In NLPearl, **agents** are your capacity to handle activity. They power both your **voice calls** and your **text conversations** - the number of agents you have determines how much you can run at the same time. ## How agent capacity works > [!WARNING] > > An agent is a **virtual unit of capacity — not a person and not a specific Pearl.** Think of it as one "lane" of throughput that your whole workspace shares. The more agents you own, the more activity you can run in parallel. What a single agent unlocks depends on the channel: > [card] Voice calls > > Each agent handles **one call at a time**. With 5 agents, you can run **5 calls simultaneously** — a 6th call waits until one frees up. > > Phone calls and [Realtime API](/pages/realtime/overview) calls share the same agents. A Realtime API call that finds no free agent is **refused**, not queued. > [card] Text conversations > > Each agent adds **3 messages per minute** of throughput. With 10 agents, that's up to **30 messages per minute**, spread across all your open chats. > [!NOTE] > > **The key difference:** on **voice**, an agent limits how many calls run *at the same time* (concurrency). On **text**, an agent doesn't cap the number of open conversations — it sets how fast Pearl can reply *across all of them* (a message rate). Capacity scales linearly: 1 agent → 3 messages/minute, 10 agents → 30 messages/minute. > [!NOTE] > > Agents are shared at the **workspace** level. You buy them once, then allocate them to each inbound or outbound activity from the Pearl overview — so a busy campaign can use more lanes while a quieter one uses fewer. ## Set up agents for your activities Agents are managed at the **workspace** level from your Settings, then allocated to each Pearl from its overview page once published. **1. Open the Agent(s) settings** Click your **profile card** at the bottom-left of the sidebar, open **Settings**, then select the **Agent(s)** tab. This is where you purchase, review, and remove the agents in your workspace. ![Agent(s) tab in workspace Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-settings-tab.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=dd05c70ca02670c5f8935544e499fdbc) **2. Purchase agents** Use the **Purchase New Agent(s)** bar at the top: set the quantity, review the monthly price, and click **Purchase Agent(s)**. You're billed immediately (see [Subscription and billing](#subscription-and-billing)). > [!NOTE] > > Adding concurrent agents requires an **active paid subscription**. Extra agents can only be purchased on a paid plan. ![Purchase New Agent(s) bar in the Agent(s) settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-purchase-bar.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=32b6da1328b573f964915883be1734ac) **3. Review your agents** The list shows every agent in your workspace, with its creation date. ![List of agents in the workspace](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-list.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=c9a9e08a2ee8627fbc9b20b6cb8e474a) Agents that come with your subscription are flagged with an **Included in your plan** badge — these are free and can't be removed. ![Included in your plan badge on a plan agent](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-plan-badge.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=ee7facf04869c4c88641022b22b537f0) **4. Remove an agent** To remove an extra agent, click the red **trash** icon next to it. ![Remove an agent with the trash icon](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-remove.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=1ac58190576bdb67d5fdf64ef2bae75f) > [!NOTE] > > There are no pro-rata refunds — the agent stays active until the end of the period you've already paid for. > > **Example:** you remove an agent on the 5th, but your last renewal was on the 1st. The agent stays available until the end of that paid period (the 30th), and won't be billed again in the next cycle. **5. Allocate agents to a Pearl** After publishing your Pearl, open its overview page, open the **Settings** popover, and set the number of **Agent(s)** for that activity. Allocate 2 agents to a campaign and it handles 2 leads at a time. You can scale this up or down anytime. ![Allocate agents to a Pearl from its overview Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/agents-allocate-to-pearl.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=983b54947affbcebee06c8ccd930e8d7) ## Example > [card] > > The same number of agents translates differently on voice and text. Here's how a given allocation plays out: > > | Agents | Voice (simultaneous calls) | Text (messages / minute) | > | :-: | :-: | :-: | > | **2** | 2 calls at the same time | 6 messages / minute | > | **5** | 5 calls at the same time | 15 messages / minute | > | **10** | 10 calls at the same time | 30 messages / minute | > > For example, allocate **2 agents** to an outbound voice campaign and it dials **2 leads at the same time**; the same 2 agents on a text Pearl let it reply at up to **6 messages per minute** across all open chats. ## Subscription and billing Every plan includes a set number of agents at no extra cost - higher tiers include more. On an **active paid subscription**, you can add extra concurrent agents at any time to grow your capacity. Standard agents are billed at a flat monthly rate. Enterprise use and fine-tuned models cost more, depending on model complexity. See [Billing](/pages/billing) for current pricing. ### When you're billed When you purchase an agent, you're billed for it immediately, whatever point you're at in your billing cycle. On your renewal date, every additional agent renews automatically for the next period. > [!WARNING] > > Buying an agent shortly before your renewal date means two charges close together: one when you purchase, and one when everything renews. > > **Example** - your subscription renews on the 1st and you add an agent on the 29th. You're billed for it right away. On the 1st, the whole subscription (including that agent) renews, so it's billed again for the new period. You've effectively paid for two periods, and you keep the agent for the full duration of each. # Call Analytics Source: https://developers.nlpearl.ai/pages/analytics Track every campaign in real time: call outcomes, success and pickup rates, events, tags, sentiment, an activity heatmap, and costs — all from Pearl's automated conversations. ![Call Analytics dashboard overview](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/analytics-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=8d66a0f273b9e422e6c67b4fc7e3fc36) NLPearl gives you a detailed analytics dashboard for every campaign, so you can track performance, understand what Pearl is doing on your calls, and optimize your strategy as results come in. > [card] How this dashboard works > > Outbound campaigns (initiated by Pearl) surface more data, while inbound campaigns show a lighter set of insights. Every metric reflects Pearl's automated voice interactions, never human agents. > > Most cards follow the same layout: a **headline metric** at the top, a **Selected period** tag confirming the number matches the range you picked, and an **info** button (ⓘ) with a short explanation. Cards that include a chart plot that metric across the selected period. > [!NOTE] > > Running a **Pearl Text** agent? The same dashboard adapts its wording to chats — *Chat Status Breakdown*, *Average Chat Duration*, *Chats Heatmap*, and so on. ## The analytics toolbar A toolbar sits at the top of the dashboard. Use it to set the time range for every card and to export a report. ![Analytics toolbar showing the leads count, date range picker, and Print button](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-filter-bar.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=c83233b7bfa31c3c999eb3b630e188fc) The toolbar: active leads, date range, and the Print button. ### Choose your time range By default the dashboard shows the **last 30 days**. Open the date picker to jump to a preset — `Today`, `Yesterday`, `Last 7 days`, `This week`, `This month` — or set a custom **Start** and **End** date. Every card updates to match. ![Date range picker with quick presets and custom start and end fields](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-period-picker.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=953798db3e7e42a77b1772dc6cb9c536) Presets and a custom start/end range. ### Export a report Click **Print** to turn the current view into a shareable report. **1. Set your time range** Pick the period you want the report to cover. **2. Click Print** The button sits in the top-right of the toolbar. **3. Save as PDF** In your browser's print dialog, choose **Save as PDF** (or send it to a printer). The report is formatted for print — a light theme with one card per page. It adds a header with your project name and the selected period, and a footer with the generation date. ![Browser print dialog previewing the analytics report with the NLPearl header, per-card layout, and footer](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-print-report.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=7c51f4341e067f139b8626cb2969ee0c) Your browser's print dialog, with a preview of the formatted report — pick Save as PDF. ## Call Status Breakdown This card shows how your calls are distributed across their **final statuses**. The headline is your total number of calls for the period. ![Call Status Breakdown card with total calls, a distribution bar, status pills, and a trend chart](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-status-breakdown.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=daf058992a4b1c0d635c60ca4f98b074) The Call Status Breakdown card. **Each status is a segment of the distribution bar, sized by its share of the total.** The pills below the bar list every status with its call count. ![Horizontal distribution bar split into colored status segments with labeled pills](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-status-distribution.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=00835cf15812a8bb0a8a3f531c3eab65) Segment width equals each status's share of total calls. Statuses you'll see: | Status | Meaning | Availability | | - | - | - | | **Successful** | The call met the success condition you defined for the Pearl (a booking, a confirmation, and so on). | All | | **Unsuccessful** | The conversation happened, but the goal wasn't reached. | All | | **Completed** | An answered call with no success/failure verdict — shown when no success criteria is set for the Pearl. [Define one](/pages/pearl_analytics) to split these into Successful and Unsuccessful. | All | | **Need Retry** | Nobody picked up, so the lead will be retried per your retry settings. | Outbound | | **Voice Mail Left** | Pearl reached voicemail and left a message. | Outbound | | **Unreachable** | The lead couldn't be reached after every retry was exhausted. | Outbound | | **Error** | The call failed for a technical reason. | All | | **Other** | Any remaining calls that don't fit the above (for example, calls still in progress). Shown on the bar but not selectable. | All | > [!TIP] > > Select any status — on the bar or in its pill — to overlay that status's trend on the chart below. Hover a segment to see its exact count and percentage. ![Line chart showing selected call statuses trending over the selected period](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-status-timeline.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=7e829421c49b1b70e26532beb4b47a50) Selected statuses appear as trends over the period. On outbound campaigns, a toggle lets you switch the whole card between **All calls** and **Answered calls** (the calls a person actually picked up: Completed, Successful, and Unsuccessful). ![Toggle switching the Call Status Breakdown between All calls and Answered calls](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-status-answered.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=1e804e0b5b2563d84e80a5684c921341) Switch between all calls and answered calls. ## Average Call Duration The **average length of your calls**, measured from the moment the person picks up or starts interacting with Pearl. Useful to: * Detect drop-offs * Monitor engagement quality * Measure attention span ![Average Call Duration card with a headline duration and a trend chart](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-avg-duration.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=9a09bc4e876c162e2f31d4d6b324cdb9) ## Success Rate The **percentage of calls that met the success definition** you set for your Pearl — booking a meeting, confirming information, or anything else you defined as a success. The headline is your average success rate over the selected period, weighted by call volume. > [!TIP] > > Read Success Rate alongside Average Call Duration to gauge how efficient your conversations are. ![Success Rate card with an average percentage and a trend chart](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-success-rate.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=1d4d127976d5ea2244a3e033435ad3c7) > [!NOTE] > > The chart stays empty until you [define what success means](/pages/pearl_analytics) for your Pearl. ## Events **Events are the actions Pearl took during conversations.** The headline shows the total number of events and the average per answered call. ![Events card listing each action with its per-call rate and share of events](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-events.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=8ac46302eae4c38684a1ac5251b58f01) Each row breaks down one action three ways: * **Count** — how many times it occurred. * **Per call** — the average number of times per answered call. * **Share of events** — its portion of all events triggered. Tracked actions include: * **Message Taken** * **SMS Sent** * **Call Transferred** * **Calendar Booked** * **Email Sent** ## Tags **Tags are the Indicator Tags you defined when creating your Pearl** — labels like `Interested`, `Callback Requested`, or `Wrong Number` that Pearl applies automatically based on how each conversation goes. The headline highlights your most-used tag and its share of calls. ![Tags card showing each tag's color, count, and share of calls](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-tags.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=6e08b56d3bf763607c46764dfb15a8f8) Each tag shows its color, its count, and its **share of calls** — the percentage of calls it was applied to. > [!NOTE] > > Tags aren't just for display. You can filter campaigns by tag, trigger notifications, and use them to segment leads. Learn how to set them up in [Call Analytics — Indicator Tags](/pages/pearl_analytics). ## Calls Heatmap The heatmap shows **when calls happen** across the week — every cell is a day-and-hour slot, and brighter cells mean more activity. The headline calls out your busiest slot. Use it to find the best times to call (outbound) or to staff for demand (inbound). ![Weekly calls heatmap with a peak-time headline and a Less-to-More activity legend](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-heatmap.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=97750af7bb0e8693a1efdd08678f8820) Two controls let you adjust the view: * **Color** — toggle a color scale on or off. * **Timezone** — read the grid in the timezone that matters to you. ![Heatmap controls: a Color toggle and a timezone dropdown](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-heatmap-controls.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=9d0c035de053141c3e2224827704ee70) Color toggle and timezone selector. ## Pickup Rate > [!WARNING] > > Outbound only. The **percentage of outbound calls answered** by your contacts. The headline is your average pickup rate for the period. It tells you how reachable your audience is, so you can fine-tune your calling hours. ![Pickup Rate card with an average percentage and a trend chart](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-pickup-rate.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=8dd56fb70edec19041f636536787d878) ## Sentiment Analysis The **emotional tone of your conversations**, detected from customer responses across five levels. The headline names the dominant sentiment and its share of calls. * Negative * Slightly Negative * Neutral * Slightly Positive * Positive ![Sentiment Analysis card with a dominant sentiment and each level's share of calls](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-sentiment.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=aafde37a0881d8ef210d3c6c1d4fc31d) Each level lists its call count and share of calls, so you can watch satisfaction trends and adjust Pearl's tone. ## Costs Your **total and per-period call costs**, with a headline total and a trend over time — so you can see how usage affects your credit. ![Costs card with a total cost headline and a spend trend chart](https://mintcdn.com/nlpearl/sFsgt0aoOxcaDG4Z/images/dark_mode/analytics-costs.png?fit=max\&auto=format\&n=sFsgt0aoOxcaDG4Z\&q=85\&s=372ca16f0bca3751d3e6d7c35c391c47) > [!WARNING] > > This card only reflects costs deducted from your available credit. Calls covered by your included minutes aren't shown. ## Inbound vs Outbound | Feature | Inbound | Outbound | | - | - | - | | Call initiation | By the caller | By Pearl | | Call Status Breakdown | ✅ | ✅ *(adds Need Retry, Voice Mail Left, Unreachable)* | | All calls / Answered calls toggle | — | ✅ | | Pickup Rate | — | ✅ | | Duration, Success, Events, Tags, Sentiment, Heatmap, Costs | ✅ | ✅ | ## Summary With NLPearl Analytics you get full visibility into your campaigns' performance. Use these insights to fine-tune your strategy, lift your success and pickup rates, and optimize every conversation. # API Node Source: https://developers.nlpearl.ai/pages/api_action ![API node interface on light mode](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=9315a456fc5a28f88bcc7b8416a23e76) The **API node** runs an HTTP request automatically when the flow reaches it, letting your Pearl pull or push data from an external system. Depending on where you place it, it behaves in one of three ways: * **Pre-Call API**: runs once, before the conversation starts. * **In-Call API**: runs during the conversation, when the flow reaches the node. * **Post-Call API**: runs after the conversation ends, as a post-call action. The configuration form is the same in all three cases. Only the available variables, the response handling, and the transitions differ (see [Context Differences](#context-differences)). *** ## Adding an API Node | Context | Where to add it | | - | - | | **Pre-Call API** | On the **Start** node, choose **Pre Call API**. It is inserted between Start and the Opening Sentence, and runs before the call. | | **In-Call API** | Add an **API** node from the side toolbar (or the node picker under *Live Action Nodes*) and connect it where the request should run. | | **Post-Call API** | On the **Post-Call Actions** container (reached from an End Call transition), click **Add Action** and choose **API**. | *** ## Configuring the Request **1. Description** Explain what this API does and what data it returns (e.g. *"Fetches customer order history"*). Maximum **150 characters**. This helps Pearl understand when and how to use the action. ![API node description field](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-description.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=47845ce87a720876b28aafbba59ea87a) **2. URL & Method** Type the API endpoint URL and choose the **HTTP Method** (**GET**, **POST**, **PUT**, **DELETE**, or **PATCH**) depending on the API's requirements. Click **+** to insert a variable into the URL, limited to the variables available in the node's context (see [Context Differences](#context-differences)). ![API URL and method configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-url.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=23d972380e13615678154e654bf951e1) > [!NOTE] > > The available fields depend on the method: > > * The **Body** section is shown only for **POST**, **PUT**, and **PATCH** (hidden for GET and DELETE). > * The **Response Output Schema** is available for every method **except DELETE**. > [!NOTE] > > If your API is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). This applies to Pre-Call, In-Call, and Post-Call requests alike. **3. Headers** Add any header required by the API, such as `Content-Type` or `Authorization`. Header values are **static**. ![API headers configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-headers.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=5a5fd4845ccddde57fedb3130ff6d1b2) > [!NOTE] > > For a **dynamic authorization token**, use a [**Credential**](#credentials-authentication) instead of a static header. **4. Body (POST / PUT / PATCH)** Provide **Key / Value** pairs, sent as JSON. ![API body configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-body.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=6c489ee6ab681d99fe8c5a7a6fd3abc7) Each **Value** is either a **Variable** or a **Static & Custom** value. Static values support these types: | Type | Format | | - | - | | **Text** | String | | **Whole Number** | Integer | | **Decimal Number** | Float / double | | **Boolean** | `true` / `false` | | **Date** | Calendar date | | **Time** | Time of day | | **Date & Time** | Combined date and time | > [!NOTE] > > For each row you can toggle a **Required** checkbox: > > * **Checked**: Pearl prompts the customer for the value before sending the request if it hasn't been collected yet. > * **Unchecked**: the request is sent even if the value is missing; the key is simply omitted. When using a variable in the body, be aware that: * The platform **casts each variable to its configured data type** (e.g. Whole Number becomes an integer, Text is quoted as a string). A type mismatch may cause the API to reject the request. * You can mix static values and variables in the same body. * For nested JSON, use **dot notation** in the Key (`customer.address.street`) and **square brackets** for array indices (`order.items[0].productId`). See [Using Nested Objects](#using-nested-objects) below. A body value can also carry its own braces - a GraphQL query or a nested JSON fragment, for example. In an API node, only braces wrapping a valid variable ID are substituted; every other brace is sent as-is: * `{ {agentName} }` - the variable is replaced, the outer braces are kept. * `query { boards(ids: {agentName}) { id } }` - the variable is replaced, the rest of the query is left untouched. * `{ agentName }` - braces containing spaces around the ID are **not** recognized as a variable; the text is sent literally. ### Using Nested Objects Many APIs expect a **nested JSON structure** in their request body. Use dot notation and array indices in the **Key** column to build nested payloads while keeping them organised and readable. > [card] How to define nested keys > > * Use **dot notation** for properties (`customer.address.street`) > > * Use **square brackets** for array indices (`order.items[0].productId`) > > > [!NOTE] > > > > You can pair nested paths with any variable type: Text, Number, Boolean, etc. > > Mapping table: > > | API key | Variable | > | - | - | > | `customer.name` | `customerName` | > | `customer.email` | `customerEmail` | > | `customer.address.street` | `street` | > | `customer.address.city` | `city` | > | `order.items[0].productId` | `productId` | > | `order.items[0].quantity` | `quantity` | > > Resulting body: > > ```json body.json theme={null} > { > "customer": { > "name": "{customerName}", > "email": "{customerEmail}", > "address": { > "street": "{street}", > "city": "{city}" > } > }, > "order": { > "items": [ > { > "productId": "{productId}", > "quantity": "{quantity}" > } > ] > } > } > ``` *** ## Response Output Schema & Variable Assignment > [!WARNING] > > API responses are capped at **10,000 characters**. Anything longer is automatically truncated. Available for every method **except DELETE**. The **Response Output Schema** lets you filter the API response so only the relevant data flows back into the conversation. Without filtering, the entire JSON is returned, which can reduce precision because the AI receives too much unrelated information. Even for small responses, setting a schema is strongly recommended to keep Pearl focused. Each row of the schema has three parts: | Column | Description | | - | - | | **Required** (checkbox) | Mark the path as mandatory for the action. | | **JSON Path** | The path to extract from the response. | | **Variable to Assign** | Store the extracted value in a variable. **Required for Pre-Call**, optional otherwise. | ![API response output schema configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-response-output-schema.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=03e45995d9650e207c8c1f7ef1216193) ### How it works * Provide a list of **JSON Path** strings, one per row. * The system extracts only those paths from the API response; everything else is discarded. ### Path syntax A path walks down the API response to the value you want. The simplest form is a chain of keys, and it covers most responses: | Path | What it returns | | - | - | | `customer.email` | The `email` property inside `customer`. | | `items[0].id` | The `id` of the first entry in `items`. | A path can also **choose**, which is what you need as soon as an API answers with a list and you only want one entry out of it: | Path | What it returns | | - | - | | `collection[?(@.status == 'available')][0].start_time` | The `start_time` of the first entry whose `status` is `available` — a filter, then the first match. | | `items[-1].id` | The `id` of the last entry. Negative indices count from the end. | | `items[0:3]` | The first three entries — a slice. | | `..email` | Every `email` found anywhere in the response, at any depth. | A slice or a recursive `..` search can match several values at once. Assign one of those to a variable and the variable has to allow multiple values — see **Assigning to a variable** below. > [!NOTE] > > These are not the same as the paths in the **Key** column of the request body. There, `order.items[0].productId` **builds** a nested payload. Here, the same shape **reads** a value out of the response. > [card] > > ### Using a variable inside a path > > A path can carry a `{variableId}` placeholder — the same syntax used everywhere else (see [Flow Variables](/api-reference/flow_variables)). It is replaced with the variable's current value before the response is read, so the path can depend on what the conversation has collected: > > ```text theme={null} > collection[?(@.start_time startswith '{preferredDateIso}')][0].start_time > ``` > > If the caller asked for a particular day and it was collected into `preferredDateIso`, that path returns the first slot on that day. > [!TIP] > > Use a filtered path whenever the API returns a list and you only want one entry from it. A calendar call is the usual case: without a filter, you map slot 1, slot 2 and slot 3 into separate variables and let the agent pick between them. With one filtered path, the platform hands it exactly the first free slot on the day the caller asked for. > [!TIP] > > Benefits: > > * Keeps the response size small > * Improves the quality and relevance of AI outputs > * Prevents hitting the 10,000-character truncation limit > * Ensures only the necessary fields are carried into the next steps of the conversation > [card] > > ### Assigning to a variable > > Key things to know: > > * **The variable's type must match the data type returned by the API at that path.** > > * If the value returned is a list, make sure the variable is configured to **allow multiple values**. > > * A variable can store up to **2,000 characters**. Any data beyond this limit is **truncated**. > > > [!NOTE] > > > > Outside of Pre-Call APIs, assigning a variable is optional. If you don't assign one, the filtered JSON is still available for the conversation's internal logic, but it won't be stored for later reuse. *** ## Credentials (Authentication) If your API requires authentication, create a **Credential** on the platform, then enable the **Credentials** toggle in the API node and select it from the **Token** dropdown (use **Add New** to create one, **Edit** to update it). Leave the toggle off if no authentication is needed. ![API credentials toggle and token selection](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-credential-toggle.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=52183ab02f33bb33b8b690150d35b35b) **Supported credential types** (chosen from the **Type** dropdown when creating a credential): | Type | Description | | - | - | | **Api Key** | Injected in a **Header** or **Query** parameter | | **Basic Auth** | Username + password | | **Bearer** | A static bearer token | | **Custom Api Key** | Custom headers / query params / body | | **Refresh Token** | The platform fetches and refreshes a token automatically | > [!NOTE] > > **OAuth2** providers are connected through [**Integrations**](/pages/pearl_vibe), not created manually in this form. > [!TIP] > > Why use a Credential? > > * Avoid hardcoding tokens manually in every API node > * Automatically refresh tokens based on their TTL (time-to-live) > * Centralized management when multiple API nodes reuse the same token > * No need to parse token responses manually, the platform extracts the token for you ### Configuring a Refresh Token credential **1. Open the Credential Manager** Open the **Credential Manager** from the icon at the top of the Flow Editor header. ![Credential Manager access in the Flow Editor header](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-credential-1.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=ab0b78e1cdf297371c3b0cbbf96ff17f) **2. Add a new credential** In the **Credentials Manager**, click **+ Add** to create a new credential. ![Add a new credential in the Credentials Manager](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-credential-2.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=d71edf3215d4b8f46ff65779515b88f0) **3. Choose how to add it** You can either pick a ready-made **integration** from the list (Google, Microsoft, Slack, HubSpot, Salesforce, Zoho, and more) to connect through its guided flow, or click **Add Manually** to configure a custom credential such as a **Refresh Token**. ![Choose an integration or add a credential manually](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-credential-3.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=0694f23aafe2d3b3f1041ac824d0afe8) **4. Fill in the credential details** If you chose **Add Manually**, enter a **Name** (a label to identify it later) and select a **Type**. The form updates to show the fields specific to the selected type. ![Manual credential form with name, type, and type-specific fields](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-credential-4.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=f4dbc4e34b5f8414b2b1cbd842a67e08) > [card] Example: Refresh Token fields > > | Field | Description | > | - | - | > | **Access Token URL** | The method and endpoint used to request the token, with optional **Headers**, **Query Params**, and **Body** (e.g. `grant_type`, `client_id`, `client_secret`). | > | **Token Path** | JSON path to locate the token in the response (e.g. `data.access_token`). | > | **TTL (sec)** | Token time-to-live (minimum **100**). | > | **Header Key** | Name of the header where the token is injected (e.g. `Authorization`). | > | **Header Prefix** | Optional prefix for the token (e.g. `Bearer`). | > | **Secured Variables** | Sensitive key/value pairs reused across requests. | **5. Test the Credential** Use **Test Credentials** to call the token endpoint and preview the JSON response, confirming your configuration retrieves the token successfully before saving. > [card] > > ### How the Credential is used > > Once saved, select this Credential from the **Token** dropdown in any API node. When selected: > > * The platform automatically adds the token to the request header, using the configured **Header Key** and optional **Header Prefix**. > > * The token is refreshed automatically when it expires, based on the configured **TTL**. > > > [!WARNING] > > > > Make sure the **Token Path** matches the exact location of the token in the JSON response. If the platform can't find the token at this path, the Credential will fail. *** ## Context Differences The same API node behaves differently depending on where you place it in the flow. | Aspect | Pre-Call API | In-Call API | Post-Call API | | - | - | - | - | | **When it runs** | Before the call | During the call | After the call | | **Available variables** | Pre-Call only | Pre-Call + In-Call | Pre-Call + In-Call + Post-Call | | **Assign response to variable** | Required | Optional | Optional | | **Transitions** | Success (+ optional Not Success) | Continue / conditional | None | | **Can duplicate** | No | Yes | — | > [tab] Pre-Call API > > Runs **once before the conversation begins**. Typical uses: > > * **Inbound**: look up the caller using the auto-captured **phone number** and **call id**. > > * **Outbound**: preload data from Pre-Call variables already stored on the lead. > > > [!NOTE] > > > > Only **Pre-Call variables** are available (system variables like phone number, call id, first/last name, email, plus your own Pre-Call variables). > > * **Assigning response values to variables is required**, that's how pre-call data becomes usable in the conversation. All required variables must be returned for the node to take the **Success** path. > * **Transitions**: a **Success** branch by default. Enable **On Error Transition** (in the Transitions tab) to add a **Not Success** branch for failed requests. > * Pre-Call API nodes **cannot be duplicated**. > [tab] In-Call API > > Runs **when the flow reaches the node during the conversation**. > > * Both **Pre-Call** and **In-Call** variables are available. > * After it runs, the flow follows the **Continue** transition (or your conditional transitions). > * Assigning response values to variables is optional but recommended for reuse later in the flow. > [tab] Post-Call API > > Runs **after the call**, as part of the **Post-Call Actions**. > > * All variable groups are available, including **Post-Call** variables (call time, summary, recording, duration, transcript). > * Post-Call actions have **no transitions**. *** ## Testing Your API Use the **Test API** panel below the form: ![Test API panel](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/api-action-test.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=a440ef191affb74ce4fe02c68f497a82) **1. Assign Test Values** Give sample values to every variable used in the request. **2. Send** Click **Send** to run the request. **3. Inspect** Review the raw response, the filtered response (if an Output Schema is set), and any variables populated from it. > [!TIP] > > Use **Expand** to open a full-screen view with the request and response side by side. Test and perfect your setup before putting the Pearl in production. *** > [card] [Variables](/pages/variables) > > Learn how to create and use variables inside API nodes. # Billing Source: https://developers.nlpearl.ai/pages/billing Learn how to manage your billing settings, subscriptions, and invoices on the NLPearl.AI platform. ![Billing cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/billing-cover.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=e86e213fdf5c67ea81cd5efdd79673a0) *** ## Billing Management The **Billing** page is your central place to manage everything related to payments on NLPearl.AI. From here you can choose or change your subscription plan, manage your payment methods, view and download invoices, and configure auto-recharge to keep your activities running without interruption. > [!NOTE] > > Billing changes are managed directly on the platform. Make sure you have the right permissions on your workspace to update subscriptions or payment methods. *** ## Subscription Management From the Billing page, you can select the subscription plan that best fits your needs, or change your current one at any time. > [card] Upgrading > > Upgrades take effect **immediately**, giving you access to additional features and resources right away. > [card] Downgrading > > Downgrades take effect at the **end of your current billing period**, on the anniversary date of your current plan. To downgrade, click **Downgrade** on the plan you want. No payment is needed: tell us why you're downgrading, then confirm. **Nothing is charged today** — your current plan stays active until its renewal date, when the new plan takes over. *** ## Payment Methods Enter and manage your credit card details directly from the Billing page. Keeping a valid payment method on file ensures your payments are processed smoothly and your subscription stays active. ![Payment method on the Billing page](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/billing-payment-method.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=991f71ed3de589009a12bf70b8bf99ab) > [!NOTE] > > You can update or replace your card at any time. The new payment method is used for your next charge. *** ## Invoices Access your full billing history from the Billing page. Every invoice is available to **view and download** for your records and accounting needs. The name, email, and address printed on your invoices come from your **Billing Details**: **Invoice Name**, **Invoice Email**, and **Billing Address**. The Invoice Email is pre-filled with your login email until you change it. Invoices and receipts themselves are sent to the workspace **Billing Email** (see [Users & Workspaces](/pages/users_workspaces)). ![Invoices list on the Billing page](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/billing-invoices.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=18986067fb300a5bbae0231b8d8bfbaf) *** ## Credits Credits fund your activities on NLPearl.AI. From the **Credits** tab of the **Subscription & Payment** page, you can top up your balance in two ways: buy credits instantly, or set up auto-recharge so your balance is replenished automatically. ### Buy credits instantly Purchase a credit amount that is added to your balance **immediately**. Use this for a one-time top-up or to get started right away. ![Buy credits instantly on the Subscription & Payment page](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/billing-buy-credits.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=9e32d8d74162fa1393678479d8a2e0f9) ### Auto-recharge Auto-recharge keeps your balance topped up automatically so your activities never stop because of an insufficient balance. **1. Enable auto-recharge** Turn on auto-recharge from the Credits tab. **2. Set your threshold** Define the balance level that triggers a recharge. **3. Set your target balance** Choose the amount your balance is recharged to whenever it falls below the threshold. ![Auto-recharge settings on the Subscription & Payment page](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/billing-auto-recharge.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=85afefea91c62fa9e2a4844c5ed198d4) > [!WARNING] > > We strongly recommend enabling auto-recharge. Without it, your calls and conversations stop as soon as your balance runs out. *** ## Next steps > [card] [Subscription Plans](https://nlpearl.ai/pricing/) > > Compare the different subscription plans and choose the best one for your needs. # Phone Number Blacklist Source: https://developers.nlpearl.ai/pages/blacklist ![Phone Number Blacklist cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=d580ca4242f658625b8a77f6002b14b1) *** The **Blacklist** feature enables you to restrict specific phone numbers or entire prefixes from engaging in inbound or outbound calls with your AI agent campaigns. Utilizing this feature helps enhance campaign efficiency and ensures communication efforts remain focused and relevant. > [!TIP] > > ### Benefits > > * Prevent unwanted calls from specific numbers or number prefixes. > * Enhance operational efficiency by avoiding irrelevant interactions. > * Monitor and track blacklisted number activities clearly within your campaigns. *** ### Accessing the Blacklist The Blacklist lives in your **Settings**. Click your **profile card** at the bottom-left corner of the sidebar, then select **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) From the left menu, select **Blacklist** under the *Workspace* section. ![Blacklist tab in the Workspace settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-tab.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=34f0ba9f9f647905ce595cf3d2d58b54) *** ### Adding a Number to the Blacklist **1. Open the Add dialog** In the **Add Blacklisted Phone Number** bar at the top, click **Add Phone Number**. ![Add Blacklisted Phone Number bar](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-add-bar.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=899af9986300b0f234741db6f0fff0c3) **2. Enter the number and confirm** In the **Phone Number Blacklist** dialog, type the phone number you want to block (e.g., `+1 408 XXX XXXX`), then click **Add Phone Number**. ![Phone Number Blacklist dialog to enter a number](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-add-dialog.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=f79e5ebb77ab42e13170d824954512d4) > [!NOTE] > > You can also block an entire **prefix** (e.g., `+33`). Every number beginning with that prefix (`+33123456789`, `+33456789012`, etc.) is then blocked from both receiving and making calls. > [!TIP] > > Need to block many numbers at once? You can **add them in bulk** instead of entering them one by one — paste or import a whole list in a single action. *** ### Managing Blacklisted Numbers All blocked numbers appear under **Blacklisted Phone Numbers**, with a counter showing how many are stored. ![List of blacklisted phone numbers](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-list.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=fb91b52069c256447e5978fcf396040f) **Search** — use the search field at the top right to quickly find a specific number in a long list. ![Search field in the blacklist](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-search.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=2933c3ef021a4322746ecb9b8753b0d3) **Remove** — click the red trash icon on a row to remove that number from the blacklist. ![Remove a number from the blacklist with the trash icon](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-remove.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=d8f6e292045a8299d47cf43964875cdc) *** ### Monitoring Blacklisted Numbers in Campaigns * Blacklisted numbers will appear with a `Blacklisted` label in your campaign interface. * Track attempted interactions involving blacklisted numbers, whether inbound calls to your campaigns or outbound calls initiated by your AI agent. ![Blacklisted label on a call in a Pearl's Calls list](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/blacklist-call-label.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=918318dc5f40e80e0ec3ecd047796bb2) Leveraging the blacklist feature ensures your campaigns remain targeted, effective, and free from unwanted communication. # Custom VoIP Integration Source: https://developers.nlpearl.ai/pages/custom_voip Learn how to integrate your own VoIP service with NLPearl.AI. ![Custom VoIP Integration cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=de77cae40715df9748c4490bc14be274) Integrate your own VoIP service with NLPearl to use your existing phone numbers for inbound and outbound calls. This flexibility allows you to leverage your current VoIP infrastructure while benefiting from NLPearl.AI’s advanced features. *** ### How to Integrate Your Custom VoIP Service To integrate your custom VoIP service, follow these steps: **1. Go to Phone Numbers Settings** Start by clicking your **profile card** at the bottom-left corner of the sidebar, then open **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) From there, open the **Phone Numbers** tab to manage the numbers linked to your account. ![Phone Numbers tab in Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-phone-number-in-settings.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=24c047eabb48b8ff854c0e7e56bfb678) **2. Click on Custom VoIP** In the **Phone Numbers** tab, locate the **Custom VoIP** row and click **Add Custom VoIP** to start setting up your own provider. ![Add Custom VoIP from the Phone Numbers settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-choose.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=4b9e2bc0165de65846eef21725cf267a) **3. Add Phone Number** Enter the phone number you want to associate with this custom VoIP configuration. > [!NOTE] > > Enter it in **E.164 format** (digits only, with an optional leading `+`). This label is mainly for display (DID number, extension, etc.) and doesn't have to be a routable number, but it must be numeric. ![Enter the phone number for your custom VoIP configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-enter-phone-number.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=035aeb60015bf3540d929935cfa7d549) **4. Configure Inbound and/or Outbound** After adding the number, you land on a setup screen with two cards — **Inbound Configuration** and **Outbound Configuration** — each showing a **Configured** / **Not Configured** badge. Configure the direction(s) you need (one or both), then click **Finish Setup**. ![Choose to configure inbound and/or outbound](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-choose-inbound-outbound.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=0ba52b45289f2f68ac159fe0782582b7) **5. Configure Your VoIP Settings** > [card] > > ### Inbound Configuration Settings > > **1. TLS (SRTP) Encryption** > > Secures your VoIP traffic by encrypting both the signaling (via TLS) and media (via SRTP). Activate this toggle **only** if your VoIP provider requires it. > > > [!TIP] > > > > **When to Enable It:** > > > > * Your SIP provider specifically mentions TLS or SRTP support. > > * You want to ensure secure, encrypted voice communication (e.g., for compliance or privacy reasons). > > > > **When to Leave It Off:** > > > > * Your provider doesn’t support TLS/SRTP, enabling it may block calls or cause failed connections. > > * You’re using basic test environments or local SIP servers without encryption. > > ![Inbound TLS (SRTP) encryption toggle](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-inbound-tls.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=ac874412daa9bea73fd2f5dcff5a860c) > > **2. Authentication Methods** > > > [!NOTE] > > > > Inbound calls require an authentication method. Choose **one**: **IP Address** or **Credentials** — the two cannot be combined. A new inbound configuration starts on **Credentials**. > > **IP Address Authentication:** > > Allow traffic from specific IP addresses, ideal if your VoIP infrastructure has a static IP. > > IP Address: > Enter the public IP address(es) of your SIP servers so we can accept and process requests from them. Use **IPv4** addresses only, without leading zeros, and no duplicates — up to **100** addresses. > > ![Inbound IP-based authentication](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-inbound-ip-auth.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=195463e3ad5d304a288e01067dda8ca2) > > *** > > **Credentials Authentication:** > > Use a username and password to authenticate each incoming SIP request. > > NLPearl proposes a username and a password for you. Keep them, edit them, or click **Regenerate** for a new pair. > > Username: 2–32 characters, letters and digits only. \\ > > Password: At least 12 characters, with at least one uppercase letter, one lowercase letter, and one digit. Letters and digits only — **special characters are not allowed**. > > > [!TIP] > > > > This method is useful if your infrastructure is cloud-based and IPs can change, or you want multi-tenant control. > > ![Inbound credential-based authentication](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-inbound-credential-auth.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=a511ae12ab2ff651e939c42ab3e6100b) > > **3. Copy Your SIP Domain** > > NLPearl generates a **SIP Domain** for this number as soon as you add it. This is what tells your provider where to send incoming calls so they reach the platform. > > > [!NOTE] > > > > The SIP Domain isn't something you type. It's created automatically and shown **read-only** at the top of the **Inbound Configuration** card, with a **Copy** button. > > ![SIP Domain shown read-only with a Copy button in the Inbound Configuration](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-inbound-sip-domain.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=6f602626c50d5e2b8354ee0fdc67933b) > > > [!WARNING] > > > > **To finish connecting inbound calls:** > > > > 1. Copy the generated **SIP Domain** from the **Inbound Configuration** card. > > 2. Add it to your VoIP provider / PBX as the **destination for inbound calls**, so your operator routes incoming calls to NLPearl. > > 3. If you chose **Credentials Authentication**, also add the **username and password** set here to your VoIP settings so authentication succeeds. > > 4. Save the inbound configuration. *** > [card] > > ### Outbound Configuration Settings > > **1. TLS (SRTP) Encryption** > > Secures your VoIP traffic by encrypting both the signaling (via TLS) and media (via SRTP). Activate this toggle **only** if your VoIP provider requires it. > > > [!TIP] > > > > **When to Enable It:** > > > > * Your SIP provider specifically mentions TLS or SRTP support. > > * You want to ensure secure, encrypted voice communication (e.g., for compliance or privacy reasons). > > > > **When to Leave It Off:** > > > > * Your provider doesn’t support TLS/SRTP, enabling it may block calls or cause failed connections. > > * You’re using basic test environments or local SIP servers without encryption. > > ![Outbound TLS (SRTP) encryption toggle](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-tls.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=4a1aec9f4800fabc13df5a643493bde2) > > **2. SIP Trunk URL** > > This is the address your outbound calls will be sent to, typically provided by your VoIP provider. Enter it as a **domain or IP address** (this is where your calls will be routed). > > ![Outbound SIP Trunk URL field](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-sip-trunk-url.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=5a4e4f2efc9bf42e1345f5bbdce032f6) > > **3. User Part** > > This is the SIP user identity used in the “From” header of your outbound SIP requests. It's how your VoIP system identifies the origin of the call. > > What to enter: > You can use one of the following formats depending on your provider: > > * A SIP username (e.g. `caller01`) > * A DID or phone number in `E.164` format (e.g. `+1234567890`) > * An extension (e.g. `201`) > > Up to 50 characters: letters, digits, and `+ - _ .` only. A full SIP URI such as `caller01@example.com` is not accepted. > > ![Outbound User Part field](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-user-part.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=828721d3cecf842fa0f8216e3532361a) > > **4. Data Center** > > Select the network edge closest to your VoIP infrastructure to optimize call routing and reduce latency. Eight regions are available: > > | Region | Location | > | - | - | > | North America | Virginia | > | North America | Oregon | > | Europe | Ireland | > | Europe | Frankfurt | > | Asia Pacific | Singapore | > | Asia Pacific | Tokyo | > | Asia Pacific | Sydney | > | South America | São Paulo | > > ![Outbound Data Center selection](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-datacenter.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=4297790602bba2f687eee1e0a33a330a) > > **5. Transfer Call Using SIP Refer** > > This toggle enables or disables call transfers using the SIP REFER method. It is **enabled by default**. > > When enabled, it allows: > > * Transferring a live call from one destination to another without media proxying > > * Offloading media streams directly between endpoints > > * Reducing latency and server load > > > [!WARNING] > > > > If you **disable** SIP REFER, NLPearl's servers stay in the media path during transfers, which results in **additional costs**. Leave it on unless your provider doesn't support SIP REFER. > > ![Outbound Transfer Call Using SIP REFER toggle](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-transfer-call-sip.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=30492e3e9ec23363b75d0a9101dc01c0) > > **6. Authentication Methods (optional based on your VoIP)** > > If your provider requires authentication, choose **one** method: **Credentials** or **Headers** — the two cannot be combined. > > **Credentials Authentication:** > > Use this method if your VoIP provider requires username/password credentials to authenticate outbound calls. > > Username: > This is the identifier associated with your SIP account. > > Password: > A secure password used to authenticate the SIP user. > Make sure it meets your provider’s security requirements (e.g. minimum 12 characters, including upper/lowercase letters, a number, and a special character). > > ![Outbound credential-based authentication](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-credential-auth.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=c44af55036b036469365abeb1a6b68c7) > > **Header-Based Authentication:** > > Use this method if your VoIP provider requires custom headers for SIP request authentication. > > Header Key: > This is the name of the custom SIP header field expected by your provider (e.g., X-Custom-Auth, X-Access-Token, etc.). It must start with `X-`. > > Header Value: > The corresponding value used to validate the request (e.g., a token, API key, or static secret). > Example: AuthZ-87!t!link > > > [!NOTE] > > > > Header-based auth is typically used for advanced integrations or when SIP gateways are behind proxies/firewalls that don’t support IP or credential-based auth. > > Ensure this matches exactly what your provider expects, as even small typos (like case or symbols) can lead to rejections. > > > [!NOTE] > > > > You can add up to **15** key-value pairs if needed, for example, to meet multi-token security policies. > > ![Outbound header-based authentication](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/custom-voip-outbound-header-auth.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=6f7f696e70f9e548b721bf2e5a53bb6b) > > * **IP Address Allow List:**\ > **IP Address:** See [Twilio's SIP Trunking IP Addresses](https://www.twilio.com/docs/sip-trunking/ip-addresses). **6. Managing Your Custom VoIP Phone Numbers** Once integrated: * **Assign to Inbound/Outbound:**\ You can assign your custom VoIP phone numbers to inbound or outbound campaigns within NLPearl.AI. ![Assign a custom VoIP number to a campaign](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-campaign-phone.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=7e2a1e0f5a88eebafd31c322f8664f73) * **Update Configuration:**\ If any changes are needed, you can edit the VoIP settings by accessing the phone number in the Phone Numbers tab. *** > [!TIP] > > ### Troubleshooting Tips > > **Connection Issues**: Double-check all configuration settings, especially SIP URLs, usernames, passwords, and IP addresses. > > **Authentication Failures**: Make sure the authentication method you've selected matches the one supported by your VoIP provider. > > **Provider Support**: If you're unsure about specific requirements, contact your VoIP provider for assistance with configuration. > [!NOTE] > > ### Advantages of Custom VoIP Integration > > **Flexibility**: Leverage your existing VoIP infrastructure without switching providers or modifying your current setup. > > **Global Reach**: Access phone numbers and make calls in any region your VoIP provider supports, ideal for international teams. > > **Caller Context**: Pass data to your Pearl on inbound calls with custom SIP headers (`X-` prefix). Each value lands in the matching Pre-call variable. [Learn how](/pages/variables#passing-data-on-inbound-calls-with-custom-sip-headers). *** > [card] Explore Other Options > > > [card] [NLPearl Phone Numbers](/pages/nlpearl_phones) > > > > Purchase and manage your **NLPearl-hosted phone numbers** directly, with instant activation and native support. > > > [card] [Twilio Integration](/pages/twilio_integration) > > > > Explore our **Twilio Integration** to access a broader range of international phone numbers. > > > [!NOTE] > > > > **Need Assistance?**\ > > If you require help with the integration process, please refer to our support resources or contact our support team for guidance. # Dialogue Node Source: https://developers.nlpearl.ai/pages/dialogue ![Dialogue node cover](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/dialogue-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=c373f3d19b7dae624d793faa1386e9cd) The **Dialogue** node is the main conversational node. Pearl speaks, asks questions, collects information, and keeps the conversation moving. It is the workhorse of most Pearl Voice flows. ## What it does Unlike a traditional IVR, Dialogue is not a rigid prerecorded prompt. Pearl Voice understands the intent of the step, adapts its wording in real time to what the caller says, and can follow the most relevant configured transition based on the conversation. ## When to use it Use Dialogue whenever Pearl needs to: | Pearl needs to | What it means | | - | - | | **Speak to the caller** | Deliver a message, greeting, or confirmation | | **Ask a question** | Prompt the caller for an answer or a choice | | **Collect information** | Capture details such as a name, email, or intent | | **Explain something** | Give context, options, or next steps | | **React to the caller** | Respond before continuing or branching to another path in the flow | ## How to configure **1. Write the script** In **Script / Free Text**, enter what Pearl should say or ask. Maximum 500 characters. Supports all available variables. **2. Add instructions (optional)** Use **Instructions** to guide tone, context, exceptions, pronunciation, required details, or how closely Pearl should follow the script. **3. Turn on Auto Continue (optional, voice only)** With **Auto Continue** on, Pearl moves on to the next step right after speaking, without waiting for the caller to reply. Use it on lines that don't ask the caller anything, such as a disclaimer or a short explanation. The same switch exists on the **Opening Sentence** node. > [!NOTE] > > Auto Continue is available only on voice Pearls. On a text Pearl, Pearl always waits for the customer's next message. ![Dialogue node configuration on the platform](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/dialogue-node-example.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=66a1be2b6ab46a7de87e8dd59345d5e0) > [!TIP] > > When specific wording must be followed closely, add clear instructions such as "Say this exactly", "Do not rephrase", or "Always include the following sentence". ## Transitions Each Dialogue node includes a default **Continue** path. You can also add conditional transitions to direct the caller to another Dialogue node, an action node, or an End Call node. Each conditional transition includes: | Field | Description | | - | - | | **Condition** | Written in plain language, with variable support | | **Destination** | The node the caller is routed to | > [card] Example: routing on the caller's answer > > Pearl asks whether the caller wants to book an appointment. Based on the answer, she can move to a Booking node, send an SMS, transfer the call, or continue to another part of the conversation. # Send Email Node Source: https://developers.nlpearl.ai/pages/email_action ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-cover.svg?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=39437fa2f4f099f0891676be6a7c966f) The **Send Email** node lets your AI agent send an email automatically when a condition is met during (or after) a conversation, for example a confirmation, a quote, or follow-up information. ## Fields to configure Open the node and fill in the fields below to define who receives the email and what it contains. ![Send Email node configuration on the platform](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-node-config.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=81897071318cea4f2f0cc37d5c8d7634) | Field | Description | | - | - | | **From** | The sender account the email is sent from. Pick a connected account, click **Connect Email** to add one, or use **Edit** to update an existing connection. If none is selected, the default sender is used. | | **To** | The recipient address(es). Type addresses directly or insert variables (for example an email collected earlier in the conversation). At least one recipient is required. | | **CC** (optional) | Additional recipients in copy. Supports the same direct input and variables as **To**. | | **Subject** | The subject line of the email. Insert variables to personalize it (for example the prospect's first name). | | **Content (Body)** | The body of the email, using a rich text (HTML) editor. Insert variables to include details gathered during the conversation, such as a price quote or a meeting time. | *** > [card] Connecting your email > > ![Email provider configuration panel](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/email-action-provider-config.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=f36aa0e73fd5336f36dc2c171f32b42d) > > Pearl sends emails **from your own business address** using one of three providers. Pick the one that matches your setup. > > > [tab] Gmail > > > > ![Gmail](https://mintcdn.com/nlpearl/yjNN1PpSs3yxoZOQ/logo/gmail_icon.webp?fit=max\&auto=format\&n=yjNN1PpSs3yxoZOQ\&q=85\&s=bbf0f36ad5969429117b5cc74af1a273) > > > > Send from your Gmail address > > > > **1. Select the provider** > > > > Choose **Gmail** from the provider list. > > > > **2. Enter your sender email** > > > > Enter your Gmail address in **Sender Email**. > > > > **3. Add an app-password** > > > > Enter a **Gmail app-password**, not your normal password. [Learn how to generate one](https://support.google.com/accounts/answer/185833). > > > > **4. Test and save** > > > > *(Optional)* Add an address under **Test Email to**, click **Test Config**, then **Save**. > > > > > [!WARNING] > > > > > > Enable **2-factor authentication** on your Google account and use an **app-password**, not your main password. > > > [tab] Office 365 > > > > ![Office 365](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/outlook-365-logo.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=8da0c064c6ec59da8d0cfb0ee5727329) > > > > Send from your Microsoft 365 address > > > > **1. Select the provider** > > > > Choose **Office 365** from the provider list. > > > > **2. Enter your sender email** > > > > Enter your Microsoft address in **Sender Email**. > > > > **3. Add an app-password** > > > > Enter an **Office 365 app-password** (see your Microsoft security settings). > > > > **4. Test and save** > > > > *(Optional)* Add a **Test Email** address, click **Test Config**, then **Save**. > > > > > [!WARNING] > > > > > > Office 365 may block basic SMTP by default. Make sure your tenant allows it and use an app-password where required. > > > [tab] Custom SMTP > > > > ![Custom SMTP](https://mintcdn.com/nlpearl/yjNN1PpSs3yxoZOQ/logo/email_icon.png?fit=max\&auto=format\&n=yjNN1PpSs3yxoZOQ\&q=85\&s=8e55aa5c8a76bba48cd2be38dcc205ac) > > > > Send through any SMTP server > > > > **1. Select the provider** > > > > Choose **Custom** from the provider dropdown. > > > > **2. Enter your SMTP server** > > > > For example `smtp.gmail.com`, `smtp.office365.com`, or `mail.yourdomain.com`. > > > > **3. Set the port and SSL** > > > > Enter the **Port**, usually **587** for TLS or **465** for SSL, then toggle **Enable SSL** (usually **On**). > > > > **4. Enter your credentials** > > > > Enter your **Sender Email** and its **SMTP account password**. > > > > **5. Test and save** > > > > *(Optional)* Add a **Test Email** address under **Test Email to**, click **Test Config**, then **Save**. > > > > > [!NOTE] > > > > > > If you're unsure about your SMTP details, check with your email hosting provider (Google Workspace, Outlook, Zoho, etc.). ## Variables Personalize the **Subject** and **Content**, and set dynamic **To** and **CC** recipients using variables collected during the conversation. > [card] [Using variables](/pages/variables) > > Learn how to create and insert variables to tailor each email to the recipient. # Getting Started Source: https://developers.nlpearl.ai/pages/getting_started Go from sign-up to your first live AI agent in minutes. [NLPearl - Getting Started](https://www.youtube.com/embed/NKkLXcdde1I) This guide walks you through the full path: create an account, build your first agent, test it, and go live. > [!NOTE] > > This guide focuses on building a **voice agent**. The flow is the same for **text agents** - you just connect your messaging channels (SMS, WhatsApp, email, chat) instead of a phone number. See [Pearl Text](/pages/text/pearl_text) to get started with text. *** ## 1. Sign Up Create your account at [platform.nlpearl.ai](https://platform.nlpearl.ai). You'll get complimentary minutes to test calls - no subscription required to start. ![NLPearl sign-up screen](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/getting-started-signup.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=57116013e43435ea5c8db3d6358d6318) > [!NOTE] > > During the trial phase, you can create agents and run test calls. To unlock full inbound and outbound campaigns, you'll need to [subscribe to a plan](https://nlpearl.ai/pricing). *** ## 2. Create Your Agent with PearlVibe PearlVibe is how you build your AI agents - voice or text. Describe what you need in a single prompt - PearlVibe generates the agent's personality, conversation flow, knowledge base, and connected actions. ![NLPearl dashboard with the PearlVibe chat](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/getting-started-dashboard.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=6d04f5513c7934c046b11267324f690a) **1. Write your prompt** When you land on the platform, the PearlVibe chat is right in front of you. Describe what your agent should do - be specific about the tone, language, and actions you need. Here are a few examples you can use as a starting point: **2. Review and refine** PearlVibe generates a complete agent configuration. Review the conversation flow, variables, and actions. Adjust anything that needs fine-tuning. > [accordion] Hospitality - Hotel Concierge > > ```text theme={null} > Create an inbound AI voice agent for a luxury hotel. > The agent should answer guest calls 24/7, handle room reservations, > check availability, process room service requests, and provide > information about hotel amenities and local attractions. > If a guest requests a VIP arrangement or has a complex request, > transfer the call to the front desk. Send a confirmation email > after every booking. Speak in a warm, professional tone. > Support English, French, and Spanish. > ``` > [accordion] Healthcare - Appointment Scheduling > > ```text theme={null} > Create an inbound AI voice agent for a medical clinic. > The agent should schedule, confirm, and reschedule patient appointments. > Collect the patient's name, date of birth, reason for visit, > and insurance provider. Send an SMS reminder 24 hours before > the appointment. If the patient describes an urgent medical situation, > transfer immediately to the on-call nurse. Tone should be calm, > empathetic, and reassuring. Support English and Spanish. > ``` > [accordion] E-commerce & Retail - Cart Recovery & Support > > ```text theme={null} > Create an outbound AI voice agent for an online store. > The agent should call customers who abandoned their cart in the > last 24 hours, remind them of the items they left, offer assistance > with any questions, and provide a 10% discount code if they're > hesitant. Collect the reason for abandonment as a variable. > If the customer wants to speak to a human, transfer to the > support team. Tone should be friendly and helpful, not pushy. > ``` > [accordion] Legal - Client Intake & Consultation > > ```text theme={null} > Create an inbound AI voice agent for a law firm. > The agent should handle new client intake calls by collecting > the caller's name, contact information, case type (personal injury, > family law, criminal defense, etc.), and a brief description > of their situation. Qualify the lead based on case type and urgency. > If the case qualifies, schedule a consultation with an attorney. > Send a confirmation email with the appointment details. > If the matter is urgent, transfer directly to a lawyer. > Tone should be professional, confidential, and reassuring. > ``` > [accordion] Utilities - Service & Outage Support > > ```text theme={null} > Create an inbound AI voice agent for a utility company. > The agent should handle outage reports, billing inquiries, > service activation requests, and meter reading appointments. > Collect the customer's account number and service address. > If the customer reports a gas leak or emergency, transfer > immediately to the emergency line. For billing disputes, > transfer to a specialist. Send an SMS confirmation for > any scheduled technician visit. Tone should be clear, > helpful, and efficient. > ``` > [accordion] Education - Admissions & Enrollment > > ```text theme={null} > Create an inbound AI voice agent for a university admissions office. > The agent should answer prospective student inquiries about programs, > application deadlines, tuition, financial aid, and campus visits. > Collect the student's name, program of interest, and preferred > start date. Schedule campus tours and admissions consultations. > Send a follow-up email with program details and application links. > If a parent or student has a complex financial aid question, > transfer to an admissions advisor. Friendly and encouraging tone. > Support English and Spanish. > ``` > [accordion] Telecommunications - Tech Support & Billing > > ```text theme={null} > Create an inbound AI voice agent for a telecom provider. > The agent should handle billing inquiries, plan changes, > SIM activation, and basic technical troubleshooting (restart router, > check signal, verify coverage). Collect the customer's account number > and phone number for verification. If the issue requires advanced > technical support or the customer wants to cancel, transfer to > a retention specialist. Schedule fiber installation appointments > when requested. Send a confirmation SMS after any plan change. > Professional and patient tone. > ``` > [accordion] Call Center - Multi-Purpose Support > > ```text theme={null} > Create an inbound AI voice agent for a BPO call center. > The agent should handle first-level support across multiple clients: > answer FAQs, log support tickets via API, collect customer information > (name, account number, issue description), and route complex cases > to the appropriate department. If the caller requests a callback, > schedule one and send a confirmation SMS. The agent should be able > to handle unlimited simultaneous calls with consistent quality. > Neutral, professional tone. Support English, Spanish, and French. > ``` > [accordion] Insurance - Claims Intake > > ```text theme={null} > Create an inbound AI voice agent for an insurance company. > The agent should handle first notice of loss calls by collecting > the policyholder's name, policy number, type of incident, > date and location of the event, and a brief description. > Log everything via API to the claims management system. > If the claim sounds urgent or involves injury, transfer > to a senior claims adjuster immediately. Tone should be > calm, professional, and supportive. > ``` > [accordion] Debt Management - Payment Recovery > > ```text theme={null} > Create an outbound AI voice agent for a debt recovery agency. > The agent should contact customers with overdue balances, > verify their identity, inform them of the outstanding amount, > and offer payment options (full payment, installment plan). > If the customer agrees to pay, send a payment link via SMS. > If they dispute the debt, transfer to a specialist. > Always remain compliant, respectful, and non-aggressive. > ``` > [accordion] Real Estate - Lead Qualification > > ```text theme={null} > Create an outbound AI voice agent for a real estate agency. > The agent should call new leads, qualify them by asking about budget, > preferred location, property type (buy or rent), and timeline. > Score each lead as hot, warm, or cold based on their answers. > If the lead is hot, schedule a property viewing and transfer > to an agent. Send a follow-up email with property listings > matching their criteria. Professional and knowledgeable tone. > ``` > [accordion] Government - Citizen Services > > ```text theme={null} > Create an inbound AI voice agent for a government public service office. > The agent should answer citizen inquiries about permits, document > requirements, office hours, and service locations. Schedule in-person > appointments for permit applications and document submissions. > Collect the citizen's name, request type, and preferred appointment date. > Send a confirmation SMS with appointment details and required documents. > If the request is sensitive or requires human review, transfer to > a case officer. Tone should be clear, neutral, and helpful. > Support English and Spanish. > ``` > [accordion] Airlines - Passenger Support > > ```text theme={null} > Create an inbound AI voice agent for an airline. > The agent should handle booking changes, flight status inquiries, > seat selection, baggage information, and check-in assistance. > Collect the passenger's booking reference and last name for > verification. If a flight is disrupted, offer rebooking options > and send the updated itinerary by email. For complex itineraries > or refund requests, transfer to a senior agent. > Tone should be calm, efficient, and reassuring. > Support English, French, Spanish, and German. > ``` > [accordion] Survey & Polling - Automated Research > > ```text theme={null} > Create an outbound AI voice agent for a market research firm. > The agent should call respondents, introduce the survey purpose, > and ask a series of 8-10 structured questions about customer > satisfaction. Collect each answer as a variable and log responses > via API to the research platform. If the respondent wants to > opt out, thank them and end the call. If they want to speak > to a researcher, schedule a callback. Consistent, neutral tone > to avoid interviewer bias. Support English and Spanish. > ``` > [card] [PearlVibe Documentation](/pages/pearl_vibe) > > Full guide on creating and customizing agents with PearlVibe. *** ## 3. Test Your Agent Once your agent is ready, run test calls directly from the platform to hear how it sounds, verify the conversation flow, and confirm that actions (API calls, transfers, emails) fire correctly. ![Run a test call from the platform](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/getting-started-test-call.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=678f2283aad97b58cc732b22688a9976) > [!TIP] > > Use your complimentary minutes for testing. Iterate on the prompt, variables, and actions until the agent handles your scenarios cleanly. *** ## 4. Tweak and Optimize Based on your test calls: * **Adjust the conversation flow** - refine how the agent responds to edge cases or unexpected inputs. * **Configure variables** - make sure data collection (names, emails, IDs) works as expected. See [Variables](/pages/variables). * **Set up actions** - connect API calls, call transfers, email or SMS triggers. See [API Node](/pages/api_action). *** ## 5. Publish Your Agent When you're satisfied with the agent's performance, publish it. This locks in your configuration and makes the agent available for live campaigns. *** ## 6. Connect a Phone Number Assign a phone number to your agent. All plans include at least one US number. You can purchase additional numbers or port existing ones from the [Phone Numbers](/pages/phone_numbers) settings. > [!NOTE] > > Building a text agent instead? Connect your messaging channels (SMS, WhatsApp, email, chat) rather than a phone number. See [Pearl Text](/pages/text/pearl_text). *** ## 7. Go Live Launch your campaign: * **Inbound** - Route incoming calls to your agent. See [Inbound](/pages/inbound). * **Outbound** - Upload contacts and let your agent initiate calls. See [Outbound](/pages/outbound). Monitor performance in real time from the [Call Analytics](/pages/analytics) dashboard. *** ## Billing & Credits Once you subscribe to a plan, you get access to agents, phone numbers, and call minutes. Each call minute is deducted from your plan's included minutes - once exhausted, your credits are used. ![Subscription plans in Subscriptions & Payments](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/getting-started-billing.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=41fe9b5dcc7406e579cec1ba5d9084a8) > [card] Full Access to Activities > > Engage in both inbound and outbound activities with no restrictions. > [card] Included Agents & Phone Numbers > > Concurrent agents and at least one US phone number included in every plan. > [!NOTE] > > **Auto-Recharge** - We recommend activating [auto-recharge](https://platform.nlpearl.ai/app/settings/subscriptions-payments/credits) to automatically top up your credits when they fall below a threshold, ensuring uninterrupted service. > [!WARNING] > > **Credit limits** - When credits drop below zero, your concurrent agents per activity are reduced to one. If your debt reaches 10% of your monthly subscription price, all activities are suspended until you recharge. *** ## What's Next > [card] [PearlVibe](/pages/pearl_vibe) > > Deep dive into agent creation and customization. > [card] [Call Analytics](/pages/analytics) > > Track and optimize your agent's performance. > [card] [Billing & Credits](/pages/billing) > > Manage your subscription, credits, and auto-recharge. > [card] [API Quick Start](/api-reference/api_quickstart) > > Integrate NLPearl programmatically via the REST API. > [card] [Subscription Plans](https://nlpearl.ai/pricing/) > > Compare plans and choose the best one for your needs. # Inbound Calls Source: https://developers.nlpearl.ai/pages/inbound Configure your Pearl to handle incoming calls, from recording and transcripts to the holding line and webhooks. ![Inbound cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=d56ec35b5e07d3b9a1ada387972d13dd) *** ## Setting Up Inbound Calls Once you have created a Pearl, you can enable it to receive inbound calls. Inbound settings are configured inside your Pearl, under **Inbound Settings**, giving callers a dynamic and responsive experience driven by your conversational flow. > [!NOTE] > > **What are inbound calls?** > > Inbound calls let your Pearl handle incoming calls, engaging with callers immediately and effectively using the conversational flow you defined. *** ## Attach a Phone Number To receive calls, your Pearl needs a phone number. Numbers are purchased and connected from **Settings → Phone Numbers**, not from the Inbound Settings screen. Start by clicking your **profile card** at the bottom-left corner of the sidebar, then open **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) Then select the **Phone Numbers** tab. From here you can purchase, connect, and manage all your numbers. ![Phone Numbers tab in Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-phone-number-in-settings.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=24c047eabb48b8ff854c0e7e56bfb678) You have three ways to get a number for your Pearl: > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-pearl-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=d5bcd2bdb6970f8888364cc5c49e82e8) > > NLPearl Number > > Buy a number directly from NLPearl and start receiving or making calls in minutes (US numbers, billed monthly). > > > [!NOTE] > > > > For more details, visit the [NLPearl Phone Numbers](/pages/nlpearl_phones) page. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/twilio-icon.webp?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=a26b1cb9dc2179e9b45e847c326ca0b8) > > Twilio > > Connect your Twilio account to use your existing numbers, with access to a wide range of countries. > > > [!NOTE] > > > > Visit [Twilio Integration](/pages/twilio_integration) for details on how to import and manage your Twilio phone numbers. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-voip-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=1737d606dbe84ed7698fe0583792934f) > > Custom VoIP > > Bring your own VoIP provider and connect custom numbers over SIP to your account. > > > [!NOTE] > > > > To learn more about integrating your own VoIP service, check out [Custom VoIP Integration](/pages/custom_voip). Once you have a number, attach it to your Pearl: open the Pearl's **Settings** panel and pick the number from the **Phone Number** dropdown. Your Pearl will then answer calls on that number. ![Select the phone number in the Pearl settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-campaign-phone.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=7e2a1e0f5a88eebafd31c322f8664f73) *** ## Inbound Settings Configure how your Pearl answers incoming calls from the **Inbound Settings** tab of your Pearl, in the [PearlVibe](/pages/pearl_vibe) flow editor. > [!WARNING] > > These settings apply to **voice** Pearls only. A Text Pearl has a different set of inbound options. ### Recording Options Choose whether the call audio is recorded. Recordings are available afterwards from your **call logs** for quality reviews, training, and analytics. ![Recording Options setting](https://mintcdn.com/nlpearl/xWtxMqdjTd-1Jybl/images/dark_mode/inbound-recording-options.png?fit=max\&auto=format\&n=xWtxMqdjTd-1Jybl\&q=85\&s=1c40591fb3f8fedc113971bbb9729614) | Option | Description | | - | - | | **Full call** | Records Pearl, then the person the call is transferred to. | | **Until transfer** | Records Pearl, and stops when Pearl hands the call over to a person. | | **Off** | Nothing is recorded. | > [!WARNING] > > Call recording laws vary by region and often require informing or getting consent from callers. Make sure your Pearl's flow discloses recording where required. > [!NOTE] > > See the [Transfer Call Node](/pages/transfer_call) to learn how call transfers work. *** ### Mask Sensitive Info Replace personal details with `****` in everything that is kept after the call. The transcript is always kept: **Off** stores it as-is, **On** masks it and opens the masking settings below. ![Mask Sensitive Info setting](https://mintcdn.com/nlpearl/xWtxMqdjTd-1Jybl/images/dark_mode/inbound-transcript-options.png?fit=max\&auto=format\&n=xWtxMqdjTd-1Jybl\&q=85\&s=0d4feb31437105c8a27bbf56ec86cd4a) | Setting | Description | | - | - | | **PII Detection** | **Auto** lets the AI decide what is personal information, such as names, phone numbers, or card numbers. **Manual** masks only the variables you pick, the same way on every call. | | **Variables to mask** | *Manual only.* The variables whose values are masked. Their values are replaced with `****` wherever they appear, including inside other variables. | | **Mask personal details in** | Where masking applies: **Transcript**, **Summary**, **Variables**, and **Action logs**. Unchecked parts keep the original values. In Manual mode, this setting reads **Mask the variables in**. | | **Send Masked Payloads** | **On**: webhooks and post-call actions receive the masked values (`****`). **Off**: they receive the original values. | > [!NOTE] > > With **Auto** detection, if a customer says *"My credit card number is 1234-5678-9012-3456"*, the transcript stores it as *"My credit card number is \*\*\*\*"*, so you can review interactions safely without exposing sensitive data. *** ### Hold Message Played to callers when they are put on hold, typically when all agents are busy and the caller enters the holding line. English only, max **300 characters**. ![Hold Message setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-hold-message.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=86fda0ab7b81819bd0c6ffc080f5378a) > [!NOTE] > > Example: *"Thanks for calling! One moment while I connect you to our team."* > [!NOTE] > > If your Pearl experiences high call volumes, callers are not turned away. They enter the holding line and hear your hold message and sound until an agent becomes available. *** ### Estimated Wait Time When enabled (on/off), callers on hold hear their position in the queue and an estimated wait time, along with your hold message. Setting expectations this way helps reduce hang-ups during busy periods. ![Estimated Wait Time setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-estimated-wait-time.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=a3a735d0a59cba28499f9b0ff12c3f3b) *** ### Hold Sound The music that loops while callers wait in the holding line. Select one of the built-in tracks or upload your own `.mp3` (up to **3 minutes**). Use the preview button to listen before saving. ![Hold Sound setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-hold-sound.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=fd225d70d6134b4a1997e92da18ae56f) *** ### Call Ambience A subtle background environment (office, call center, outdoor…) played **during the live conversation** to make the call sound more natural and human. Defaults to **None**. Pick an ambience from the dropdown, then fine-tune its **volume** (0–100) with the slider. A preview plays automatically so you can hear the result before saving. ![Call Ambience setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-call-ambiance.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=fcbf3e755ea8e498dff1bb68c5a93bb3) > [!NOTE] > > Don't confuse this with **Hold Sound**: Call Ambience plays quietly behind Pearl's voice during the call, while Hold Sound only plays while a caller is waiting in the holding line. *** ### Webhooks Send call lifecycle events to an external endpoint. ![Webhooks setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/inbound-webhook.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f3eb67465cf932700b65bdbb4b7649e1) * **Version**: `V1` or `V2` (default **V2**). V2 is the current payload format; keep V1 only if you have an older integration built against it. * **Call Webhook URL**: fires at key points in the call lifecycle (when the call starts and when it ends), sending an object similar to the [Get Calls Endpoint](/api-reference/v2/call/get-call) with details like duration, outcome, and any data collected during the call. * **Credentials**: optional authentication token attached to the requests so your endpoint can verify they come from NLPearl. > [!NOTE] > > If your endpoint is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). > [!TIP] > > Use Webhooks only if external tools need event notifications. For actual automations, rely on **Post-Call Actions** tied to how the call ended. > [card] [Webhooks](/pages/webhooks) > > Learn how to configure webhooks, authenticate requests, and handle the events NLPearl sends. *** ## Project-Level Settings A few settings live at the **Project** level rather than in the Inbound Settings screen. Open them from the settings popover on your Pearl. ![Project settings: agents and data retention](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-project-settings-panel.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=89d0dcc2f27c35e915f8d9f53e70d8e8) ### Agents Sets how many **simultaneous agents** handle this Pearl's incoming calls, i.e. how many calls can be answered at the same time, capped by your account's agent quota. A higher number lets your Pearl take more concurrent callers before the rest enter the holding line. ![Agents setting in the Pearl settings panel](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-agents-change-number.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=63525ea437ffe59c084052dd0a74cac4) > [card] [Agents](/pages/agents) > > Learn how to manage the agents assigned to your inbound and outbound activities. *** ### Call Retention Applies to **all calls**. Set how long calls are kept (a number of days, or leave empty to keep them indefinitely), then choose what is removed when they expire: delete all call data, or granularly the **Recording**, **Transcript**, **Summary**, or collected **Variables**. ![Call Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=1763975d58b9e80946387c07656fc372) *** > [!NOTE] > > ### Monitoring and Adjusting Your Inbound Calls > > While basic monitoring of call logs and reports can be done via our API, any changes to the setup, such as voice or language settings, must be handled directly on the platform. # Welcome to NLPearl Source: https://developers.nlpearl.ai/pages/introduction Build and deploy AI agents - voice agents that handle real phone conversations in 20+ languages, and text agents across SMS, WhatsApp, email, and chat - all by simply chatting with AI. ![NLPearl documentation cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/introduction-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7bd90970b053f7d8566fdee6d27c0d4d) ## What is NLPearl? NLPearl is an AI agent platform that lets you create, deploy, and manage AI agents that hold real conversations with your customers - inbound and outbound, at scale. Our flagship **AI voice agents** handle real phone conversations, built on a proprietary speech-to-speech architecture that delivers natural, low-latency, full-duplex voice in 20+ languages. With **Pearl Text**, you can also deploy AI text agents across SMS, WhatsApp, email, and chat - and connect both for continuous, cross-channel customer experiences. PearlVibe - your AI agent engineer - builds your agents, configures their logic, and connects them to your tools automatically. > [card] [Pearl Voice](/pages/pearl_voice) > > AI voice agents that handle real phone conversations - inbound and outbound - in 20+ languages. > [card] [Pearl Text](/pages/text/pearl_text) > > AI text agents that message your customers across SMS, WhatsApp, email, and chat. *** ## Example Use Cases ### Inbound | Use Case | Description | | - | - | | **Inbound Call Handling** | Answer incoming calls, resolve questions, collect information, and route to the right team - 24/7, at scale. | | **Technical Support & Troubleshooting** | Guide customers through issue resolution step by step, collect diagnostic info, and escalate when needed. | | **Order Tracking & Status Inquiries** | Let customers call to get instant updates on their order, shipment, or delivery status. | | **FAQ & Knowledge Base** | Handle high-volume repetitive questions automatically without tying up human agents. | | **Complaint Handling** | Capture customer complaints, collect context, log them in your CRM, and route to the right team. | | **Returns & Refunds Processing** | Walk customers through return or refund requests, collect required details, and initiate the process. | | **Account Management** | Handle address changes, subscription updates, password resets, and account inquiries via voice. | | **Appointment Scheduling** | Book, confirm, and reschedule appointments from inbound calls with real-time calendar integrations. | | **Customer Onboarding** | Welcome new customers, collect required information, and walk them through next steps automatically. | | **Job Candidate Screening** | Pre-qualify candidates, ask screening questions, and schedule interviews automatically. | | **Internal Operations** | Automate internal workflows - HR surveys, team reminders, shift confirmations, or field report collection. | ### Outbound | Use Case | Description | | - | - | | **Outbound Sales & Prospecting** | Call leads, qualify prospects, pitch your offer, and book meetings. | | **Lead Qualification** | Pre-qualify leads through dynamic conversations, score them with variables, and sync results to your pipeline. | | **Appointment Reminders** | Send reminder calls ahead of scheduled appointments to reduce no-shows by up to 70%. | | **Payment & Billing Follow-ups** | Automate payment reminders, invoice confirmations, and collections calls. | | **Debt Collection** | Run personalized collections outreach, capture promises to pay, and log outcomes in your CRM. | | **Post-Service Follow-up** | Check in after an intervention, measure satisfaction, and trigger upsell or renewal flows. | | **Re-engagement Campaigns** | Reach out to inactive customers, revive abandoned carts, or reactivate dormant accounts. | | **Upsell & Cross-sell Calls** | Proactively offer upgrades, add-ons, or complementary products after a purchase or at renewal time. | | **Warranty & Renewal Reminders** | Notify customers when a contract, subscription, or warranty is about to expire. | | **Event & Webinar Registration** | Invite, confirm registration, and send reminders ahead of events or webinars. | | **Order Status & Delivery Updates** | Proactively notify customers of order confirmations, shipping updates, or delivery issues. | | **Product Recall & Compliance Notices** | Reach affected customers with regulatory or safety notices at scale. | | **Loyalty & Retention Programs** | Call at-risk customers, offer incentives, and collect churn feedback before it's too late. | | **Alert & Notification Calls** | Trigger outbound calls for critical events - fraud alerts, order status updates, or system incidents. | | **Emergency & Crisis Notifications** | Broadcast mass alert calls for outages, incidents, or urgent operational situations. | *** ## How It Works **1. Build your agent** Use PearlVibe to define your agent type, personality, knowledge base, conversation logic, and connected actions - while seamlessly integrating your tools - all through a prompt-driven interface. **2. Deploy on your channels** For voice, assign a phone number or connect your own SIP-compatible VoIP provider. For text, connect your messaging channels (SMS, WhatsApp, email, chat). Then launch inbound lines or outbound campaigns - your agent starts handling real conversations immediately. **3. Monitor and optimize** Track performance with real-time analytics, review post-call and post-chat transcripts and summaries, and iterate on your agent's behavior. *** ## What You Can Do ### Build Your Agent > [card] [PearlVibe](/pages/pearl_vibe) > > Design your agent's type, personality, knowledge, conversation flow, and actions, while seamlessly integrating your tools - all from a single prompt-driven interface. > [card] [Variables](/pages/variables) > > Collect, store, and manipulate data during conversations - from user inputs to CRM lookups. ### Deploy & Connect > [card] [Inbound](/pages/inbound) > > Deploy agents on inbound lines to answer calls, resolve questions, and route to the right team. > [card] [Outbound](/pages/outbound) > > Launch outbound campaigns to reach leads, qualify prospects, and follow up at scale. ### Monitor & Optimize > [card] [Call Analytics](/pages/analytics) > > Track success rates, sentiment, call duration, cost breakdown, and more from a unified dashboard. > [card] [Post-Call Data](/pages/postcall) > > Access structured summaries, transcripts, recordings, and extracted variables for every call. *** ## Next Steps > [card] [Getting Started](/pages/getting_started) > > Go from sign-up to your first live call in minutes. > [card] [API Quick Start](/api-reference/api_quickstart) > > Integrate NLPearl programmatically via our REST API. *** ## Stay Connected > [card] [Join Our LinkedIn Community](https://www.linkedin.com/company/nlpearl/mycompany/) > > Connect with experts and peers for updates, support, and knowledge sharing. # IP Whitelisting Source: https://developers.nlpearl.ai/pages/ip_whitelist The IP addresses NLPearl sends requests from, to allow through your firewall for webhooks, API nodes, and text channel events. ![IP Whitelisting cover](https://mintcdn.com/nlpearl/qJYQqlW4LMG1gvAf/images/dark_mode/ip-whitelist-cover.svg?fit=max\&auto=format\&n=qJYQqlW4LMG1gvAf\&q=85\&s=1392d5de8b83d45fa6c17cf87b52b180) *** ## Overview Every HTTP request that NLPearl sends to your systems comes from a **fixed set of public IP addresses**. If your server is behind a firewall, a WAF, a cloud security group, or any policy that only accepts known sources, add these addresses to its allowlist so the requests reach your endpoint. *** ## IP Addresses to Allow > [!WARNING] > > Allow **all** the addresses below. A request can come from any of them, so allowing only some of them will make some deliveries fail. ```text NLPearl outbound IP addresses theme={null} 18.156.70.239 63.186.166.125 34.240.77.109 52.48.202.168 18.116.117.181 3.147.60.253 3.13.4.30 3.12.110.101 ``` > [!TIP] > > If your firewall expects CIDR notation, add each address as a single host with the `/32` suffix (for example `18.156.70.239/32`). *** ## Where It Applies These addresses cover every request NLPearl sends to a URL you configured: > [card] [Webhooks](/pages/webhooks) > > **Call**, **Lead**, and **Chat** webhooks, for both Inbound and Outbound Pearls. > [card] [API Node](/pages/api_action) > > **Pre-Call**, **In-Call**, and **Post-Call** API requests, plus the requests sent from the **Test API** panel. > [card] [Credentials](/pages/api_action#credentials-authentication) > > Token requests made for a **Refresh Token** credential, sent to your **Access Token URL**. > [card] [Generic Text Channel](/pages/text/channels/generic) > > Pearl replies and conversation events sent to your **Outbound URL**. > [!NOTE] > > This page covers the HTTP requests NLPearl **sends** to you. To receive calls from your own SIP infrastructure, the SIP trunk has its own IP settings: see [Custom VoIP](/pages/custom_voip). *** ## Setting Up the Allowlist **1. Find where incoming traffic is filtered** Identify the component that filters the traffic reaching your endpoint: a firewall, a reverse proxy, a WAF, or a cloud security group (AWS, Azure, GCP...). **2. Add the NLPearl addresses** Create an **allow** rule for each address listed [above](#ip-addresses-to-allow), on the port your endpoint listens on (usually `443` for HTTPS). **3. Test the connection** Send a test request to your endpoint from the platform, for example with the **Test API** panel of an [API node](/pages/api_action#testing-your-api), and check that your server receives it. > [!TIP] > > If the request reaches your server, the allowlist is set up correctly. > [!TIP] > > An IP allowlist works best **alongside** authentication, not instead of it. Keep verifying requests with [Credentials](/pages/api_action#credentials-authentication) on your webhooks and API nodes, or with the [webhook signatures](/pages/text/channels/generic#verify-webhook-signatures) of the Generic channel. *** > [card] [Webhooks](/pages/webhooks) > > Learn how to configure webhooks and authenticate their requests. > [card] [Account Security Settings](/pages/security) > > Manage session timeout, two-factor authentication, and audit logs. # Knowledge Base Source: https://developers.nlpearl.ai/pages/knowledge_base ![Knowledge Base cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f702ac6c475d4d8f84c3feed531695ec) Before your Pearl can answer questions accurately, it needs context. This step helps define the essential background information your agent will rely on during conversations. *** ## Company Name Give your Pearl the name of the company it represents. This name may be used when Pearl introduces itself or provides company-related information. ![Company Name field in the Knowledge Base](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f9884541016d420d2e131fd1fc856c76) *** ## Company Description Add a brief company description including your industry, mission, or key services. This allows Pearl to answer questions with more contextual relevance. ![Company Description field in the Knowledge Base](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen-5.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=fa456198f6b34dbae1723adc07359562) *** ## Pearl Knowledge Base This is where you teach Pearl what it needs to know to respond with relevance and accuracy. Add detailed information about your services, pricing, opening hours, locations, and any key operational data. ![Pearl Knowledge Base field with file upload](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen-1.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=5c1fe128646248802e9534dad75a42ff) > [!NOTE] > > **Background knowledge, not a script.** The Knowledge Base is passive reference data: Pearl consults it **only when needed** to answer accurately. It doesn't dictate the conversation flow, that's handled by the Flow Editor. > [!NOTE] > > Both options live in the same area and can be combined: type your information directly in the **text field** and/or **upload reference files**. Multiple documents can be added if needed. Whether you're describing how your subscription plans work, listing available services, or clarifying your business hours, this section allows Pearl to access structured information that supports more precise answers. > [!NOTE] > > This is the same knowledge that powers the [Knowledge Base node](/pages/knowledge_base_node) in the Flow Editor. What you add here is what your Pearl draws on during conversations. ### Files and limits These caps apply **per Pearl**: they cover every file attached to that Pearl's Knowledge Base, not each file individually. | Limit | Value | | - | - | | Number of files | 50 | | Supported formats | `.pdf`, `.docx`, `.txt` | | Total size of all files | 25 MB (no per-file cap) | | Total text extracted from files | 1,000,000 characters | | Free-text field | 20,000 characters (counted separately) | There is no page limit and no character cap on an individual document, only the shared 25 MB and 1,000,000-character totals apply. The free-text field has its own 20,000-character budget and does **not** consume the 1,000,000 characters reserved for files. > [!TIP] > > A **Knowledge Base File Usage** bar appears once the text extracted from your files passes **100,000 characters**, so you can keep an eye on how much of the budget is left. > [!WARNING] > > Pearl uses the **text extracted** from your `.pdf`, `.docx`, and `.txt` files. Standalone image files can't be uploaded, so make sure anything Pearl needs to answer with exists as text in the document. *** ## Memory When enabled, Pearl remembers the user or lead, allowing it to seamlessly continue conversations from where they left off. ![Memory On/Off toggle in the Knowledge Base](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen-2.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=5e4182e345a410bf998b8a0609416a76) > [!TIP] > > This feature is particularly useful for: > > * Multi-step processes > * Follow-ups > * Any scenario where continuity matters > [card] > > ### Example use case: Hospitality > > Let's say a guest checks into a hotel. Pearl can: > > * Remember their room number > * Greet them by name > * Recall their preferences (like "extra towels" or "no wake-up call") > * Offer a smooth, personalized experience every time they call > [!NOTE] > > **Resetting Memory** > > Need a fresh start? Pearl's memory can be reset via API. > > This is especially important in contexts like hospitality, where once a guest checks out, Pearl clears the slate, ensuring the next visitor starts with a clean experience. *** ## Speech Recognition Keywords Some words are just… not in the dictionary. Whether you're using brand-specific terms, creative product names, or industry jargon, teaching Pearl how to recognize them makes all the difference. ![Speech Recognition Keywords table](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen-3.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=91869e53ef6f2caf9bca556e227d062e) Use this feature to define: * **Keywords**: The unique word or name you want Pearl to catch * **Pronunciations**: Variations of how users might say it (spoken form) > [card] > > ### Example > > Let's say your bakery sells a pastry called `FluffoBun`. > > Here's how you'd define it: > > * **Keyword:** FluffoBun > * **Pronunciations:** fluh-foh-bun, floof-oh-bun, fluff-bunb\ > *(Separate each pronunciation with a comma)* > > This helps Pearl match even creatively named terms to real user input, no matter how it's pronounced. *** ## Speech Output Pronunciations Speech Output Pronunciations let you fine-tune how Pearl *pronounces* specific words or short phrases out loud. You provide the text as it appears (**Pearl says**) and a simple phonetic respelling of how it should actually sound (**Caller hears**). ![Speech Output Pronunciations table](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-screen-4.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=2fbe2fcd978f24e320a1dbb21f44e86f) Whenever Pearl is about to speak a word or phrase listed in **Pearl says**, it uses the **Caller hears** respelling instead. It changes the **audio only**: your scripts, variables, and node text stay exactly as you wrote them. Reach for it whenever text-to-speech mispronounces something important, such as: | Use case | Example | | - | - | | **Brand and product names** | `Nike` → `ny-kee` | | **Acronyms** you want spelled out | `NLPearl` → `N-L-Pearl` | | **Industry terms** | `SQL` → `sequel` | | **Abbreviations** you want expanded | `Dr.` → `Doctor` | | **Foreign or uncommon words** | Words that need a specific phonetic reading | To add one, fill the empty row at the bottom: type the text in **Pearl says**, then a plain phonetic respelling in **Caller hears** (readable syllables separated by hyphens, e.g. `ny-kee`). Use the trash icon on a row to delete it. > [!NOTE] > > Write **Caller hears** the way it should be *spoken*, not spelled, e.g. `2024` → `twenty twenty-four`, or `NLPearl` → `N L Pearl`. Keep it simple and phonetic. > [!WARNING] > > **Each row must have both fields filled**: a **Pearl says** value *and* a **Caller hears** value. Otherwise the row is flagged as incomplete. Empty rows are ignored and dropped when you save. > [!NOTE] > > **Limits:** up to **25** entries, and each field is capped at **50 characters**. > [!NOTE] > > **Speech Output Pronunciations vs. Speech Recognition Keywords** — don't mix them up: > > * **Speech Output Pronunciations** control how Pearl **speaks** (text-to-speech / output). Fields: **Pearl says** → **Caller hears**. > * **Speech Recognition Keywords** help Pearl **understand** what the caller says (speech-to-text / input). Fields: a **keyword** plus one or more **pronunciations** it might be heard as. # Knowledge Base Node Source: https://developers.nlpearl.ai/pages/knowledge_base_node ![Knowledge Base node cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-node-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7faafc19727343d50d09a85ce9021315) The **Knowledge Base** node lets Pearl look up answers in your uploaded knowledge base during a live conversation, instead of relying on a scripted line. **What it does** Pearl searches your knowledge base for the most relevant content and uses it to answer the caller in a natural, contextual way. **When to use it** Use this node whenever Pearl should answer from your own documents or FAQ content (product details, pricing, policies, opening hours) rather than a fixed script. It is ideal for open-ended questions where the exact wording can vary. ## How to configure * **Instructions** (optional): tell Pearl when and how to rely on the knowledge base. Keep it short and specific. * Example: "Use the knowledge base for any question about pricing, plans, or opening hours." ![Knowledge Base node on the platform](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-node-example.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=929a76116c0bf39186b8a28177e4f149) > [!NOTE] > > The knowledge content itself is uploaded and managed in the flow's **Knowledge Base** area, not inside the node. The node only tells Pearl *to* consult it. See [Agent Knowledge Base](/pages/knowledge_base) to manage your content, including [supported formats and limits](/pages/knowledge_base#files-and-limits). ## Example > [card] Example: answering about opening hours > > Imagine you uploaded a document to your knowledge base that says: > > > The clinic is open Monday to Friday, 9 AM to 6 PM, and Saturday from 9 AM to 1 PM. > > Here is how the node uses it during a call: > > 1. The caller asks: *"Are you open on Saturdays?"* > 2. The **Knowledge Base** node lets Pearl search that document and find the opening hours. > 3. Pearl answers: *"Yes, we're open on Saturdays from 9 AM to 1 PM."* > > Without this node, Pearl would not have access to your specific hours and could not answer reliably. ## Good to know * The knowledge content is managed once in Agent Knowledge Base, so every Knowledge Base node in your flow uses the same documents. You don't need to re-upload them for each node. * If no relevant information is found, Pearl falls back to the rest of your flow instead of inventing an answer. * Pair this node with a [Dialogue](/pages/dialogue) node to ask a follow-up question once the answer is delivered. # Voices and Languages Source: https://developers.nlpearl.ai/pages/languages At NLPearl, we offer a wide variety of languages and accents to cater to a global audience. You can configure your Pearl to handle conversations in multiple languages, providing a seamless and personalized experience for your users. ![Voices and Languages cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/languages-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=9c10ce2b38c47206a237c470087d9909) *** ### Configuring Agent Names, Languages & Voices When creating or editing your Pearl, you can set up multiple agents with different languages and voices. This flexibility allows your Pearl to engage in conversations in more than one language and switch smoothly between them as needed. *** #### How to Add Multiple Languages and Voices **1. Open the Agent Names, Languages & Voices section** In **Pearl Settings**, find the **Agent Names, Languages & Voices** section. Each row is one agent, with its name, language, voice, and accent. This is where you add, configure, and order your agents. ![Agent Names, Languages & Voices section in Pearl Settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/voice-language-screen.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=ef7b8b1b7a6740a5936281a3642cef0a) **2. Add an agent** Fill in the empty row at the bottom of the table to add a new agent: * **Name**: the name the agent uses during conversations in that language. * **Language**: pick a language from the supported list. * **Voice**: pick a voice for that language. > [!NOTE] > > Each language can be assigned to **only one agent**. A language that's already in use won't be selectable for another agent. **3. Choose a voice and accent** Open the **Voice** dropdown to browse the available voices. Use the **search** box to filter, and check the **accent label** next to each voice (e.g. `en-US`, `en-UK`) to match your target audience. Click the **play button** next to a voice to hear a sample before selecting it. ![Voice dropdown with search, accent labels and preview](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/languages-accents.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=928e59471e8775ee865e359c5ea61a79) **4. Set the default (opening) language** The agent marked **Default** is the one your Pearl uses to open the conversation. The first agent you add becomes the default automatically. To change it, hover over the agent you want and click the **Set as default** (↑) button. Use the **delete** icon to remove an agent. ![Set an agent as the default opening language](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/languages-set-default.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=e2de9c56df5473f52ad9ff59bc062323) > [!NOTE] > > Switching Languages During a Call > > * If, during the conversation, the caller requests to switch to another language, and you've added that language to your agent configurations, Pearl will smoothly handle the transition. > * The agent will inform the caller that they will be transferred to a representative who speaks the requested language. > * The conversation will then continue with the agent configured for that language. *** ### Supported Languages and Accents Currently, NLPearl.AI supports the following languages and accents: | **Language** | **Accent(s)** | **Locale Code(s)** | | - | - | - | | **English** | American, Australian, British, South African, Indian, Scotland | `en-US`, `en-AU`, `en-UK`, `en-ZA`, `en-SC`, `en-HI` | | **French** | French, Canadian French | `fr-FR`, `fr-CA` | | **Italian** | Italian | `it-IT` | | **Spanish** | Spanish, Argentine, Colombian, Mexican | `es-ES`, `es-AR`, `es-CO`, `es-MX` | | **Dutch** | Dutch | `nl-NL` | | **German** | German | `de-DE` | | **Hindi** | Hindi | `hi-IN` | | **Japanese** | Japanese | `ja-JP` | | **Mandarin** | Chinese Mandarin | `zh-CN` | | **Korean** | Korean | `ko-KR` | | **Russian** | Russian | `ru-RU` | | **Portuguese** | Brazilian Portuguese, European Portuguese | `pt-BR`, `pt-PT` | | **Turkish** | Turkish | `tr-TR` | | **Vietnamese** | Vietnamese | `vi-VN` | | **Polish** | Polish | `pl-PL` | | **Arabic** | Levantine Arabic | `ar-LEV` | | **Greek** | Greek | `el-GR` | | **Hebrew** | Hebrew | `he-IL` | | **Indonesian** | Indonesian | `id-ID` | *** > [card] > > ### Important Notes > > * **Language Consistency**: > * Ensure that your conversational flow and scripts are consistent with the languages you've configured. > * For example, if you have English and Spanish agents, provide scripts in both languages. > * **Default Language**: > * The default language is crucial as it determines how the conversation begins. > * Make sure the default language aligns with the expectations of your target audience. > * **Accents and Regional Variations**: > * Choose accents that best match your audience to enhance the user experience. *** ### Expanding Language Support We are continuously working to expand our range of supported languages and accents to meet the diverse needs of our users. Stay tuned for updates as we grow our offerings. > [!NOTE] > > Feedback and Requests > > If you have specific language or accent requirements that are not currently supported, please reach out to our support team. We are committed to accommodating your needs and will consider your requests as we expand our capabilities. *** > [card] [Create Your Pearl](/pages/create_pearl) > > Learn how to create a Pearl and configure multiple languages and voices. > [card] [Contact Support](mailto:support@nlpearl.ai) > > Contact our support team to request additional languages or accents. # NLPearl Phone Numbers Source: https://developers.nlpearl.ai/pages/nlpearl_phones Learn how to purchase phone numbers directly from the NLPearl.AI platform. ![NLPearl Phone Numbers cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/nlpearl-phones-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=3cfbbaf2d816d09eb4660fb8ad48019f) NLPearl.AI allows you to purchase phone numbers directly from our platform to support your inbound and outbound call activities. These phone numbers are billed monthly and can be managed easily within your account. > [card] > > ### Available Countries > > Currently, we offer phone numbers for purchase from the following country: > > | Country | ISO Code | Status | > | - | - | - | > | United States | `US` | Available | > > > [!NOTE] > > > > If you require phone numbers from other country codes, please consider using our [Twilio Integration](/pages/twilio_integration) or [Custom VoIP Integration](/pages/custom_voip) options. *** ### Before You Purchase > [!NOTE] > > **An active subscription is required.** Buying an NLPearl phone number is only available on a paid plan. Each phone number is billed monthly, and the exact per-number price is shown in the purchase panel next to each number. Numbers included in your plan appear as **Free with plan** in the cart (see [Payment and Billing](#payment-and-billing)). > [!WARNING] > > **Outbound calling & spam risk:** If you plan to make outbound calls, we strongly recommend integrating and verifying your number with a VoIP provider. Otherwise, carriers may flag it as spam. > [!WARNING] > > **Calls stay within the number's country:** an NLPearl number can only call and transfer to phone numbers from its own country. For example, a US number can only reach US numbers. > > * **Outbound calls**: leads whose number is from another country are not called, and their status becomes **Wrong Country Code**. > * **Call transfers**: on inbound and outbound calls, a [Transfer Call](/pages/transfer_call) to a number from another country is refused during the call. The caller stays with your Pearl, and the failed transfer appears in the call's Event Log. > > To call or transfer to other countries, use a [Twilio](/pages/twilio_integration) or [Custom VoIP](/pages/custom_voip) number instead. *** ### How to Purchase a Phone Number Follow these steps to purchase a phone number from NLPearl.AI: **1. Go to Phone Numbers Settings** Start by clicking your **profile card** at the bottom-left corner of the sidebar, then open **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) From there, open the **Phone Numbers** tab to manage or purchase phone numbers linked to your account. ![Phone Numbers tab in Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-phone-number-in-settings.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=24c047eabb48b8ff854c0e7e56bfb678) **2. Click on Purchase NLPearl Phone Number** In the **Phone Numbers** tab, locate the **Purchase NLPearl Phone Number** button in the center of the screen. Click it to access the list of available phone numbers for purchase. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/nlpearl-phones-select-number.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=fbae7a28413d3517dae46fe221013600) **3. Select Phone Numbers** Once you click **Purchase NLPearl Number**, a side panel titled **Purchase Phone Numbers** (1) opens on the right. Here, you’ll see a list of available US phone numbers. To add a number to your cart, simply click the **Add** button next to it. When selected, the button turns green and updates to **Added** (2). ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/nlpearl-phones-purchase-popup.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=de448c3f8b87b4a0e27ba504304eaa8c) > [!NOTE] > > **Not finding a number you like?** You can refresh the list to generate a new selection of available phone numbers. > > ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/nlpearl-phones-refresh-list.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=d1d207e37e323541e6e0c2e81beec983) **4. Review Your Cart** Once you’ve selected your numbers, the **Cart Summary** on the right side of the **Purchase Phone Numbers** panel lists everything you’ve added. * Each row shows a number and its monthly **Amount**. * The **Total Due Today** (and the recurring monthly cost) updates automatically as you add or remove numbers. * To remove a number, click the **red delete icon** next to it. * Your saved **Payment Method** is shown at the bottom, just above the **Confirm Payment** button. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/nlpearl-phones-cart-summary.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=47beabe6c7fd1428f7eeaff269e62e13) **5. Complete the Purchase** When you're happy with your selection, click the **Confirm Payment** button at the bottom of the Cart Summary to finalize your order. Your selected phone numbers will be instantly added to your account, ready to use without any delay. **6. Manage Your Phone Numbers** After purchasing, you can assign phone numbers directly to your **inbound** or **outbound campaigns** from the platform. To assign a phone number, open the settings of the specific campaign (inbound or outbound) and choose the number you'd like to attach. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-campaign-phone.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=7e2a1e0f5a88eebafd31c322f8664f73) > [!WARNING] > > If a phone number is scheduled for deletion but still linked to an active campaign, that campaign will **automatically stop working** once the number is removed. > [card] Deleting Phone Numbers > > If you no longer need a phone number, you can schedule it for deletion directly from your settings. > > Start by going to the **Phone Numbers** section in your Settings. From there, locate the number you want to remove and click the **Delete** button next to it. > > ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/delete-phone-number.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=cf16c9e0f645b89d1c7e2c150bfa9ec0) > > A confirmation step will appear to make sure you really want to delete the selected number. Once confirmed, the deletion is scheduled but not immediate. > > Once confirmed, the deletion will be scheduled but not immediate. The phone number remains active until its **billing anniversary date**, when it will be automatically removed from your account. > > > [!NOTE] > > > > You can continue using the number normally until that date. Deletion only takes effect on its billing anniversary. *** ### Payment and Billing Phone numbers are billed on a monthly basis, charged to the **credit card** saved on your account. Once the transaction is processed, you'll receive an invoice by email. > [!NOTE] > > **Subscription Inclusions**: \\ > > If your plan includes phone numbers and you haven't used your allowance yet, those numbers appear as **Free with plan** in the cart, at no extra cost. If you add more numbers than your plan includes, use **Make this free** on a number to choose which one uses your included allowance. *** > [!WARNING] > > ### Important Considerations > > * **Monthly Billing Cycle**: Phone numbers are billed on a monthly cycle starting from the date of purchase. > * **Country Code Limitations**: Currently, only US phone numbers are available for direct purchase. An NLPearl number can only call and transfer to numbers from its own country. For other countries, consider alternative integration options. > * **Payment Method**: Keep a valid credit card on file to avoid interruptions in service. *** > [card] Need Phone Numbers from Other Countries? > > > [card] [Twilio Integration](/pages/twilio_integration) > > > > Explore our **Twilio Integration** to access a broader range of international phone numbers. > > > [card] [Custom VoIP Integration](/pages/custom_voip) > > > > Consider the **Custom VoIP Integration** if you have specific VoIP services you wish to use. # Outbound Calls Source: https://developers.nlpearl.ai/pages/outbound Configure your Pearl to run outbound campaigns, from budget and recording to retries, scheduling, and webhooks. ![Outbound cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=1f7a7df0d6e60a66d47283f666928c11) *** ## Setting Up Outbound Campaigns Once you have created a Pearl, you can use it to run outbound campaigns. Outbound settings are configured inside your Pearl, under **Outbound Settings**, so your Pearl calls your leads following the conversational flow you defined. > [!NOTE] > > **What are outbound campaigns?** > > Outbound campaigns let your Pearl make outgoing calls to a list of leads, following the conversational logic you defined for consistent and effective outreach. *** ## Attach a Phone Number To place calls, your Pearl needs a phone number. Numbers are purchased and connected from **Settings → Phone Numbers**, not from the Outbound Settings screen. Start by clicking your **profile card** at the bottom-left corner of the sidebar, then open **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) Then select the **Phone Numbers** tab. From here you can purchase, connect, and manage all your numbers. ![Phone Numbers tab in Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-phone-number-in-settings.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=24c047eabb48b8ff854c0e7e56bfb678) You have three ways to get a number for your Pearl: > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-pearl-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=d5bcd2bdb6970f8888364cc5c49e82e8) > > NLPearl Number > > Buy a number directly from NLPearl and start receiving or making calls in minutes (US numbers, billed monthly). > > > [!NOTE] > > > > For more details, visit the [NLPearl Phone Numbers](/pages/nlpearl_phones) page. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/twilio-icon.webp?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=a26b1cb9dc2179e9b45e847c326ca0b8) > > Twilio > > Connect your Twilio account to use your existing numbers, with access to a wide range of countries. > > > [!NOTE] > > > > Visit [Twilio Integration](/pages/twilio_integration) for details on how to import and manage your Twilio phone numbers. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-voip-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=1737d606dbe84ed7698fe0583792934f) > > Custom VoIP > > Bring your own VoIP provider and connect custom numbers over SIP to your account. > > > [!NOTE] > > > > To learn more about integrating your own VoIP service, check out [Custom VoIP Integration](/pages/custom_voip). Once you have a number, attach it to your Pearl: open the Pearl's **Settings** panel and pick the number from the **Phone Number** dropdown. You can change it later from the same place. ![Select the phone number in the Pearl settings panel](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-campaign-phone.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=7e2a1e0f5a88eebafd31c322f8664f73) > [!NOTE] > > **Country codes** — each campaign is tied to a single country code, set automatically by the number you attach: > > * **One country code per campaign**: you can only call leads whose phone numbers match it. > * **Cannot be changed**: you can switch to another number **within the same country code**, but to use a different one you must create a **new campaign**. > * **Multiple countries**: create a separate campaign for each country code. > > **NLPearl-provided** numbers are currently **US only**. To reach other countries, connect a [Twilio](/pages/twilio_integration) or [Custom VoIP](/pages/custom_voip) number, which give access to additional country codes. *** ## Outbound Settings Configure your campaign from the **Outbound Settings** tab of your Pearl, in the [PearlVibe](/pages/pearl_vibe) flow editor. The tab groups the settings below into **Campaign Settings** (how calls are scheduled, managed, and recorded) and **Lead Settings**. > [!WARNING] > > These settings apply to **voice** Pearls only. A Text Pearl has a different set of outbound options. ### Budget Set an optional spending cap for the campaign, in dollars. Once the budget is reached, Pearl stops making calls for that campaign. You can increase it at any time as long as you have enough credit on your account. ![Budget setting](https://mintcdn.com/nlpearl/pYtdSSRVhe3vC7_4/images/dark_mode/outbound-budget.png?fit=max\&auto=format\&n=pYtdSSRVhe3vC7_4\&q=85\&s=d4927c3959bc0cfc868383983e69eafc) *** ### Recording Options Choose whether and how calls are recorded. Recorded calls are available afterwards from your call logs. ![Recording Options setting](https://mintcdn.com/nlpearl/pYtdSSRVhe3vC7_4/images/dark_mode/outbound-recording.png?fit=max\&auto=format\&n=pYtdSSRVhe3vC7_4\&q=85\&s=6ec7b0e829c10413b21348057843a4ca) | Mode | Description | | - | - | | **Pearl & End-user** | Records both Pearl and the lead's voice. | | **Pearl Only** | Records only Pearl's side of the conversation. | | **No Recording** | Disables call recording entirely. | > [!WARNING] > > Call recording laws vary by region and often require informing or getting consent from callers. Choose the mode that matches your privacy policy and legal requirements. *** ### Recording After Transfer Call If enabled, recording continues after the call is transferred to a human agent or external number, so you capture the full conversation. ![Recording After Transfer Call setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-recording-after-transfer.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=778271166fc97486cfa3cdc60147cff8) > [!NOTE] > > This option only appears when **Recording Options** is set to **Pearl & End-user**. See the [Transfer Call Node](/pages/transfer_call) to learn how call transfers work. *** ### Mask Sensitive Info Replace personal details with `****` in everything that is kept after the call. The transcript is always kept: **Off** stores it as-is, **On** masks it and opens the masking settings below. ![Mask Sensitive Info setting](https://mintcdn.com/nlpearl/sY3kfk-5Q9g35o7H/images/dark_mode/outbound-transcript-option.png?fit=max\&auto=format\&n=sY3kfk-5Q9g35o7H\&q=85\&s=dbbd4e842545f5aae73dde5d4ba295c0) | Setting | Description | | - | - | | **PII Detection** | **Auto** lets the AI decide what is personal information, such as names, phone numbers, or card numbers. **Manual** masks only the variables you pick, the same way on every call. | | **Variables to mask** | *Manual only.* The variables whose values are masked. Their values are replaced with `****` wherever they appear, including inside other variables. | | **Mask personal details in** | Where masking applies: **Transcript**, **Summary**, **Variables**, **Action logs**, and **Leads**. Unchecked parts keep the original values. In Manual mode, this setting reads **Mask the variables in**. | | **Send Masked Payloads** | **On**: webhooks and post-call actions receive the masked values (`****`). **Off**: they receive the original values. | > [!NOTE] > > With **Auto** detection, if a customer says *"My credit card number is 1234-5678-9012-3456"*, the transcript stores it as *"My credit card number is \*\*\*\*"*, so you can review interactions safely without exposing sensitive data. *** ### Default Timezone Set the timezone for the campaign so that calling hours and scheduling are applied at the right local time. ![Default Timezone setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-default-timezone.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=3bf04d4e02412ade5f6a9a7a7668a7c7) *** ### Retry Call Attempts Define how many times Pearl retries a lead when the initial call fails (default **3**). You can choose up to **11 attempts**, depending on your account. You then choose the **minimum** interval between retries (default **every 6 hours**). ![Retry Call Attempts setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-retry-call-attempts.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=e8f8bd73a31e8f1acc5612975d1191ba) | Interval | Description | | - | - | | **As soon as possible** | Retries about a minute after the failed call. | | **Every hour** | Very fast retry cycle for time-critical contacts. | | **Every 2 hours** | Fast retries within a few hours. | | **Every 3 hours** | Fast retry cycle for urgent contact needs. | | **Every 4 hours** | Several retries within the same day. | | **Every 5 hours** | Spaced retries within the same day. | | **Every 6 hours** | Moderate retry pace during the same day. | | **Once a day** | Standard daily follow-up. | | **Once every 3 days** | More spaced follow-up. | | **Once a week** | Low-frequency retries. | | **Once a month** | For long-term or non-urgent callbacks. | > [!NOTE] > > The interval is a **minimum** — Pearl waits at least this long between attempts, respecting the lead's calling hours. Setting the right value keeps follow-ups persistent without overwhelming the lead. *** ### Call Ambience A subtle background environment (office, call center, outdoor…) played during the live conversation to make the call sound more natural and human. Defaults to **None**. Pick an ambience from the dropdown, then fine-tune its **volume** (0–100) with the slider. A preview plays automatically so you can hear the result before saving. ![Call Ambience setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-ambiance.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=bf9b23d8fb2e41237c8ffbbb0f2b63b7) *** ### Ring Duration Define how long Pearl lets the phone ring before ending the call. You can choose between **10 and 50 seconds** (default **20**). If the lead doesn't answer within this time, the call is marked as **No Answer**. Shorter durations save time, longer ones increase answer rates. ![Ring Duration setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-ring-duration.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=590812e92f594dd0f72f3d8e2f0edbd7) *** ### Call Duration Limit Set the maximum length of a call, between **1 and 120 minutes** (default **30**). If the conversation goes beyond this limit, the call is automatically disconnected. ![Call Duration Limit setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-duration-limit.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=47ae7a5dcece997493676e9fe12a441a) *** ### Voicemail Drop When Pearl reaches voicemail, she can leave a **personalized message** (optional, up to **500 characters**) using variables like the lead's first name, for a more human interaction even when the lead doesn't pick up. ![Voicemail Drop setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-voicemail-drop.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=09fb54d2b0fe22d5cf4f0ab587a09acf) > [!NOTE] > > Only **Pre-Call** variables can be used in the voicemail drop. > > Example: > > > "Hi `First Name`, this is Pearl calling on behalf of `Your Company`. I just tried reaching you but missed you this time! Feel free to call me back at `Your Callback Number`. Looking forward to speaking with you soon!" *** ### IVR Bypass Provide instructions (up to **500 characters**, variables supported) so Pearl can navigate external phone menus (IVR) using DTMF tones and reach the right person or destination automatically. > [!NOTE] > > Example: *"If you hear a menu, press 2 for the sales department, then press 1 to speak with a representative. If asked for an extension, enter `Extension`."* ![IVR Bypass setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-ivr-bypass.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f893330ce5fa60bbd198ee0b980ccc96) *** ### Call Screening Pearl handles call screening automatically. There's nothing to configure. To cut down on spam, more and more phones answer calls from unknown numbers for their owner: **Call Screening** on iPhone since iOS 26, and similar features such as Google's **Call Screen** on many Android phones, often switched on by default. Instead of ringing, the phone's assistant asks the caller who they are and why they're calling, for example: *"If you record your name and reason for calling, I'll see if this person is available."* The owner reads the answer as live text, then picks up, declines, or sends the call to voicemail. Pearl recognizes the screening prompt and answers it: she says who is calling and why, based on your Pearl's flow, which gives the person a clear reason to pick up. She then waits on the line so the call can be put through: * If the person picks up, the conversation continues as normal. * If the screener says the person isn't available, the call ends. A screened call is not a voicemail or an IVR menu, so [Voicemail Drop](#voicemail-drop) and [IVR Bypass](#ivr-bypass) don't apply to it. > [!NOTE] > > The phone's assistant speaks in the phone's own language. Pearl recognizes its prompt in **English**, **French** and **German**. *** ### Calling Hours Define the working hours during which Pearl is allowed to place calls. By default, calls run **Monday to Friday, 08:00–18:00**. Calling hours respect each lead's timezone, so everyone is contacted at an appropriate local time. ![Calling Hours setting](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-calling-hours.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f730dbbdf6d6d35708edb351439f5872) *** ### Webhooks Send call and lead events to an external endpoint, useful for tracking performance and keeping your CRM in sync. ![Webhooks setting](https://mintcdn.com/nlpearl/pYtdSSRVhe3vC7_4/images/dark_mode/outbound-webhook.png?fit=max\&auto=format\&n=pYtdSSRVhe3vC7_4\&q=85\&s=4217427bea1d14e381273c9ce6bf9872) * **Call Webhook**: fires at key points in the call lifecycle (when the call starts and ends), sending an object similar to the [Get Calls](/api-reference/v2/call/get-call) endpoint with details like duration, outcome, and any data collected during the call. * **Lead Webhook**: fires whenever a lead changes status (at the start and end of the call), sending an object similar to the [Get Leads](/api-reference/v2/outbound/get-lead) endpoint with the lead's full information and current status. Use it to update your CRM in real time. Each webhook supports: * **Version**: `V1` or `V2` (default **V2**). * **Credentials**: optional authentication token attached to the requests so your endpoint can verify they come from NLPearl. > [!NOTE] > > If your endpoint is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). > [!TIP] > > Use Webhooks only if external tools need event notifications. For actual automations, rely on **Post-Call Actions** tied to how the call ended. > [card] [Webhooks](/pages/webhooks) > > Learn how to configure webhooks, authenticate requests, and handle the events NLPearl sends. *** ## Project-Level Settings A few settings live at the **Project** level rather than in the campaign settings screen. Open them from the settings popover on your Pearl. ![Project settings: agents and data retention](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-project-settings-panel.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=89d0dcc2f27c35e915f8d9f53e70d8e8) ### Agents Sets how many **simultaneous agents** run this campaign, i.e. how many calls can be placed at the same time, capped by your account's agent quota. A higher number allows faster outreach. ![Agents setting in the Pearl settings panel](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-agents-change-number.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=63525ea437ffe59c084052dd0a74cac4) > [card] [Agents](/pages/agents) > > Learn how to manage the agents assigned to your inbound and outbound activities. *** ### Call Retention Applies to **all calls**. Set how long calls are kept (a number of days, or leave empty to keep them indefinitely), then choose what is removed when they expire: delete all call data, or granularly the **Recording**, **Transcript**, **Summary**, or collected **Variables**. ![Call Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=1763975d58b9e80946387c07656fc372) *** ### Lead Retention Outbound only. Set how long leads are kept before they are automatically deleted (a number of days, or leave empty to keep them indefinitely). This removes the entire lead. ![Lead Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-lead-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7b46dd147a2d092c07390d8eb585e48f) *** ## Managing Leads Open the **Leads** tab in your campaign to add, view, and manage the people Pearl will call. Leads are shown in a searchable, paginated table with default columns **Created**, **Phone Number**, **Time Zone**, **Reference ID**, and **Status**, plus one column per variable used in your Pearl. ![Leads tab overview](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-overview.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=69c29087e3f011daac7bb34ea7cf7c58) ### Adding Leads Click **Add Lead**, then choose how you want to add them. ![Add Lead button](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=5a135e1dbc290f48fcc06f7ad2ac4981) > [card] > > > [tab] Upload a File > > > > Download the **CSV** or **XLSX** template, fill it with your lead data, and upload it back. The template only includes the variables actually used in your Pearl (unused ones won't appear, and extra columns you add won't be recognized). You can also set a timezone for the file — if left empty, the campaign timezone is used. After the upload, a report shows how many leads were added and lets you download the list of any failed rows. > > > > ![Add Lead - upload file](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add-popup-upload-file.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f57464011a18690e28d5c970dddfa787) > > > [tab] Add Manually > > > > Enter a lead one by one: phone number (country code + number), any variables your Pearl uses (e.g. Calendly URI, event type, date/time), an optional timezone, and an optional **Reference ID** (your own external identifier, up to 100 characters). > > > > ![Add Lead - manually](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add-manually.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=18a8c57c14aa790ec8f94b1056fa9a5e) > [!NOTE] > > Both methods require accepting the **AI-calls compliance** checkbox. A notice also warns when a lead's country code doesn't match a country-limited NLPearl number — to reach other regions, connect a [Twilio](/pages/twilio_integration) or [Custom VoIP](/pages/custom_voip) number. *** ### Customizing the View Use **Customize Column** to show or hide any column, including the per-variable columns (by default, only the last 3 variables are shown). Up to 50 columns can be visible at once, and your selection is saved locally in your browser. ![Customize columns](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-customize-view.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=68e38df8062e69b0f639635238e058a3) *** ### Exporting Leads Click **Download CSV** to export your leads together with their current statuses. The export respects the filters currently applied to the table. ![Download leads as CSV](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-download-csv.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=71eb2c06968a81f9b287c17bdec8faa2) *** ### Refreshing and Deleting Select one or more leads (or select all across the current filter), then: * **Refresh**: resets the leads to **New** so they re-enter the calling queue — handy to re-contact already-processed leads (Completed, Unsuccessful, etc.). * **Delete**: permanently removes the selected leads, after a confirmation. ![Refresh or delete selected leads](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-delete-or-refresh.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7c95fbdb355b037c2e9173fb2aa4e53a) *** ### Outside Calling Hours When a lead's local time falls outside your campaign's [calling hours](#calling-hours), a **moon icon** appears on its Time Zone column — the lead is "sleeping" and won't be called until its window opens. Hover the icon to see the lead's local time and UTC offset. ![Lead outside calling hours indicator](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-sleeping.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=849e6b41bacbe567780eb99edb441fe3) *** ### Lead Details Click a lead to open its details panel. Use the arrows or **↑/↓** keys to move between leads. The header shows the lead's name (or phone number), its **Lead ID** (copyable), and its status. ![Lead detail panel](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-overview.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=0bcf1627c4e75712b34847104b403213) **Status** — change the lead's status from the editable dropdown; the change is applied instantly. This simply updates the lead's status label — for example, set it back to **New** to re-contact the lead. ![Change lead status](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-change-status.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=65613a0c6176b5452791dc10140b868e) **Lead information** — Timezone, Reference ID, Phone Number, and every Pearl variable are **editable inline**, and each change is saved immediately. The panel separates two groups: * **Lead data**: values you provided up front (imported or entered variables). * **Lead Collected Info**: values Pearl gathered during the conversation. ![Lead information and collected info](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-info.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=71abb0e6e77126be82e49e5d8863cb45) **Calls** — the right column lists the lead's calls with their time and status; click one to open its **Post Call** view. ![Lead calls history](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-calls-view.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=d7478770b2d0405d199defc7c8f39bb5) > [card] [Post Call](/pages/postcall) > > See everything captured after a call: outcome, transcript, summary, and collected data. # Call Analytics Source: https://developers.nlpearl.ai/pages/pearl_analytics ![Call Analytics cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-analytics-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=6f39f0fca0a98f06eb9e23a0048bd3d1) Use this section to track, evaluate, and act on your Pearl's performance. Define what success looks like, apply custom tags to key conversation moments, and set up notifications to stay on top of important calls. > [!NOTE] > > Other charts in your Call Analytics dashboard (duration, sentiment, costs, pickup rate, events, heatmap) are tracked automatically and don't depend on this setup step. *** ## Define the Success of Your Pearl Specify what constitutes a successful call for your Pearl, such as booking a meeting, confirming interest, or qualifying a lead. This success definition will be reflected in your campaign analytics and lead statuses, helping you sort and follow up efficiently. The success criteria is **free text**, up to **250 characters**. ![Define the success of your Pearl](https://mintcdn.com/nlpearl/sY3kfk-5Q9g35o7H/images/dark_mode/pearl-analytics-1.png?fit=max\&auto=format\&n=sY3kfk-5Q9g35o7H\&q=85\&s=d920eddf2bfbc6baf8730c5b740d1a9b) > [!NOTE] > > **In your Call Analytics dashboard**, without a success definition, answered calls are counted as **Completed**. Once defined, they split into **Call Successful** (green) and **Call Unsuccessful** (pink), and the **Success Rate** chart tracks the percentage of calls that met your criteria over time (empty until success is defined). *** ## Indicator Tags Use **Indicator Tags** to label and categorize key moments in a conversation. They help you structure your data, identify important insights, and filter your leads with precision. ![Indicator Tags](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-analytics-2.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=8481734c0dce9aa1fd77fb569c595beb) You can create up to **10 tags**. Each tag includes: * **Name**: A clear label, required (max **25 characters**), e.g. `"Interested"`, `"Mentioned Competitor"`. * **Color**: Used for visual sorting. Each tag must use a **unique color**, a color already assigned to another tag can't be reused. * **Assignment rule (When to assign)**: A short description of when the tag should be applied, required (max **300 characters**). Tags are assigned automatically during the call, based on the conditions you define. > [card] > > ### Example > > You're asking leads what they usually drink in the morning. You might define: > > * **Tag**: `Coffee` > * **Color**: Brown > * **When to assign**: If the lead mentions drinking coffee > * **Tag**: `Tea` > * **Color**: Green > * **When to assign**: If the lead mentions drinking tea > > These tags will then appear in your lead data and call logs, making it easy to segment and analyze responses. > [!NOTE] > > Indicator Tags are not just for display. They're functional. You can filter campaigns by tag, trigger notifications, or use them to define success in analytics. \ > \\ > > In your **Call Analytics dashboard**, they feed the **Tags** chart, showing each tag's name, its chosen color, and how many calls it was applied to. # Groups Source: https://developers.nlpearl.ai/pages/pearl_groups Organize related Pearls into Groups so they can share the same contacts, interaction history, and optionally a common per-contact memory. ![A Group with its Pearls organized by type](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-cover.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=94eb893334ca9aab98852f2c170823aa) *** ## Overview A **Group** brings together several Pearls - voice, text, or a mix of both - that serve the same customers or the same part of your business. When Pearls belong to the same Group, they can share: * **Contacts** - the same contact records across every Pearl in the Group. * **Interaction history** - a combined view of the calls and chats a contact had with any Pearl in the Group. * **Collected information** - the structured data gathered by any Pearl in the Group. * **Memory** *(optional)* - a single, shared memory for each contact. > [!NOTE] > > A Pearl can belong to **one Group at a time**. Moving it into another Group removes it from the previous one. *** ## Individual vs Shared Memory Two related concepts control how a contact is remembered. > [card] Individual Memory > > A per-Pearl setting (in a Pearl's **Knowledge Base**). When enabled, that specific Pearl remembers a contact and continues from where it left off - **within that single Pearl only**. > [card] Shared Memory > > A **Group-level** setting. When enabled, every Pearl in the Group accesses and updates the **same memory** for a contact, so context carries over between Pearls. > [!WARNING] > > Enabling **Shared Memory** at the Group level is not enough on its own. Each Pearl must **also** have its individual **Memory** toggle enabled (in its Knowledge Base) to participate in the Group's Shared Memory. *** ## Open the Pearls area Groups live inside **Pearls**. Open **Pearls** from the left navigation. ![Pearls in the left navigation](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-open-pearls.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=699a0a1f319cd96d93a7704bff40eaea) Inside **Pearls**, the left sidebar shows **All Pearls** at the top, then a **Groups** section listing your Groups, ending with **Create Group**. **All Pearls** lists every Pearl grouped by type - **Inbound Phone**, **Outbound Phone**, and **Inbound Text** - and each Pearl that belongs to a Group shows the Group name as a **tag** next to its title. ![All Pearls listed by type, each Pearl showing its Group as a tag](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-all-pearls.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=da12cc0d8c0962c9b7e5acb185444bd4) *** ## Create a Group **1. Click Create Group** In the **Groups** section of the sidebar, click **Create Group**. ![Create Group option in the Groups section of the sidebar](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-create-group-button.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=82a3207e63b014ff0f2ff20a5fe801f4) **2. Name the Group** Enter a Group name (required, up to **50 characters**), then click **Create**. ![Create group dialog with the name field and the Create button](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-create-group-dialog.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=f9d1142fb5249e7867129ffe436cb5f8) *** ## Assign Pearls to a Group From **All Pearls**, select one or more Pearls. An action bar appears at the bottom showing the number selected, along with **Move to group**, **Delete**, and **Cancel**. ![Two Pearls selected in All Pearls with the Move to group action bar](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-select-move-to-group.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=0d8a22c3263ddd732b6998817738ed13) Click **Move to group** to open the dialog, then choose the destination Group and click **Move**. Selecting **Remove From Group** takes the Pearls out of their current Group instead. ![Move to group dialog listing the available Groups and Remove From Group](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-move-to-group-dialog.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=d7fb58f546e9552d43d1ca1dba4619f9) > [!NOTE] > > You can also add Pearls from inside a Group, using the **+** action in the **Assigned Pearls** toolbar. *** ## Inside a Group Opening a Group shows three tabs, starting on **Assigned Pearls**. | Tab | Purpose | | - | - | | **Group Settings** | Configure the Group name, Shared Contacts, Shared Memory, Additional Details, Contact Retention, and Delete Group. | | **Assigned Pearls** | View and manage the Pearls that belong to this Group. | | **Shared Contacts** | Browse the contacts shared across the Group's Pearls. | In **Assigned Pearls**, Pearls are grouped by type with a count per section. A toolbar lets you **search**, **sort** (Last edited, Date created, Alphabetical), **filter** by status and type, and switch between **grid** and **list** views. ![Assigned Pearls tab showing Pearls grouped by type with a toolbar](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-assigned-pearls.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=e0019f3a1d9c2c3f3a5f9b3594622868) > [!WARNING] > > Removing a Pearl from a Group does **not** delete it. Only the **Delete** action permanently deletes a Pearl. *** ## Group Settings The **Group Settings** tab is where the Group's behavior is defined. Changes are saved immediately. **1. Group Name** Change the name of this Group. Use the pencil next to the field to rename it. ![Group Name field in Group Settings](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-settings-group-name.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=1350d8146f7b7d2a6376c89b16ae01e8) **2. Shared Contacts, Shared Memory & Additional Details** These three toggles work together and control what Pearls in the Group share about each contact: * **Shared Contacts** - Pearls in the Group use the same contact records and interaction history. * **Shared Memory** - every Pearl accesses and updates the same per-contact memory (see the [memory warning](#individual-vs-shared-memory) above). * **Additional Details** - additional information collected through variables is stored on the contact and shown under **Collected Info**. ![Shared Contacts, Shared Memory, and Additional Details toggles](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-settings-shared-contacts.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=0a4b1b53c4f38d6558f139f44ea6a3c6) **3. Contact Retention** Choose how long contact data is kept before it is automatically deleted. Leave it on **Forever** to keep contacts indefinitely, or set a number of days after which older contacts are removed. ![Contact Retention setting in Group Settings](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-settings-contact-retention.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=b84ecd40bb949b849ef1288c3103ec6e) > [!WARNING] > > Retention-based deletion is permanent. Once a contact is deleted based on the configured period, it cannot be recovered. **4. Delete Group** Permanently delete the Group. The Pearls assigned to it are **not** deleted - only the Group and its shared-contact configuration are removed. ![Delete Group section in Group Settings](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-settings-delete-group.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=499d0db461e5bc87b0576a3163eddd74) *** ## Shared Contacts The **Shared Contacts** tab lists every contact shared across the Group's Pearls, with a search bar and a sortable table: | Column | | | - | - | | **Phone Number** | The contact's phone number. | | **First Name** / **Last Name** | The contact's name, when known. | | **Email** | The contact's email, when known. | | **Reference ID** | An external reference, when provided. | | **Last Contact** | The date and time of the most recent interaction. | Hover a row and click **Open** to view the full contact. ![Shared Contacts table listing contacts shared across the Group](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-shared-contacts-table.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=3dd663b6dd2e1a39f1b1b46442e79334) An opened contact shows its **Contact ID** at the top and three areas: **Contact Information**, **Collected Info**, and **Interactions**. ![Opened contact with Contact Information, Collected Info, and Interactions](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-contact-details.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=48e561192badea08fa9162a5bbab35fc) > [accordion] Contact Information > > The contact's core details: phone number, first and last name, email, reference ID, time zone, and last contact date. > > ![Contact Information section of an opened contact](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-contact-information.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=d0831581e632c5d378dd03c27611eaba) > [accordion] Collected Info > > The values gathered by the Group's Pearls through **variables** (populated when **Additional Details** is enabled). > > ![Collected Info section showing variables gathered by Pearls](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-contact-collected-info.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=065b3cd34ae6d1465942672031b1abf2) > [accordion] Interactions > > Every call and chat the contact had with Pearls in the Group - each entry shows the Pearl name and type, the date, and a status such as **Completed** or **In Progress**, with access to the related call or chat. > > ![Interactions list of the contact's calls and chats with Pearls in the Group](https://mintcdn.com/nlpearl/oLUHXoNGNOC6T0V4/images/dark_mode/groups-contact-interactions.png?fit=max\&auto=format\&n=oLUHXoNGNOC6T0V4\&q=85\&s=9d8f44b363428bad04dd4d6faddfc6e0) > [!NOTE] > > A **Group Contacts** tab also appears on an individual Pearl's page when that Pearl belongs to a Group with **Shared Contacts** enabled. *** ## Best Practices > [!TIP] > > * Group Pearls that serve the **same customers** or the **same workflow**. > * Enable **Shared Memory** only when cross-Pearl continuity is genuinely useful - and remember to enable each Pearl's individual **Memory** toggle. > * Use **variables** for structured information and **Shared Memory** for conversational context. > * Review **Contact Retention** before handling production contact data. > * Name Groups after the team, customer journey, or business process they represent. *** ## Related Documentation > [card] [Pearl Voice](/pages/pearl_voice) > > AI voice agents that handle real phone conversations - inbound and outbound. > [card] [Pearl Text](/pages/text/pearl_text) > > AI text agents that message your customers across SMS, WhatsApp, email, and chat. > [card] [Variables](/pages/variables) > > Collect, store, and reuse data during conversations. > [card] [Pearl Settings](/pages/agent_customization) > > Configure a Pearl's name, language, voice, personality, and time zone. # PearlVibe Source: https://developers.nlpearl.ai/pages/pearl_vibe PearlVibe is a powerful AI-assisted flow editor that allows you to design and visualize conversation flows in a user-friendly, visual interface. Whether you're creating customer surveys, support dialogues, or interactive voice responses, PearlVibe helps you craft natural and personalized conversations. ![PearlVibe cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-vibe-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=9ab9254c57ac79a92bb62faf13ebb548) *** ## Overview ### What is PearlVibe? PearlVibe is an AI‑assisted flow editor for building your agents - both **voice** (phone) and **text** agents. You build your Pearl as a decision tree made of nodes (dialogue, actions, integrations…) and transitions (what happens next depending on user intent, answers, or conversation outcome). [NLPearl - AI Voice Agents](https://www.youtube.com/embed/tTYdxBLxpZ0) > [!NOTE] > > You can work in two complementary ways: > > | View | Description | > | - | - | > | **Chat (default)** | You describe what you want in natural language (e.g. "Add a post‑call SMS when the booking is confirmed"). In **Build** mode, Pearl Vibe creates or edits the nodes and transitions for you; in **Ask** mode, it answers and advises without touching your flow. | > | **Manual Edit** | You open **Manual Edit** on the selected node to configure it and its transitions yourself, for full control. Every setting is visible and editable. | ### What can you build with PearlVibe? With PearlVibe, you can design both **voice** (phone) and **text** (chat) flows: | Flow Type | Use Cases | | - | - | | **Inbound flows** | Support and customer care lines, order tracking, FAQs, triage, appointment management, etc. | | **Outbound campaigns** | Sales campaigns, payment reminders, debt collection, upsell flows, satisfaction surveys, and more. | > [!NOTE] > > Each of these works the same way whether your Pearl is **voice** or **text** — you build the flow once, and the editor adapts labels and available nodes to your Pearl's channel. ### Key benefits > [!TIP] > > * **Build in minutes instead of days** – Describe what you want in the chat, let Pearl build it for you in **Build** mode, then refine visually. > * **Safe versioning** – Work in a separate version with autosave while your Published version keeps running in production. > * **Visual understanding of calls** – Use test calls and live node highlighting to see exactly how calls traverse your flow. > * **Structured but flexible** – Combine high‑level "vibes" (global instructions, personality) with precise node and transition logic. *** ## Header The header is always visible at the top of the editor. From left to right, it holds the **Pearl icon (menu)** and the editable **Pearl title** with its autosave indicator, the **version selector**, the **top navigation tabs**, and — on the right — the **credentials & variables** (`{ }`) button, **Test Call**, and **Publish**. Each of these is detailed below. ![PearlVibe header bar with title, version selector, and top-right controls](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-header-bar.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=03ca4cec943540e76e65dc008606f1b9) > [accordion] Pearl Title & Menu > > The top-left corner shows the Pearl's **title** as an inline, editable field (it reads **Untitled Pearl** by default). Click it to rename your Pearl — this is the label you'll reuse across the platform and in your workspace. Just below, an autosave indicator shows the save status (for example **Saved 2 min ago**). > > ![Inline editable Pearl title with autosave indicator](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/rename-pearl-title.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=383401706a5ebe785555f89ca1207407) > > **Pearl menu** > > The Pearl icon next to the title opens a menu with quick actions for the whole Pearl. > > ![Pearl icon that opens the Pearl menu](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/open-pearl-menu-icon.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=c9cb800796a9ced6d5b2f93ca661f716) > > From this menu you can go back to the Dashboard or Overview, open the Pearl's **Settings**, **Duplicate** or **Delete** the Pearl, check your **Credit Balance**, switch the **Theme**, and reach the Documentation or Support & Feedback. > > ![Pearl menu with dashboard, settings, duplicate, delete, credit balance, and theme options](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-options-menu.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=ec62ccf6b076788b7858bac5b911a609) > [accordion] Versioning & Publishing > > Pearl Vibe is built for safe iteration: you can experiment freely without breaking your live calls. Your work is organized into **versions** (v1, v2, v3…), and the one currently handling calls carries a **Published** badge. > > **Autosave** > > Every change you make is saved automatically. The header shows an **Auto Save** indicator that turns into **Saved N min ago** once your edits are stored, so you never lose work and can come back later. > > *** > > **Versions & history** > > The version selector next to the title shows the version you're editing (for example **v35**). > > ![Version selector next to the Pearl title](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/version-selector.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=1103abf8d426a5350f3e02d35d85914e) > > Open it to browse the full **version history**. You can search for a version, see when each was last edited, spot the **Published** one at a glance, and open any past version to review it. You can also **tag** each version with a label of your own so it's easy to recognize later (e.g. "stable", "summer promo", "before refactor"). > > ![Version history dropdown with a Published badge on the live version](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/version-history-dropdown.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=d4b2b2adf0ca19cef3e78bb527613ae5) > > *** > > **Creating a new version** > > Use the **+** button next to the version selector to create a new version. > > ![Button to create a new version](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/create-new-version-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=2317f127f9ef79b5f243c70e80bab4a6) > > In the **Create New Version** dialog, pick the existing version to use as the base, then click **Create**. > > ![Create New Version dialog with a base version selector](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/create-new-version-popup.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=b3927c5fb0257ad0d581b04bc8e7b7ee) > > > [!TIP] > > > > Editing a version that is already **Published** automatically creates a new version for your changes, so the live configuration keeps running untouched while you iterate. > > **Copying a version to another Pearl** > > To reuse a flow in another Pearl, open the version history, hover the version you want, and click its **copy** icon (*Copy to paste into another Pearl*). Then open the version history of the other Pearl: a **Copied version** row appears at the bottom of the list, with a **Paste** button. > > ![Copied version row with the Paste button in the version history](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/version-paste.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=cccd912989ccacfe868a9a1669e82373) > > **Paste** creates a new version of that Pearl with the copied flow and its credentials, and opens it. The Published version keeps handling calls until you publish the new one. > > > [!NOTE] > > > > You can paste only into another Pearl of the same account and of the same type (voice or text). A copy is pasted once: to reuse the same version in a third Pearl, copy it again. > > *** > > **Publishing** > > When you're satisfied with your changes and tests, click **Publish** (top-right of the header). The current version becomes the new **Published** version and starts handling calls. > > ![Publish, Test Call, and credentials/variables buttons in the header](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/publish-testcall-credential-variable-buttons.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=cc0e151fabe674f04872557ce4a22b56) > > > [!NOTE] > > > > If your flow still has unresolved issues, the **Publish** button is replaced by an **Errors & Tasks (N)** button until you fix or dismiss them (see the **Tasks & Errors** section below). > > The version you are editing and the **Published** version drift apart as soon as you change anything, and they stay apart until you publish again. You don't have to keep track of that yourself: ask in the chat whether what you are editing still matches what is live, and Pearl compares the two for you (see [Chat Sidebar](#chat-sidebar)). > [accordion] Credentials & Variables Managers > > Credentials and variables are what connect your Pearl to the rest of your stack. Both are opened from the **`{ }`** button in the top-right of the header. > > **Variables Manager** > > The **Variables Manager** lets you create, edit, and organize the variables used in your conversation flows. > > ![Variables Manager to create, edit, and organize variables](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-vibe-variables-manager.jpg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=380fcfc42e4db94d3a11b7255b2af76c) > > > [!NOTE] > > > > See the [Variables documentation](/pages/variables) for more details. > > *** > > **Credentials Manager** > > The **Credentials Manager** is where your integrations live: you connect external systems by adding credentials and configuration for each one. Once a credential is added, the matching integration becomes available as a node in your flow. > > ![Credentials Manager to connect external systems](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-vibe-credentials-manager.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=09f42e34eed163b8b023c0a35f7799a5) > > It lets you: > > * Add new integrations (e.g. Salesforce, HubSpot, ticketing tools, booking engines). > * Configure authentication. > [accordion] Tasks & Errors > > As your flows grow, PearlVibe helps you keep them valid, connected, and fully configured. > > > [!WARNING] > > > > **Error detection** > > > > Pearl Vibe automatically scans your Pearl for common issues, such as: > > > > * Nodes without outgoing transitions. > > * Transitions not connected to any node. > > * Missing required fields (for example: API nodes without an endpoint or description). > > * Incomplete campaign or flow configuration. > > > > When such issues are detected, the **Publish** button in the header is replaced by a red **Errors & Tasks (N)** button that signals how many items need your attention. > > ![Errors & Tasks button in the header when issues are detected](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/errors-and-tasks-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=8960b2aef7f3f60b160f9e856870001d) > > **Tasks & Errors panel** > > Clicking the **Errors & Tasks** button opens a right-hand **Tasks & Errors** panel that groups every issue in one place, organized per workspace (Flow Editor, credentials, etc.). Each card names the affected node and what's missing (e.g. "Missing Transition: Budget provided", "Missing Inbound Transition"). > > ![Tasks & Errors panel listing issues per node](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/tasks-and-errors-panel.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=8bbb59d89633e7ccbc4b97bf55a3f3cc) > > Each card offers two actions: > > * **Fix With Pearl** — sends the fix to the chat. In **Build**, the agent proposes the corrected configuration and applies it once you confirm; in **Ask**, it describes the fix instead. > * **Open in editor** — jump directly to the affected node in the Flow Editor. > > ![Selecting an issue card in the Tasks & Errors panel](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/error-item-selected.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=2e1f4419d7914e6ab399a41e658ce560) > > **On the canvas** > > Affected nodes are highlighted in red, and the problem is flagged directly in the node's Transitions section, so you can spot exactly what needs attention. > > ![Node flagged with a missing transition error on the canvas](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-missing-transition-error.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f35033af77c93384e165d6d1c9b7156a) > > You can also fix an issue from the node itself: hovering a node reveals a quick **Fix With Pearl** action, which sends the same request to the chat. > > ![Fix With Pearl quick action on a node](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-ai-fix-button.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=93dffcd89443361de724cc638c4548c3) > > > [!TIP] > > > > You can either fix issues manually or let Pearl draft the corrected configuration for you in the chat — in **Build** mode, it applies it once you confirm. > [accordion] Test Calls & Debugging > > Test calls are the safest way to validate your Pearl before and after publishing. > > > [!NOTE] > > > > On **text** Pearls, these controls read **Test Chat** and **Past Chats** instead of **Test Call** and **Past Calls**. > > **Launching a Test Call** > > Open the **Test Call** menu in the header. From here you switch between the two views: **Test Call** (test your agent by phone) and **Past Calls** (view your call history and details). > > ![Test Call menu to switch between Test Call and Past Calls](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/test-call-dropdown-menu.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=3329c57cd10fe5f76e61f767035c61c2) > > In the **Test Call** panel, choose the **From** and **To** phone numbers, optionally reset the Pearl's memory for a fresh test, prefill opening sentences and lead variables, then click **Call Now**. The Pearl calls that number using the version you're currently editing. > > ![Test Call panel with phone numbers, lead variables, and Call Now button](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/test-call-panel.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=5a6825cde4333efe84b6d64f3816e3b3) > > **Testing from your browser (Web Phone)** > > You don't need a phone to test a voice Pearl. In **From**, pick **Web Phone (this browser)**: you talk to Pearl through your computer's microphone and speakers. The phone number becomes optional, and you choose the microphone next to **Call Now**. > > ![Test Call panel with Web Phone selected, the microphone picker, and the HD audio option](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/test-call-web-phone.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=8bedadd7a7c2a8b95d3a1a6be999f55b) > > | Option | Description | > | - | - | > | **HD audio** checked | High-definition audio (24 kHz) in both directions. | > | **HD audio** unchecked | Phone-line audio (8 kHz), as a real caller hears Pearl. Use it to judge how your Pearl really sounds on the phone. | > > Once connected, the call continues in a small floating window that stays on screen while you move around the platform, with the call duration and controls to mute your microphone or hang up. The call then appears in **Past Calls** like any other test call. > > > [!NOTE] > > > > Your browser asks for microphone access the first time. If no microphone is found, **Call Now** stays disabled. > > *** > > **Live Node Tracing** > > During the test call, a **Ringing… / Stop Following** pill appears and the nodes in the canvas light up one after another as the conversation progresses, so you can visually follow the path the call is taking through your flow. > > ![Live node tracing during a test call with a Stop Following pill](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/live-call-ringing-stop-following.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=a53574e68f3e88ab8a5be70855df03ee) > > > [!TIP] > > > > This helps you understand why a certain question was asked, see which transition was taken at each step, and debug misrouted calls or unexpected behaviors. > > *** > > **Past Calls** > > The **Past Calls** view lists your previous test calls grouped by date. Open any entry to inspect its details and verify that your flow — including post-call automation — behaved as expected. > > ![Past Calls panel listing previous test calls by date](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/past-calls-panel.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f8906b9f1d1021218f11638b29e71a99) > > > [!NOTE] > > > > To learn more about post-call actions, see the [Post-Call documentation](/pages/postcall) — or, for text Pearls, the [Post-Chat documentation](/pages/text/postchat). *** ## Chat Sidebar The chat sidebar is where you work on your Pearl — by talking to PearlVibe in natural language, either to ask it about your flow and your calls or to have it create and edit the flow for you, or by switching to Manual Edit to configure things by hand. ![Chat sidebar on the left of the editor](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/chat-sidebar-overview.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=8a9820685522ffb9f1e57968daeff838) It combines two complementary views: | View | Description | | - | - | | **Chat** | Describe what you want in natural language. This is the default view, and it has two modes: **Ask**, which only answers and advises, and **Build**, which changes your flow. | | **Manual Edit** | Explicit, hands-on configuration of the selected node. | The Chat view is covered in two parts below: building your flow, and using the chat to investigate it. > [!NOTE] > > When a node is selected, everything you ask for in this sidebar is interpreted in the context of that node — unless it is explicitly global (like General Instructions), or you are asking about the flow as a whole, a past call, or the Published version (see **Investigating your flow and your calls** below). > [accordion] Chat > > ![Chat panel in the left sidebar](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-chat-panel.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f78681f55d8dd71861e2ecb9584b9c87) > > This is the default view. You describe what you want in natural language, and Pearl either answers you or builds it into your current version — depending on the mode you are in. > > **Ask and Build** > > The composer carries a pill showing the current mode. Click it to open the mode menu and switch. The chat opens in **Build**. > > | Mode | What it does | > | - | - | > | **Ask** | Investigates, checks, and advises. It reads your flow and your calls and answers your questions, but it never changes anything. | > | **Build** | Makes the changes you ask for, after you confirm them. | > > The same sentence gives you two different outcomes. "Add an SMS step after the booking step" in **Ask** gets you a description of the change and an invitation to switch to **Build**, and your flow is left untouched. The same sentence in **Build** gets you a short plan, a confirmation, and then the step itself in the editor. > > > [!NOTE] > > > > Deletions are always confirmed by name. "Delete the booking step" is answered with a confirmation naming the node, and it is only removed once you say yes. > > **Typical operations you can perform:** > > These are all **Build** mode operations — in **Ask**, Pearl describes what it would do instead of doing it. > > | Operation | Example | > | - | - | > | **Create or delete nodes** | "Add a qualification step after the greeting." | > | **Edit a node's content and behavior** | "Make the opening more formal and mention our summer offer." | > | **Add, rename, or reconnect transitions** | "Add a 'Not interested' branch that ends the call politely." | > | **Attach actions** | "Send a confirmation SMS after a successful booking." (API calls, SMS, email, transfers, etc.) | > | **Configure post-call logic** | "Log the outcome to the CRM once the call ends." | > > **The composer** > > Type your instruction in the composer — its placeholder reads **Ask Pearl…** whichever mode you are in. For example: "Split this node into three outcomes based on payment status.", "After a successful payment, send a confirmation SMS and end the call.", "Create a post-call node that logs the outcome to the CRM." Press **Send**: in **Build**, Pearl answers with its plan and updates the editor once you confirm; in **Ask**, it answers without touching your flow. > > ![Chat composer input box](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/ask-pearl-input-box.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=e712ccea6c85d799e9636fc82a5ef076) > > The composer includes a few helpers: > > * **Attach files** — add supporting material (FAQs, pricing sheets, policy docs, playbooks…) to enrich the Pearl's knowledge and reference it in node prompts. > > ![Attach file button in the chat composer](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/ask-pearl-attach-file-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=aa601da58b511783e8927c76497d76be) > > Accepted formats: `.pdf`, `.docx`, `.txt`, `.jpg`, `.jpeg`, `.png`, `.webp`, `.gif`, `.mp3`, `.m4a`, `.wav`, `.webm` — up to **10 files per message**. > > > [!TIP] > > > > You can attach a **full recording of a real conversation** (e.g. an `.mp3` or `.wav` call) and ask PearlVibe to build the flow from it — in **Build** mode, it turns the exchange into nodes and transitions for you. > > * **Enhance prompt** — rewrite a rough or short instruction into a clearer, more structured request before it runs. > > ![Enhance prompt button in the chat composer](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/ask-pearl-ai-suggest-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=0f8e9e3f139b9e3cdcffc324a9585a54) > > * **Voice input** — dictate your instruction instead of typing it. > > ![Voice input button in the chat composer](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/ask-pearl-voice-input-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=5ef2eb46b28f99b35d45ee8e64a77e5e) > > **Node context** > > When a node is selected in the canvas, its name appears as a pill above the composer. Any instruction you send while this pill is active is interpreted in the context of that node (for example: "Change the greeting", "Add a failure transition that transfers to support"). > > ![Node context pill above the chat composer](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/ask-pearl-node-context-panel.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=4a25e862c7d2b27aa5e44dadc0953b8b) > > **Reviewing what Pearl builds** > > In **Build** mode, Pearl usually shows a short plan before applying larger edits and asks you to confirm (for example **Yes, build it**) — or you can answer it directly in the composer. > > ![Pearl asking to confirm before building changes](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/build-changes-confirmation.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=08287e065d74fe93dd04400bb547d0fd) > > When Pearl needs a decision, it can present interactive choices right in the chat (for example, which CRM to connect). > > ![Interactive choice prompt in the chat](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/crm-selection-prompt.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=a2e34babebd30aeabc6ce08392198765) > > Once applied, each batch of edits appears as a **Changes** card summarizing what was added and removed. > > ![Changes card summarizing applied edits](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/changes-summary-panel.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=6293f34d4bfb90e2a033947b73637ef6) > > Expand it (**View more**) to see the full diff — added, edited, and removed nodes and transitions, highlighted in green and red. > > ![Expanded diff of the applied changes](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/changes-diff-expanded.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=545b64dc9e02d09283d5a05cac5e41dc) > > If you don't want to keep a batch, click **Undo changes** to roll it back. > > ![Undo changes button on a Changes card](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/undo-changes-button.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=692050eb3697e6ced2350f200a3b4b55) > > > [!TIP] > > > > Chat is the recommended entry point to quickly build or refactor a flow, especially for large or complex trees. > [accordion] Investigating your flow and your calls > > Pearl can read your flow and your calls, not only change them. Ask it a question about either and it goes and reads the material itself. All of this works in **Ask** mode as well as in **Build**, since none of it changes your flow. > > **Reading a past call** > > Ask *"Look at my last test call and tell me what happened"* and Pearl reads the call itself — the lines that were exchanged, the nodes the call went through, and what your API steps returned. You don't have to open the call and go through the transcript yourself. > > It works the same way on a text Pearl — ask about your last test chat instead. > > **Asking why something went wrong** > > You can go straight to the question instead of to the evidence: *"Investigate why my agent skipped the booking."* Pearl pulls up the relevant calls on its own and answers from what it finds in them. > > **What changed since the published version** > > Pearl knows both the version you are editing and the **Published** one that is handling your calls, and it can compare them. Ask *"What changed since the published version?"* after editing a node, or *"Is what I'm editing still the same as what is live?"*, and it tells you exactly what you have changed since. > > **Checking the flow for problems** > > *"Check my flow for problems"* gets you a structural review: nodes that lead nowhere, transitions that connect to nothing, configuration left unfinished. If your Pearl has already taken calls, it also reports which API steps behaved inconsistently across them. > > > [!TIP] > > > > This is the quickest way to use your call history: instead of opening past calls one by one, ask Pearl what happened in them. > [accordion] Manual Edit > > Select a node in the canvas, then click the **Manual Edit** button at the bottom of the sidebar to configure it by hand. > > ![Manual Edit button at the bottom of the chat sidebar](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/manual-edit-button.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=beab9e04b057b14bef9ac43c1dc2e3c6) > > Manual Edit always targets the currently selected node (shown by the node context pill). > > ![Manual Edit with a node selected in the canvas](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/manual-edit-with-node-selected.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=700ff81aa7627b07e7797df03fa201a1) > > It is split into two tabs: **Edit** and **Transitions**. > > **The Edit tab** > > Exposes all the settings specific to the current node type (Script / Free Text, Instructions, variables…). What you see here changes depending on whether the node is a Dialogue, API, SMS, Email, Transfer, Integration, or Post-Call node. > > ![Edit tab of a node in Manual Edit](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-edit-panel-open.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=55e018c8db7d352158fa9b203496541b) > > In short, the Edit tab is where you configure what this node does internally, based purely on its type. > > > [!NOTE] > > > > Routing to other nodes is not handled here, but in the Transitions tab. > > **The Transitions tab** > > Defines how the conversation can exit this node. Each transition is a labeled branch (for example "Agreed to future contact") pointing to the next node, and you add new ones with **New Transition**. > > ![Transitions tab in Manual Edit with a transition and the New Transition button](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-transitions-tab.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=da583cc2f1a74d6d0c127acc1092e6eb) > > From here you can: > > * **Create transitions** – Add exits such as "Success", "Failure", "No answer", "Customer asks for human", etc. > * **Connect transitions** – Choose the target node for each transition to shape the path of the conversation. > * **Edit or delete transitions** – Rename transitions, change their destination, or remove them when they are no longer needed. > > **Back to Chat** > > When you're done, click **Back to Chat** to return to the chat. > > ![Back to Chat button in Manual Edit](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/back-to-chat-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=8b97de43661cf5332f5646e0d349f5ba) > > > [!NOTE] > > > > Any modification done in Manual Edit is immediately reflected in the visual flow and remains fully understood by Pearl. > > > > You can freely switch between Chat and Manual Edit as you work on the same node. *** ## Central Canvas The central canvas displays your flow as a graph of nodes and transitions. ![Central canvas showing the flow as a graph of nodes and transitions](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/flow-editor-canvas.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=e331f81f9a3596ad09e2b2aaebd0d1a9) | Element | Description | | - | - | | **Nodes** | Each node represents a step in the conversation (a message, an action, or a set of actions). | | **Transitions** | Each transition represents a possible path from one node to another based on intents, recognition results, or business logic. | **From the canvas you can:** | Action | Description | | - | - | | **Add, connect, branch, disconnect** | Create nodes and wire transitions to shape the flow. | | **Move, pan & zoom** | Navigate large trees comfortably. | | **Search** | Find a node by name or content. | | **Reorganize** | Re-lay out the flow automatically (auto-layout). | | **Go to Start / End** | Jump straight to the beginning or end of the flow. | | **Hover preview** | See a quick summary of what a node does. | | **Quick actions** | Fix, Edit, Duplicate, or Delete a node in place. | | **Undo / Redo** | Roll your latest changes back and forth. | > [!NOTE] > > The canvas has no minimap — use zoom, pan, **Reorganize**, and **Search** to move around instead. **Right toolbar** The vertical toolbar on the right groups the navigation controls: **Undo / Redo**, **Go to Start / End**, **Reorganize** (auto-layout), and **Zoom in / out**. ![Right toolbar with undo/redo, go to start/end, reorganize, and zoom](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/flow-editor-right-toolbar.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=b0f59a18d11faf709111a6e86bd32d95) > [accordion] Node Types Overview > > Pearl Vibe supports several node types: > > | Node Type | Description | > | - | - | > | **Start node** | Entry point of the flow. | > | **In‑Call nodes** | Actions that occur while the caller is on the line. | > | **Integration nodes** | Interactions with external systems (CRM, ticketing, booking…). | > | **End Call node** | The node that ends the conversation. | > | **Post‑Call nodes** | Actions executed after the call has ended. | > > > [!NOTE] > > > > **Understanding Node Types: Pre-Call, In-Call & Post-Call** > > > > Your Pearl flow is built around three categories of nodes, each designed for a specific moment in the call lifecycle. Knowing the difference is essential to avoid misusing an action or expecting behavior that can't happen at that stage. > > > > **1. Pre-Call Nodes: Before the call starts** > > > > These nodes run prior to dialing or answering. They're ideal for preparing context: fetching customer data, checking availability, validating an ID, loading account information. They cannot interact with the caller and cannot create or import leads. > > > > **2. In-Call Nodes: During the conversation** > > > > These nodes control everything that happens while the caller and the agent are connected. Dialogue, decision logic, sending SMS/emails, API calls, and CRM updates all happen here in real time. This is the core of your conversational flow. > > > > **3. Post-Call Nodes: After the call ends** > > > > Once the call is finished, these nodes handle asynchronous tasks: writing CRM logs, creating leads, triggering webhooks, updating databases, or launching follow-up workflows. They cannot affect what happened during the call, only what happens after. > [accordion] Start Node > > Every flow begins with a Start node. It controls how the conversation is initiated. > > ![Start node at the entry point of the flow](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/start-node.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=6e03a2b99bed2e763cc6813e19dc9979) > > You can configure it in two ways: > > | Configuration | Description | > | - | - | > | **Opening sentence** | A standard greeting and first question, for example: "Hi, you've reached \[Company]. How can I help you today?" | > | **Pre‑Call API** | Before the Pearl speaks, it can call an external API (for example to fetch order details, check account status, or pre‑qualify the caller). The API response can then change the opening sentence, route the caller toward different branches, or preload variables and context. On text Pearls this is labeled **Pre‑Chat API**. | > > > [!NOTE] > > > > **The Pearl says the opening sentence almost word for word.** In a Dialogue node, your text is only a guide: the Pearl adapts it to what the customer says. > > > [!NOTE] > > > > The Pre-Call API cannot be used to import leads into your Pearl. Its purpose is strictly to enrich or prepare contextual data before the call starts > [accordion] In‑Call Nodes > > In‑Call nodes represent the actions and dialogues that happen during the conversation. In the **Add Node** picker they're split into **Live Global Nodes** (Dialogue, Knowledge Base) and **Live Action Nodes** (SMS, Email, API, Transfer Call). > > ![In-call nodes across the conversation flow](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/full-flow-selected.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=90c58d74bf4972f692418aa397c7c119) > > | Node Type | Description | > | - | - | > | **Dialogue** | The Pearl speaks, listens, and interprets the customer's response according to your instructions. | > | **Knowledge Base** | Answer questions using your Pearl's configured knowledge base. | > | **Send SMS** | Send a text message during the call (e.g. a confirmation code, a link, or a summary). *Voice only — hidden on text Pearls.* | > | **Send Email** | Trigger an email to the customer or your team. | > | **API** | Call an external API (e.g. update a record, check availability, create a ticket). | > | **Transfer Call** | Transfer the caller to a human agent or another phone number. *Voice only — hidden on text Pearls.* | > | **Hand-Off** | Hand the conversation over to a human. *Text Pearls only.* | > | **Recording** | Control call recording (availability depends on your platform). | > > > [!NOTE] > > > > Integration-specific actions (e.g. Google Calendar, Salesforce) appear in a separate **Integration Nodes** group of the picker — see below. > [accordion] Integration Nodes > > Integration nodes let your Pearl interact directly with external tools and services without writing any API code yourself. Technically, each one is an **API node pre-configured with an integration credential** from the **Credentials Manager** — it handles authentication, request formatting, and data mapping for you. They appear in a dedicated **Integration Nodes** group of the **Add Node** picker. > > ![Integration node configured from a credential](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-vibe-integration-node.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f0e61c56057f78a7fe620728ab45537e) > > **Integration node variants:** > > | Variant | Description | > | - | - | > | **In-Call Integration Nodes** | Executed while the caller is still on the line (e.g. checking a CRM record before answering). | > | **Post-Call Integration Nodes** | Executed after the call ends (e.g. logging call results into a ticketing system). | > > **What Integration Nodes Do** > > Integration nodes encapsulate tasks such as: > > | Category | Examples | Tasks | > | - | - | - | > | **CRM operations** | Salesforce, HubSpot, Pipedrive… | Create or update records, attach call results, sync contact data. | > | **Helpdesk platforms** | Zendesk, Freshdesk… | Create tickets, update statuses, push conversation summaries. | > | **Booking engines** | Calendly, Cloudbeds, Shore… | Check availability, create reservations, cancel or modify bookings. | > | **Search & data services** | Algolia, Elasticsearch… | Query product/catalog data, validate inputs, or retrieve structured info. | > | **Payments & billing** | Stripe, Paystack… | Check payment status, initiate a payment link workflow, validate customer identity. | > | **Custom Integrations** | Any configured integration | Any integration you configure in the Credentials Manager becomes available here as a dedicated node. | > > **How They Work** > > | Feature | Description | > | - | - | > | **Secure Credentials** | The Credentials Manager stores credentials securely (API keys, tokens, IDs…). | > | **Available as Node** | Once connected, each service becomes available as a node in the flow. | > | **Simple Configuration** | The node exposes only the required parameters, no API documentation or coding needed. | > | **Data Mapping** | Returned data can be mapped to variables and used later in the conversation. | > > **Available Integrations** > > ![](https://assets.nlpearl.ai/Integrations/ActiveCampaign.svg) ActiveCampaign![](https://assets.nlpearl.ai/Integrations/Airtable.svg) Airtable![](https://assets.nlpearl.ai/Integrations/Algolia.svg) Algolia![](https://assets.nlpearl.ai/Integrations/Anthropic.svg) Anthropic![](https://assets.nlpearl.ai/Integrations/AssemblyAI.svg) AssemblyAI![](https://assets.nlpearl.ai/Integrations/Backblaze.svg) Backblaze![](https://assets.nlpearl.ai/Integrations/Baserow.svg) Baserow![](https://assets.nlpearl.ai/Integrations/Bitly.svg) Bitly![](https://assets.nlpearl.ai/Integrations/Brevo.svg) Brevo![](https://assets.nlpearl.ai/Integrations/Cal.svg) Cal.com![](https://assets.nlpearl.ai/Integrations/Calendly.svg) Calendly![](https://assets.nlpearl.ai/Integrations/Clearbit.svg) Clearbit![](https://assets.nlpearl.ai/Integrations/ClickUp.svg) ClickUp![](https://assets.nlpearl.ai/Integrations/Cloudflare.svg) Cloudflare![](https://assets.nlpearl.ai/Integrations/Cohere.svg) Cohere![](https://assets.nlpearl.ai/Integrations/Contentful.svg) Contentful![](https://assets.nlpearl.ai/Integrations/Convertkit.svg) Convertkit![](https://assets.nlpearl.ai/Integrations/CustomerIO.svg) Customer.io![](https://assets.nlpearl.ai/Integrations/Datadog.svg) Datadog![](https://assets.nlpearl.ai/Integrations/DeepL.svg) DeepL![](https://assets.nlpearl.ai/Integrations/DigitalOcean.svg) DigitalOcean![](https://assets.nlpearl.ai/Integrations/Discord.svg) Discord![](https://assets.nlpearl.ai/Integrations/Elasticsearch.svg) Elasticsearch![](https://assets.nlpearl.ai/Integrations/Freshdesk.svg) Freshdesk![](https://assets.nlpearl.ai/Integrations/Ghost.svg) Ghost![](https://assets.nlpearl.ai/Integrations/GoogleCalendar.svg) Google Calendar![](https://assets.nlpearl.ai/Integrations/GoogleDocs.svg) Google Docs![](https://assets.nlpearl.ai/Integrations/GoogleSheets.svg) Google Sheets![](https://assets.nlpearl.ai/Integrations/Grafana.svg) Grafana![](https://assets.nlpearl.ai/Integrations/Groq.svg) Groq![](https://assets.nlpearl.ai/Integrations/Hetzner.svg) Hetzner![](https://assets.nlpearl.ai/Integrations/Hubspot.svg) HubSpot![](https://assets.nlpearl.ai/Integrations/HuggingFace.svg) HuggingFace![](https://assets.nlpearl.ai/Integrations/Hunter.svg) Hunter![](https://assets.nlpearl.ai/Integrations/InfluxDB.svg) InfluxDB![](https://assets.nlpearl.ai/Integrations/JotForm.svg) JotForm![](https://assets.nlpearl.ai/Integrations/Lemlist.svg) Lemlist![](https://assets.nlpearl.ai/Integrations/Magento.svg) Magento![](https://assets.nlpearl.ai/Integrations/MailerLite.svg) MailerLite![](https://assets.nlpearl.ai/Integrations/Mailgun.svg) Mailgun![](https://assets.nlpearl.ai/Integrations/Mailjet.svg) Mailjet![](https://assets.nlpearl.ai/Integrations/Mandrill.svg) Mandrill![](https://assets.nlpearl.ai/Integrations/Matrix.svg) Matrix![](https://assets.nlpearl.ai/Integrations/Mattermost.svg) Mattermost![](https://assets.nlpearl.ai/Integrations/MessageBird.svg) MessageBird![](https://assets.nlpearl.ai/Integrations/Metabase.svg) Metabase![](https://assets.nlpearl.ai/Integrations/MicrosoftOutlook.svg) Microsoft Outlook![](https://assets.nlpearl.ai/Integrations/MinIO.svg) MinIO![](https://assets.nlpearl.ai/Integrations/MistralAI.svg) Mistral AI![](https://assets.nlpearl.ai/Integrations/Mocean.svg) Mocean![](https://assets.nlpearl.ai/Integrations/MongoDB.svg) MongoDB![](https://assets.nlpearl.ai/Integrations/MQTT.svg) MQTT![](https://assets.nlpearl.ai/Integrations/MSG91.svg) MSG91![](https://assets.nlpearl.ai/Integrations/MySQL.svg) MySQL![](https://assets.nlpearl.ai/Integrations/Netlify.svg) Netlify![](https://assets.nlpearl.ai/Integrations/NewRelic.svg) New Relic![](https://assets.nlpearl.ai/Integrations/NocoDB.svg) NocoDB![](https://assets.nlpearl.ai/Integrations/OpenAI.svg) OpenAI![](https://assets.nlpearl.ai/Integrations/OpenRouter.svg) OpenRouter![](https://assets.nlpearl.ai/Integrations/OpenWeatherMap.svg) OpenWeatherMap![](https://assets.nlpearl.ai/Integrations/Pabbly.svg) Pabbly![](https://assets.nlpearl.ai/Integrations/Paddle.svg) Paddle![](https://assets.nlpearl.ai/Integrations/PagerDuty.svg) PagerDuty![](https://assets.nlpearl.ai/Integrations/Perplexity.svg) Perplexity![](https://assets.nlpearl.ai/Integrations/Pinecone.svg) Pinecone![](https://assets.nlpearl.ai/Integrations/Plivo.svg) Plivo![](https://assets.nlpearl.ai/Integrations/PostHog.svg) PostHog![](https://assets.nlpearl.ai/Integrations/PostgreSQL.svg) PostgreSQL![](https://assets.nlpearl.ai/Integrations/Postmark.svg) Postmark![](https://assets.nlpearl.ai/Integrations/Pushover.svg) Pushover![](https://assets.nlpearl.ai/Integrations/Qdrant.svg) Qdrant![](https://assets.nlpearl.ai/Integrations/RabbitMQ.svg) RabbitMQ![](https://assets.nlpearl.ai/Integrations/Redis.svg) Redis![](https://assets.nlpearl.ai/Integrations/Replicate.svg) Replicate![](https://assets.nlpearl.ai/Integrations/Rocketchat.svg) Rocketchat![](https://assets.nlpearl.ai/Integrations/Salesforce.svg) Salesforce![](https://assets.nlpearl.ai/Integrations/SendGrid.svg) SendGrid![](https://assets.nlpearl.ai/Integrations/Sendy.webp) Sendy![](https://assets.nlpearl.ai/Integrations/Sentry.svg) Sentry![](https://assets.nlpearl.ai/Integrations/Serp.svg) Serp![](https://assets.nlpearl.ai/Integrations/SIGNL4.svg) SIGNL4![](https://assets.nlpearl.ai/Integrations/SparkPost.svg) SparkPost![](https://assets.nlpearl.ai/Integrations/Square.svg) Square![](https://assets.nlpearl.ai/Integrations/StabilityAI.svg) Stability AI![](https://assets.nlpearl.ai/Integrations/Strapi.svg) Strapi![](https://assets.nlpearl.ai/Integrations/Supabase.svg) Supabase![](https://assets.nlpearl.ai/Integrations/Telegram.svg) Telegram![](https://assets.nlpearl.ai/Integrations/TogetherAI.svg) Together AI![](https://assets.nlpearl.ai/Integrations/Twilio.svg) Twilio![](https://assets.nlpearl.ai/Integrations/Typeform.svg) Typeform![](https://assets.nlpearl.ai/Integrations/Vercel.svg) Vercel![](https://assets.nlpearl.ai/Integrations/Vonage.svg) Vonage![](https://assets.nlpearl.ai/Integrations/Wasabi.svg) Wasabi![](https://assets.nlpearl.ai/Integrations/Weaviate.svg) Weaviate![](https://assets.nlpearl.ai/Integrations/WooCommerce.svg) WooCommerce![](https://assets.nlpearl.ai/Integrations/WordPress.svg) WordPress![](https://assets.nlpearl.ai/Integrations/Wufoo.svg) Wufoo![](https://assets.nlpearl.ai/Integrations/Yourls.svg) Yourls![](https://assets.nlpearl.ai/Integrations/Zulip.svg) Zulip > [accordion] End Call & Post‑Call Nodes > > **End Call node** > > This node closes the conversation gracefully (e.g. "Thanks for your time, goodbye."). It is typically the last in‑call node. On text Pearls it's labeled **End Chat**. > > ![End Call node closing the conversation](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/end-call-node.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=0bac36d4625ca4b019a024fd1f8ad3c5) > > **Post‑Call nodes** > > After the End Call node, you can add Post‑Call nodes via transitions. These nodes execute actions after the call has ended, such as: > > * Sending a summary SMS. > > * Writing a detailed log into your CRM. > > * Triggering a webhook. > > * Sending internal notifications to your team. > > > [!NOTE] > > > > Post‑Call nodes support many of the same actions as In‑Call nodes but are not constrained by real‑time conversation. In the **Add Node** picker, the Post-Call tab offers **SMS**, **Email**, and **API** nodes. > > ![Column of post-call action nodes](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-action-nodes.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=0258d9785a89752178793473aeaa3581) > [accordion] Node Structure > > Each node shares a common structure. > > **Header** > > * Icon representing the type of node. > * Node name, editable to reflect its role ("Payment check", "Qualification", "Post‑call CRM update"…). > > ![Node header with type icon and editable name](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-header.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=532c1def2bfde833289a493a3ed27f3d) > > **Transitions list** > > Under the header, you see the list of transitions for this node (e.g. "Success", "Failure", "No match", "Ask for human"). From here you can: > > * See which node each transition points to. > * Click to navigate along the transition. > * Disconnect or reconnect transitions to reshape the flow. > > ![A node's transition branches listed under its header](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-transition-branches.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=0d8a2cd1d6b6080c1f720d9b2d327212) > > **Quick actions** > > Selecting a node reveals quick actions right below it — **Edit**, **Duplicate**, and **Delete**. > > ![Node quick actions: edit, duplicate, and delete](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-action-buttons-edit-duplicate-delete.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dbb43321e5f6cebf0e7f30aac51337a4) > > **Node colors when selected** > > When you select a node, the canvas colors the surrounding nodes to show their position relative to it: > > | Border color | Meaning | > | - | - | > | **Blue** | Nodes that come **before** the selected node. | > | **Green** | The **selected** node (the current one). | > | **Orange** | Nodes that come **after** the selected node. | > > ![Selected node with blue (previous), green (current), and orange (next) node borders](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/qualify-nodes-flow-view.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=bffd680b0da434a7128aa8dc577b8bdd) > > **Hover popover** > > When you hover a node in the canvas, a preview card shows a short summary of what it does — its main instruction or script, key actions, and transitions. > > ![Hover preview card summarizing a node](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-details-preview-card.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=4d8e47fce5418b5519d46ee3cad69d90) > [accordion] Bottom tools > > The toolbar at the bottom of the canvas groups three controls. > > ![Bottom toolbar with Add Node, General Instructions, and Search](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/flow-editor-bottom-toolbar.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=d64aab2149b334a32723465725a95bb7) > > | Tool | Description | > | - | - | > | **Add Node** | Open the node picker to browse and insert new nodes into the flow. | > | **General Instructions** | Open a modal to define global guidance for the whole flow. | > | **Search** | Search across all nodes by name or content and jump directly to the node you need. | > > **Add Node** > > ![Add Node button in the bottom toolbar](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/add-node-button.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=ded949f1cf8dbd42b5d642d5963b4f07) > > The **Add Node** picker is organized by moment in the conversation — **Pre-Call**, **In-Call**, and **Post-Call** tabs (labeled **Pre-Chat / In-Chat / Post-Chat** on text Pearls) — and, within a tab, by group: > > | Tab | Addable nodes | > | - | - | > | **Start** | Opening Sentence **or** Pre-Call API (Pre-Chat API on text). | > | **In-Call** | **Live Global Nodes**: Dialogue, Knowledge Base — **Live Action Nodes**: SMS\*, Email, API, Transfer Call\*, Hand-Off (text only), Recording. | > | **Post-Call** | SMS, Email, API. | > | **Integration** | Dynamic integration nodes — an API node pre-filled with an integration credential from the Credentials Manager. | > > ![Add Node picker with Pre-Call, In-Call, and Post-Call tabs and node groups](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/add-node-menu.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=b244f1d363380c2bceb0a1e03aa153a3) > > > [!NOTE] > > > > \*On **text** Pearls, **SMS** and **Transfer Call** are hidden from the picker, while **Hand-Off** is available only on text. Post-call **SMS** remains available for both. > > **General Instructions** > > The middle button opens **General Instructions**, a modal where you define global guidance for the whole flow — persona, tone, strategy, and guardrails. These act as a "meta prompt" layered on top of individual nodes. > > ![General Instructions button in the bottom toolbar](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/node-list-panel-button.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=e8a155d67512853b28f481e65bacd784) > > ![General Instructions modal with global flow guidance](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/general-instructions-modal.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=d7b4a32dce3adc199ba83873c9f8d385) > > **Search** > > ![Search button in the bottom toolbar](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/search-nodes-button.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=e4e77c01e4c78b1ea517eb7ab68677e9) *** ## Top Navigation tabs The top navigation switches between the main workspaces of your Pearl. **Flow Editor** is the PearlVibe editor covered on this page; the other tabs configure your Pearl's identity, knowledge, analytics, and campaign behavior. ![Top navigation tabs: Pearl Settings, Knowledge Base, Analytics, campaign settings, and Flow Editor](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/top-navigation-tabs.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=738b7006860490aa1b5d7ea3e6134255) > [card] [Pearl Settings](/pages/agent_customization) > > Set your agent's name, language, voice, personality, and timezone. > [card] [Knowledge Base](/pages/knowledge_base) > > Give Pearl the company context and knowledge it needs to answer accurately. > [card] [Analytics](/pages/pearl_analytics) > > Define success, apply indicator tags, and track your Pearl's performance. > [card] [Inbound Settings](/pages/inbound) > > Configure how your Pearl answers incoming calls. > [card] [Outbound Settings](/pages/outbound) > > Configure how your Pearl runs outbound campaigns. # Pearl Voice Source: https://developers.nlpearl.ai/pages/pearl_voice Build AI voice agents that handle real, natural conversations - inbound, outbound, or streamed from your own app - in 20+ languages. [Meet NLPearl: The New Standard for AI Customer Experience](https://www.youtube.com/embed/2TILzwl3-Ns) ## What is Pearl Voice? Pearl Voice lets you create AI voice agents that handle real phone conversations at scale. Built on a proprietary speech-to-speech architecture, Pearl delivers natural, low-latency, full-duplex voice interactions across 20+ languages - for both inbound support lines and outbound campaigns. [NLPearl - Pearl Voice](https://www.youtube.com/embed/NKkLXcdde1I) > [!NOTE] > > New to NLPearl? The [Quick Start](/pages/getting_started) walks you from sign-up to your first live call in minutes - with complimentary minutes to test, no subscription required. *** ## How it works **1. Build your agent** Use [PearlVibe](/pages/pearl_vibe) to define your agent's personality, knowledge base, conversation logic, and connected actions - all through a single prompt-driven interface. **2. Deploy on a phone line** Assign an [NLPearl number](/pages/nlpearl_phones), or connect [Twilio](/pages/twilio_integration) or your own [SIP-compatible VoIP](/pages/custom_voip) provider to launch inbound lines or outbound campaigns. Your agent starts handling real calls immediately. **3. Monitor and optimize** Track performance with real-time [analytics](/pages/analytics), review [post-call](/pages/postcall) transcripts and summaries, and iterate on your agent's behavior. *** ## Use cases Pearl Voice fits a wide range of scenarios across both inbound lines and outbound campaigns. Here are some of the most common. > [tab] Inbound > > | Use case | What Pearl does | > | - | - | > | **Customer Support** | Answer incoming calls, resolve questions, and route to the right team - 24/7, at scale. | > | **Technical Support** | Guide customers through issue resolution step by step and escalate when needed. | > | **Order Tracking** | Give instant updates on orders, shipments, and delivery status. | > | **Appointment Scheduling** | Book, confirm, and reschedule appointments with real-time calendar integrations. | > | **Complaints & Returns** | Capture complaints, process returns and refunds, and log everything to your CRM. | > | **Lead Intake & Qualification** | Qualify inbound leads, collect their details, and schedule follow-ups. | > [tab] Outbound > > | Use case | What Pearl does | > | - | - | > | **Sales & Prospecting** | Call leads, qualify prospects, pitch your offer, and book meetings. | > | **Lead Qualification** | Score leads through dynamic conversations and sync results to your pipeline. | > | **Appointment Reminders** | Send reminder calls to cut no-shows by up to 70%. | > | **Payment & Collections** | Automate payment reminders and capture promises to pay. | > | **Re-engagement** | Revive dormant accounts, abandoned carts, and inactive customers. | > | **Surveys & Feedback** | Run post-service satisfaction checks and market research calls at scale. | > [!TIP] > > Want ready-to-use prompts for your industry - hospitality, healthcare, e-commerce, legal, insurance, and more? Browse the examples in the [Quick Start](/pages/getting_started). *** ## Models Every Pearl runs on a voice model that defines how it reasons, how fast it responds, and how much it costs per minute. Pick the model that matches your use case - from deep reasoning for complex conversations to ultra-low cost for simple, high-volume flows. > [!NOTE] > > Pricing is relative to the **Standard Rate** (Pearl Trident). Credit adjustments apply per minute of conversation. | Model | Description | Reasoning | Speed | Pricing | | - | - | - | - | - | | **Pearl Flame** | Our fastest model, with stronger reasoning than Arrow, optimized for ultra-low latency - the recommended default. Available with the PearlVibe editor. | Medium | Fastest (\~700 ms) | +1 credit/min | | **Pearl Hydra** | Our smartest model, for demanding use cases that need deeper reasoning, stronger understanding, and higher-quality responses. | High | Standard (\~1,250 ms) | +2 credits/min | | **Pearl Arrow** | Our low-latency model - the same reasoning level as Trident, optimized for ultra-low latency. | Medium | Fast (\~850 ms) | +2 credits/min | | **Pearl Trident** | Our standard model, reliable for most everyday conversations. | Medium | Standard (\~1,250 ms) | Standard Rate | | **Pearl Oyster** | Our most cost-effective model, for simple use cases where reducing cost matters more than reasoning or speed. | Low | Higher latency (\~1,400 ms) | -2 credits/min | > [!TIP] > > Not sure where to start? **Pearl Flame** is the recommended default for most agents. Move up to **Hydra** when you need stronger reasoning, or drop to **Oyster** to cut costs on simple flows. > [!WARNING] > > **Latency may vary depending on the language used and peak usage times on the platform.** > > Pearl Voice response time can vary based on the selected language, conversation complexity, and traffic peaks across the platform. If low latency is critical for your use case, please [contact our Enterprise team](mailto:support@nlpearl.ai) to discuss dedicated server options. > [!NOTE] > > **Good to know:** the more your Pearl runs in production on your specific use case, the better it adapts and the faster it can generate responses over time. *** ## Get Started > [card] [Agents](/pages/agents) > > Your capacity to handle simultaneous calls. Each agent runs one call at a time - add more agents to scale up your concurrency. > [card] [Voices & Languages](/pages/languages) > > Configure your agent's name, language, and voice. Choose from 20+ languages and a wide range of natural-sounding accents. > [card] [Post-Call](/pages/postcall) > > Access structured summaries, transcripts, recordings, and extracted variables for every call. > [card] [Inbound](/pages/inbound) > > Deploy agents on inbound lines to answer calls, resolve questions, and route to the right team - 24/7. > [card] [Outbound](/pages/outbound) > > Launch outbound campaigns to reach leads, qualify prospects, send reminders, and follow up at scale. *** ## Connect your Pearl A Pearl is your agent, and each conversation with it is a call. A call reaches your Pearl in one of two ways: through a phone number, or through the **Realtime API**, where your own app starts the call and streams its audio, with no number. Either way, it runs the same Pearl. > [card] [Phone Numbers Overview](/pages/phone_overview) > > Understand why phone numbers are essential for your activities and which options are available to purchase or integrate them. > [card] [NLPearl Phone Numbers](/pages/nlpearl_phones) > > Purchase phone numbers directly from the NLPearl platform and assign them to your inbound and outbound activities. > [card] [Twilio Integration](/pages/twilio_integration) > > Connect your Twilio account to use your existing Twilio phone numbers with your Pearls. > [card] [Custom VoIP](/pages/custom_voip) > > Integrate your own SIP-compatible VoIP provider to route calls through your existing telephony infrastructure. > [card] [Realtime API](/pages/realtime/overview) > > Talk to your Pearl in real time from your own app, website or phone system. *** ## Next steps > [card] [Quick Start](/pages/getting_started) > > Go from sign-up to your first live AI voice agent in minutes. > [card] [PearlVibe](/pages/pearl_vibe) > > Build and customize your agent's logic, knowledge, and actions from a single prompt. > [card] [Variables](/pages/variables) > > Collect, store, and reuse data during conversations - from user inputs to CRM lookups. > [card] [API Quick Start](/api-reference/api_quickstart) > > Integrate Pearl Voice programmatically via the REST API. # Phone Numbers Overview Source: https://developers.nlpearl.ai/pages/phone_overview Learn why phone numbers are essential for activities on NLPearl.AI and the available options for purchasing and integrating them. ![Phone Numbers Overview cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/phone-overview-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=8bb7cb8a18ac18e4f2321a7afd3af18f) In order to initiate inbound or outbound call activities on NLPearl.AI, you need to have phone numbers linked to your account. These phone numbers determine the country code for your campaigns and activities, making them essential for ensuring proper communication with leads or customers based on their location. Whether you’re running a sales campaign or handling customer support, phone numbers allow you to tailor your activities to specific regions. The phone number’s country code plays a crucial role, especially for compliance and regional availability. > [!TIP] > > **Why You Need Phone Numbers** > > Phone numbers are required for both **inbound** and **outbound** activities on NLPearl.AI. Each phone number is tied to a specific country code, which defines the geographic area your campaign will cover. By associating phone numbers with your activities, you gain the following benefits: > > * **Localized Presence**: Contact leads with a local number, increasing the likelihood of engagement. > * **Compliance**: Ensure that your activities meet country-specific regulations. > * **Flexibility**: Choose from multiple options to purchase or integrate phone numbers depending on your needs. *** ### Available Options for Phone Numbers NLPearl.AI offers you three main ways to acquire or integrate phone numbers into your activities. You can choose the option that best suits your business needs and geographic requirements. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-pearl-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=d5bcd2bdb6970f8888364cc5c49e82e8) > > ### NLPearl Phone Numbers > > NLPearl provides an easy solution to purchase phone numbers directly from the platform. This option is ideal if you need a quick and straightforward way to acquire phone numbers, currently available for the United States. By purchasing a phone number from NLPearl, you can easily manage and assign it to your inbound and outbound campaigns. > > > [!NOTE] > > > > For more details, visit the [NLPearl Phone Numbers](/pages/nlpearl_phones) page. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/twilio-icon.webp?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=a26b1cb9dc2179e9b45e847c326ca0b8) > > ### Twilio Integration > > If you already have a Twilio account, you can integrate it directly with NLPearl.AI and import the phone numbers you have from Twilio. This option allows for more flexibility as Twilio provides phone numbers for multiple countries, enabling you to extend your campaigns to a broader audience. > > > [!NOTE] > > > > Visit [Twilio Integration](/pages/twilio_integration) for details on how to import and manage your Twilio phone numbers. > [card] > > ![Logo clair](https://mintcdn.com/nlpearl/-yv9LztxFIpwV2Dt/logo/logo-voip-black.png?fit=max\&auto=format\&n=-yv9LztxFIpwV2Dt\&q=85\&s=1737d606dbe84ed7698fe0583792934f) > > ### Custom VoIP Integration > > For businesses with custom VoIP providers, NLPearl.AI supports the integration of your own VoIP services. This gives you full control over the phone numbers and configurations, making it ideal for those with specific telecom setups. > > > [!NOTE] > > > > To learn more about integrating your own VoIP service, check out [Custom VoIP Integration](/pages/custom_voip). *** ### Naming Your Phone Numbers Once numbers are in your account, you can give each one a **display name** to recognize it easily (for example, *"Customer Phone"*). In the **Phone Numbers** list, click the pencil icon next to a number, enter a name, and save. ![Editing a phone number's display name in the Phone Numbers list](https://mintcdn.com/nlpearl/qjdZSlULOkNkvkj5/images/dark_mode/phone-numbers-display-name.png?fit=max\&auto=format\&n=qjdZSlULOkNkvkj5\&q=85\&s=790ce4021404946a48c94476af8362d8) *** > [!NOTE] > > Phone numbers are the foundation of your communication activities on NLPearl.AI. Depending on your business needs, you can choose from NLPearl-provided numbers, integrate your Twilio account, or use your own VoIP provider to ensure full flexibility and coverage for your campaigns. # Post-Call Source: https://developers.nlpearl.ai/pages/postcall All you need to know about Post-Call in NLPearl ![Post-Call cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=193ac469b7573a80a988dc59fe79504d) *** ## What is a Post-Call? In NLPearl, a **post-call** is a structured summary generated after each phone conversation handled by Pearl. It centralizes all key information captured before, during, and after the call to ensure full traceability, improve quality, and support human follow‑up when needed. *** ## What Does the Post-Call Include? A post-call provides multiple key sections to review and analyze the outcome of a conversation: ### Call ID A unique identifier for each call, displayed at the top right of the page. It allows you to quickly reference or search for a specific call across the system. ![Call ID location in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-call-id.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=a982e1bf245061c3e31bd6d2b077383e) *** ### Call Details This section summarizes the essential metadata captured during the call, such as timing, the Pearl version used, credits consumed, and the overall outcome. | Field | Description | | - | - | | **Date** | The exact date and time the call took place. | | **Pearl Version** | The version of the Pearl that handled the call. | | **Lead Name** | The name of the lead (outbound calls). | | **Duration** | The length of the call, in mm:ss. | | **Transfer Duration** | Time spent with a human agent after a transfer (shown only when the call was transferred). | | **Queue Duration** | Time the caller spent waiting in the holding line before being answered (shown only when the caller was queued). | | **Credits Used** | The number of credits consumed by the call. | | **SMS Credits Used** | The number of credits consumed by SMS messages sent during the call (shown only when greater than 0). | | **Status** | The technical call status (e.g. Completed, Busy, No Answer). | | **Sentiment** | The detected sentiment of the customer during the conversation. | | **Events** | A shortcut to the actions triggered during the call — click **View** to jump to the Event Log. | > [!NOTE] > > Some fields are conditional: **Lead Name** appears for outbound calls, **Transfer Duration** only when the call was transferred, **Queue Duration** only when the caller was queued, and **SMS Credits Used** only when at least one SMS was sent. ![Call Details section in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-details.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=de935b867103287982a6365857234d00) *** **Call Status** \ The technical status of the call (whether the user answered or not), shown as the **Status** field in the [Call Details](#call-details) section above. Possible values include: | Status | Description | | - | - | | `In Progress` | The call is currently ongoing or being connected. | | `Completed` | The call was successfully connected and ended normally. | | `Busy` | The receiver was already on another call or rejected the call. | | `Failed` | The call could not be established due to an error or network issue. | | `No Answer` | The call rang but no one picked up before the timeout. | | `Canceled` | The call was canceled before it connected. | > [!NOTE] > > Call Status refers to the telephony-level result of the call connection, such as whether the call was picked up, missed, busy, or failed to connect. *** **Conversation Status** \ Indicates the outcome of the conversation from a business or process perspective. It is shown as a colored badge in the header, next to the caller and receiver numbers. Possible values include: ![Conversation status badge and phone numbers in the post-call header](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-status-and-phone.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=6885a20217b72270806be64586337d2b) | Status | Description | | - | - | | `Voice Mail Left` | A voicemail was successfully left. *(Outbound only)* | | `Need Retry` | The contact attempt failed and should be retried. *(Outbound only)* | | `Unreachable` | The lead couldn't be reached after all retry attempts were exhausted. *(Outbound only)* | | `Call Successful` | The conversation achieved its expected outcome. | | `Not Successful` | The conversation failed to meet its objective. | | `Completed` | The conversation was conducted and finalized, regardless of outcome. | > [card] > > **Important distinctions about Conversation Status**: > > * `Voice Mail Left`, `Need Retry`, and `Unreachable` are **only shown for outbound activities**; these statuses are not applicable for inbound calls. > > * The difference between `Successful`, `Not Successful`, and `Complete` depends on whether a **Success Definition** was configured when creating the Pearl: > * If a **Success Definition** was configured: > * `Successful` → the Success Definition criteria were met during the conversation. > * `Not Successful` → the conversation did not meet the Success Definition criteria. > * If **no Success Definition** was configured: > * `Complete` → the conversation was completed without any Success Definition evaluation. > [!NOTE] > > For more information on Success Definitions, see [How to Create a Pearl – Step 4: Flow Configuration](/pages/create_pearl#step-4-flow-configuration). *** **Tags** \ The list of **tags defined during the last step of the Pearl creation process**. These tags represent key topics or categories you chose when setting up the Pearl configuration. ![Tags in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-tags.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=c0f5a5ef6b8049d06ea346d74df63b15) > [!NOTE] > > For more information on setting up tags, see [How to Create a Pearl – Step 4: Flow Configuration](/pages/create_pearl#step-4-flow-configuration). *** **Events** \ A log of the actions triggered by Pearl during the call. Each event includes a timestamp, the action details, and an execution status. The **Events** row in Call Details is a shortcut — click **View** to jump straight to the **Event Log**. Possible event types include: | Event Type | Description | | - | - | | `Call Transferred` | The call was transferred to another destination. | | `SMS Sent` | A text message was sent to the customer. | | `Email Sent` | An email was sent during the call. | | `API` | An API was triggered — before the call (Pre-Call), during it (In-Call), or after it (Post-Call). | | `Appointment` | An appointment was booked in the calendar. | | `Slack` | A Slack notification was sent. | | `Call Recorded` | The call recording was captured. | | `Hand-Off` | The conversation was handed off to a human (text agents). | > [!NOTE] > > Each event carries an execution status: the **HTTP status code** for API calls, otherwise **sent** / **failed**, with a possible error state (SMS, email, API, transfer, or booking error). ![Events shortcut in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-events.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=373f07f0ec45cf86f29bb94ae6f43884) *** **Sentiment Analysis** \ An automatic classification of the customer's tone and emotional state throughout the conversation. Possible sentiment values include: | Sentiment Value | Description | | - | - | | `Positive` | The conversation was clearly positive in tone and emotion. | | `Slightly Positive` | The overall tone was mostly positive, with minor neutral moments. | | `Neutral` | The sentiment was balanced or emotionless. | | `Slightly Negative` | The tone leaned slightly negative, but not strongly so. | | `Negative` | The conversation had a clearly negative emotional tone. | ![Sentiment analysis in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-sentiment-analysis.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=20a94af4182035bf3fde4ae8b97b777b) *** ### Summary A concise, human‑readable recap of the conversation, generated by Pearl. This includes: * What the customer requested * What was confirmed or declined * The overall outcome of the interaction ![Summary in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-summary.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=e90be59469b51122fd63ad93e7a50981) *** ### Transcript & Event Log A toggle at the top of the right-hand panel switches between the **Transcript** and the **Event Log**. **Transcript** — a full text version of the conversation between the customer and Pearl. It is structured into three blocks separated by dividers: **Pre-call events → In-call messages → Post-call events**. Timestamps are clickable and jump to the matching point in the recording. Useful for reviewing the interaction, auditing, and training. ![Transcript in the post-call view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/post-call-transcript.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=fe9fa2b6d9c0443c2d643d48fce87d66) **Event Log** — a chronological view of all actions triggered by Pearl during the call. Each entry shows the action type (API call, SMS, email, transfer…), its execution status, and contextual data, so you can verify that every automated operation ran and inspect its output. ![Event Log in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-event-log.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=d3f263e121a5641d323623eb86c7a535) *** ### Variables This section, labeled **Variables** in the UI, displays the **structured data captured before or during the call**, corresponding to the dynamic values collected through the Pearl configuration.\ Examples: * Delivery type * Selected options (e.g. “Dessert: Cheesecake”) * Customer preferences Variables displayed here are based on those defined in your **Pearl configuration**. ![Call information variables in the post-call view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/post-call-variables.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c8c5f3ecb1a048998c0eb4e44d7e69fe) > [!NOTE] > > You can learn more about creating variables in the Pearl [here](/pages/variables). *** ### Recording The **recording is accessible directly from this page**, allowing you to listen to the entire conversation again for audit, training, or operational purposes. Clicking a timestamp in the **Transcript** seeks the player to that exact moment. ![Recording player in the post-call view](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-recording.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=e8641bcafc8551fa88312832590a294a) > [!NOTE] > > The audio player only appears when the **Call Status** is `Completed` **and** recording is enabled for the activity. \[!WARNING] If you wish to **disable call recording**, you can manage this setting from the activity configuration (whether **inbound** or **outbound**). 👉 For more information on recording settings, see [Inbound Recording](/pages/inbound) or [Outbound Recording](/pages/outbound). If you're unable to listen to your recording and you imported a phone number from your Twilio account by connecting it to the platform, it is possible that you cannot access the recording because you have not disabled the 'HTTP Basic Authentication' option in your Twilio settings. For more information see [Disable HTTP Auth from Twilio](/pages/twilio_integration#disabling-http-basic-authentication-for-media-access) *** > [!TIP] > > **Navigation & shortcuts** — a few actions make it faster to move around and act on a call: > > * **Open the linked Lead** — for outbound calls, open the lead's details in a popover directly from the call. > * **Move between calls** — use the on-screen arrows or the **↑ / ↓** keyboard keys to jump to the previous or next call without leaving the post-call view. > * **Jump to the Event Log** — click **View** on the Events row in Call Details to switch straight to the Event Log tab. *** ## Why the Post-Call Matters > [card] Traceability > > Every call leaves a documented trace for accountability. > [card] Faster Follow‑Up > > Helps support and operations teams follow up efficiently with customers. > [card] Quality & Analytics > > Enables continuous improvement through quality review, sentiment tracking, and conversation analysis. > [card] Auditing & Compliance > > Provides an auditable record of AI-driven conversations to meet regulatory or internal policy needs. *** By consolidating all these elements, the **Post-Call Activities** page provides a complete overview of each AI-handled conversation, ensuring transparency, traceability, and actionable insights for your team. # Browser App Source: https://developers.nlpearl.ai/pages/realtime/browser Talk to your Pearl from a web page: the microphone in, Pearl's voice out. A web page that talks to your Pearl, in four small files. Your server creates the stream token and keeps the [API key](/api-reference/authorization); the page connects with the token, streams the microphone and plays Pearl's voice through a small jitter buffer. The audio is HD Opus, coded by the browser itself with [WebCodecs](https://developer.mozilla.org/en-US/docs/Web/API/WebCodecs_API), with no library to add. ```text theme={null} server.mjs creates the stream token (your API key stays here) public/index.html two buttons public/app.js the WebSocket and the Opus codec public/pearl-audio.js the microphone and the speaker, in an AudioWorklet ``` ## The server Node.js 18 or later: `npm install express`. ```javascript server.mjs theme={null} // server.mjs: serves the page and creates the stream token. Your API key stays here. import express from "express"; const app = express(); app.use(express.static("public")); app.post("/pearl-call", async (req, res) => { const response = await fetch(`https://api.nlpearl.ai/v2/Pearl/${process.env.NLPEARL_PEARL_ID}/Stream/Token`, { method: "POST", headers: { Authorization: `Bearer ${process.env.NLPEARL_API_KEY}`, "Content-Type": "application/json" }, body: JSON.stringify({ endUserId: "visitor-123", // your own id for the visitor audioFormat: "opus_24000", // HD Opus, coded in the page with WebCodecs callData: {}, // the variables your opening sentence uses, such as { firstName: "Dana" } }), }); const body = await response.text(); // { callId, url, token, expiresAt, audio }, or why it was refused res.status(response.status).type("json").send(body || "{}"); }); app.listen(3000, () => console.log("http://localhost:3000")); ``` Use your own id for the visitor as `endUserId`, so Pearl remembers them and their calls are grouped in the call history. For an anonymous visitor, leave it out. ## The page ```html public/index.html theme={null} ``` ```javascript public/app.js theme={null} // app.js: asks your server for a stream token, then streams the microphone to Pearl and plays its voice. const talk = document.querySelector("#talk"); const hangUp = document.querySelector("#hang-up"); talk.onclick = async () => { talk.disabled = true; const response = await fetch("/pearl-call", { method: "POST" }); const call = await response.json(); // { url, token, audio, ... }, or the reason it was refused if (!response.ok) { console.error("Create Stream Token failed:", response.status, call); talk.disabled = false; return; } const microphone = await navigator.mediaDevices.getUserMedia({ audio: { channelCount: 1, echoCancellation: true, noiseSuppression: true }, }); const context = new AudioContext({ sampleRate: 24000 }); // the browser resamples the microphone to 24 kHz await context.resume(); await context.audioWorklet.addModule("pearl-audio.js"); const audio = new AudioWorkletNode(context, "pearl-audio", { outputChannelCount: [1] }); context.createMediaStreamSource(microphone).connect(audio).connect(context.destination); const ws = new WebSocket(`${call.url}?token=${call.token}`); ws.binaryType = "arraybuffer"; let ready = false; // Opus both ways, with the browser's own codec (WebCodecs): one packet per 20 ms frame. const encoder = new AudioEncoder({ output: (chunk) => { const packet = new Uint8Array(chunk.byteLength); chunk.copyTo(packet); if (ws.readyState === WebSocket.OPEN) ws.send(packet); }, error: (error) => console.error("AudioEncoder", error), }); encoder.configure({ codec: "opus", sampleRate: 24000, numberOfChannels: 1, bitrate: 32000 }); const decoder = new AudioDecoder({ output: (frame) => { const decoded = new Float32Array(frame.numberOfFrames); frame.copyTo(decoded, { planeIndex: 0, format: "f32-planar" }); const step = frame.sampleRate / 24000; // 2 in Chrome, which decodes Opus at 48 kHz frame.close(); const samples = decoded.filter((_, i) => i % step === 0); audio.port.postMessage(samples, [samples.buffer]); // to the worklet's jitter buffer }, error: (error) => console.error("AudioDecoder", error), }); decoder.configure({ codec: "opus", sampleRate: 24000, numberOfChannels: 1 }); // The end user: one 20 ms frame every 20 ms from the worklet, coded to Opus let timestamp = 0; audio.port.onmessage = (event) => { if (!ready) return; const frame = new AudioData({ format: "f32", sampleRate: 24000, numberOfChannels: 1, numberOfFrames: event.data.length, timestamp, data: event.data }); timestamp += 20000; encoder.encode(frame); frame.close(); }; // Pearl's voice: one Opus packet per message ws.onmessage = (message) => { if (typeof message.data !== "string") { decoder.decode(new EncodedAudioChunk({ type: "key", timestamp: 0, data: message.data })); return; } const event = JSON.parse(message.data); if (event.type === "ready") ready = true; if (event.type === "transfer") console.log("transfer to", event.target); if (event.type === "ended") console.log("ended:", event.reason); }; ws.onclose = (event) => { console.log("closed", event.code); // 1006 at once: the token was refused microphone.getTracks().forEach((track) => track.stop()); encoder.close(); decoder.close(); context.close(); talk.disabled = false; }; hangUp.onclick = () => { if (ws.readyState === WebSocket.OPEN) ws.send(JSON.stringify({ type: "hangup" })); }; }; ``` ## The audio An [AudioWorklet](https://developer.mozilla.org/en-US/docs/Web/API/AudioWorklet) runs in real time, which gives the pacing the protocol asks for without any timer: it sends one 20 ms frame of the microphone every 20 ms, silence included when the end user is muted, and plays Pearl's frames once 80 ms are buffered. ```javascript public/pearl-audio.js theme={null} // pearl-audio.js: one AudioWorklet that records the microphone and plays Pearl's voice, both at 24 kHz. const FRAME = 480; // 20 ms at 24 kHz const CUSHION = 1920; // start playing with 80 ms buffered const MAX_BEHIND = 7200; // past 300 ms buffered, drop the oldest audio class PearlAudio extends AudioWorkletProcessor { constructor() { super(); this.mic = new Float32Array(FRAME); this.micLength = 0; this.queue = []; // Pearl's audio, as Float32Array chunks this.offset = 0; // read position in queue[0] this.queued = 0; // samples not played yet this.playing = false; this.port.onmessage = (event) => { this.queue.push(event.data); this.queued += event.data.length; }; } process(inputs, outputs) { // The microphone: 20 ms frames, in real time, silence included when muted. const input = inputs[0][0]; if (input) { for (let i = 0; i < input.length; i++) { this.mic[this.micLength++] = input[i]; if (this.micLength === FRAME) { this.port.postMessage(this.mic.slice()); this.micLength = 0; } } } // Pearl's voice: played through a small jitter buffer. while (this.queued > MAX_BEHIND && this.queue.length > 1) { this.queued -= this.queue.shift().length - this.offset; this.offset = 0; } if (!this.playing && this.queued >= CUSHION) this.playing = true; const output = outputs[0][0]; for (let i = 0; i < output.length; i++) { if (!this.playing || this.queue.length === 0) { output[i] = 0; this.playing = false; // ran dry after a stall: buffer again before playing continue; } const chunk = this.queue[0]; output[i] = chunk[this.offset++]; this.queued--; if (this.offset === chunk.length) { this.queue.shift(); this.offset = 0; } } return true; } } registerProcessor("pearl-audio", PearlAudio); ``` ## Run it ```bash theme={null} export NLPEARL_API_KEY=":" export NLPEARL_PEARL_ID="" node server.mjs ``` Open `http://localhost:3000`, click **Talk to Pearl** and allow the microphone. If the call does not start, the browser console shows why, such as a missing variable: add it to `callData` in `server.mjs`. > [!NOTE] > > * Browsers allow the microphone only on `https://` pages and on `localhost`. > * WebCodecs audio, which codes the Opus, is in Chrome and Edge, Firefox 130 and later on desktop, and Safari 26 and later. > * `AudioContext({ sampleRate: 24000 })` makes the browser resample the microphone to 24 kHz. Chrome, Edge and Safari do this; check your other target browsers. > * On a laptop, test with headphones: browser echo cancellation does not always cover audio played through Web Audio, and Pearl would hear itself. ## Going further * **Phone quality:** with `audioFormat: "opus_8000"`, use 8000 instead of 24000 for the context, the encoder and the decoder, and divide the worklet's `FRAME`, `CUSHION` and `MAX_BEHIND` by 3. * **Hang-up button:** `hangup` is answered by `ended`, then the socket closes and `onclose` releases the microphone. * **Transfers:** a `transfer` event carries the target set on your Pearl's [Transfer Call](/pages/transfer_call) node. In a browser there is usually no phone line to pass on, so show the end user the next step instead, or let your server act on it. > [card] [Stream WebSocket](/api-reference/v2/stream/websocket) > > Every message, audio format, event and limit. # Realtime API Source: https://developers.nlpearl.ai/pages/realtime/overview Talk to your Pearl in real time from your own app or website. The Realtime API gives your app a live, speech-to-speech conversation with your Pearl: you stream the end user's voice in and play Pearl's voice back as it speaks. It is the same Pearl you integrate with your phone numbers, with the same flow, call history, webhooks, recordings and billing. Only the connection differs: your app starts the call through the API, then connects to Pearl over a WebSocket, with no phone line involved. ## Before you start To make your first Realtime API call, you need: * A [voice Pearl](/pages/getting_started#2-create-your-agent-with-pearlvibe) that is **active**. The call runs its [published](/pages/getting_started#5-publish-your-agent) version. * Its **Pearl ID**: on your Pearl's overview page, in the **Settings** popover. * An API key, or an OAuth app with the **`pearls:stream`** scope (**Make stream calls through the API** in the platform). See [API Authorization](/api-reference/authorization). * One of the four audio formats, the same in both directions: | `audioFormat` | Audio | Use it for | | - | - | - | | `opus_24000` | 24 kHz Opus | HD at a fraction of the bandwidth of `pcm_24000`. Websites and apps | | `opus_8000` | 8 kHz Opus | Phone quality at less bandwidth than `ulaw_8000` | | `ulaw_8000` (default) | 8 kHz μ-law | Phone quality. The format of Twilio and most phone systems | | `pcm_24000` | 24 kHz 16-bit PCM | HD with no codec, at the highest bandwidth | > [!TIP] > > **We recommend Opus.** It sounds nearly the same for a fraction of the bandwidth, so calls hold up better on mobile and slow networks. ## Connect **1. Create the token** From your backend, call [Create Stream Token](/api-reference/v2/stream/create-token). It creates the call and returns the `url` to open and a `token` valid for 60 seconds. ```bash theme={null} curl -X POST "https://api.nlpearl.ai/v2/Pearl//Stream/Token" \ -H "Authorization: Bearer :" \ -H "Content-Type: application/json" \ -d '{ "endUserId": "crm-77812", "audioFormat": "opus_24000" }' ``` `endUserId` is [your own id for the person on the call](/api-reference/v2/stream/create-token#body-end-user-id-one-of-0), such as a customer id: send the same value for the same person every time. It is optional: without it, Pearl does not remember the person. **2. Open the WebSocket** Open the `url` with the token, within 60 seconds. Pearl sends `ready`, then you stream. ```javascript theme={null} // call: the Create Stream Token response, handed over by your backend const ws = new WebSocket(`${call.url}?token=${call.token}`); ``` > [!WARNING] > > Your API key stays on your backend. A browser or an app gets only the `url` and the `token`, which open this one call, once. ## Stream audio * **Audio is binary**, in both directions: raw bytes in the call's format, with no base64 and no JSON. On an Opus call, each message is one Opus packet. * **Send one 20 ms frame every 20 ms**, in real time, for the whole call. When the end user is quiet or muted, send silence, not nothing. * **Pearl sends one 20 ms frame every 20 ms** too, with silence while it listens. Play the frames through a small jitter buffer of 60 to 100 ms. * **Interruptions need no code.** When the end user talks over Pearl, it stops speaking and the next frames are already silence: there is nothing to clear on your side. ## Events Text messages are JSON events, such as `{"type":"hangup"}`, in both directions: | Event | Sent by | When | | - | - | - | | `ready` | Pearl | Once, right after you connect | | `transfer` | Pearl | The flow [transferred](/pages/transfer_call) the call. It carries the target and the data collected so far; carrying the call on is up to you | | `ended` | Pearl | The call is over, with the `reason`. Pearl then closes the connection | | `pong` | Pearl | The answer to your `ping` | | `hangup` | You | Ends the call. Pearl answers with `ended`. From your backend, [Hang Up Call](/api-reference/v2/call/hangup-call) ends it too | | `ping` | You | Optional, to time the round trip | ## After the call The call appears in your call history and [webhooks](/pages/webhooks) like any other call of your Pearl, with `channel: "stream"` and your `endUserId` where the end user's phone number would be (empty without one). ## Errors and limits The cases you are most likely to meet. [Stream WebSocket](/api-reference/v2/stream/websocket) lists every end reason and limit. | What happens | Why | What to do | | - | - | - | | The create is refused with `No agent is available…` | Every one of your Pearl's [agents](/pages/agents) is on a call, phone calls included | Retry later, or give your Pearl more agents | | The connection is refused with `401` | The token expired, was already used, or is missing | Create a new token and connect right away | | The call ends with `no_audio` | 60 seconds without a message from you | Keep sending silence frames | | The call ends with `max_duration` | Your Pearl's Max Call Duration was reached | Set a longer duration on your Pearl | ## Examples > [card] [Quickstart](/pages/realtime/quickstart) > > Talk to your Pearl from your terminal, with your microphone. > [card] [Browser App](/pages/realtime/browser) > > A web page with the microphone and Pearl's voice. # Quickstart Source: https://developers.nlpearl.ai/pages/realtime/quickstart Talk to your Pearl from your terminal in five minutes: your microphone in, Pearl's voice through your speakers. One Python script that creates a call, streams your microphone to Pearl and plays its voice through your speakers. Press Ctrl+C to hang up. **1. Install** Python 3.11 or later, then: ```bash theme={null} pip install websockets sounddevice av ``` `av` codes the audio in Opus, and includes the codec. On Linux, also install PortAudio: `sudo apt install libportaudio2`. On macOS and Windows it comes with `sounddevice`. **2. Save the script** Save it as `pearl_quickstart.py`. ```python pearl_quickstart.py theme={null} """Talk to your Pearl from the terminal: your microphone in, Pearl's voice through your speakers. Ctrl+C hangs up.""" import asyncio import json import os import queue import urllib.error import urllib.request import av # pip install websockets sounddevice av import sounddevice as sd import websockets API_KEY = os.environ["NLPEARL_API_KEY"] # ":" PEARL_ID = os.environ["NLPEARL_PEARL_ID"] CALL_DATA = {} # the variables your opening sentence uses, such as {"firstName": "Dana"} RATE, FRAME = 24000, 480 # the microphone: 20 ms at 24 kHz, coded to opus_24000 PLAY_RATE, PLAY_FRAME = 48000, 960 # Pearl's voice: the Opus decoder returns 48 kHz encoder = av.CodecContext.create("libopus", "w") encoder.sample_rate, encoder.layout, encoder.format, encoder.bit_rate = RATE, "mono", "s16", 32000 decoder = av.CodecContext.create("libopus", "r") decoder.sample_rate, decoder.layout = PLAY_RATE, "mono" def encode(pcm): """20 ms of the microphone, as 16-bit PCM, to one Opus packet.""" frame = av.AudioFrame(format="s16", layout="mono", samples=FRAME) frame.sample_rate = RATE frame.planes[0].update(pcm) return [bytes(packet) for packet in encoder.encode(frame)] def decode(packet): """One Opus packet from Pearl to 20 ms of 16-bit PCM at 48 kHz.""" return b"".join(bytes(frame.planes[0])[: frame.samples * 2] for frame in decoder.decode(av.Packet(packet))) def create_call(): request = urllib.request.Request( f"https://api.nlpearl.ai/v2/Pearl/{PEARL_ID}/Stream/Token", method="POST", headers={"Authorization": f"Bearer {API_KEY}", "Content-Type": "application/json"}, data=json.dumps({"endUserId": "quickstart", "audioFormat": "opus_24000", "callData": CALL_DATA}).encode(), ) try: with urllib.request.urlopen(request) as response: return json.load(response) # callId, url, token, expiresAt, audio except urllib.error.HTTPError as error: raise SystemExit(f"Create Stream Token failed ({error.code}): {error.read().decode()}") async def main(): call = create_call() print("call", call["callId"]) loop = asyncio.get_running_loop() microphone = asyncio.Queue() # the end user's 20 ms frames, to send speaker = queue.Queue() # Pearl's 20 ms frames, to play playing = False def on_microphone(data, frames, time, status): # Called every 20 ms by the sound card: the pacing Pearl expects, silence included. loop.call_soon_threadsafe(microphone.put_nowait, bytes(data)) def on_speaker(out, frames, time, status): nonlocal playing while speaker.qsize() > 15: # more than 300 ms behind: drop the oldest speaker.get_nowait() if not playing and speaker.qsize() >= 4: # start with 80 ms buffered playing = True try: out[:] = speaker.get_nowait() if playing else bytes(len(out)) except queue.Empty: out[:] = bytes(len(out)) playing = False # ran dry: buffer again async with websockets.connect(f"{call['url']}?token={call['token']}") as ws: print(json.loads(await ws.recv())) # ready: always the first message print("Talking. Press Ctrl+C to hang up.") async def send_microphone(): while True: for packet in encode(await microphone.get()): await ws.send(packet) with sd.RawInputStream(samplerate=RATE, channels=1, dtype="int16", blocksize=FRAME, callback=on_microphone), \ sd.RawOutputStream(samplerate=PLAY_RATE, channels=1, dtype="int16", blocksize=PLAY_FRAME, callback=on_speaker): sender = asyncio.create_task(send_microphone()) try: async for message in ws: if isinstance(message, bytes): speaker.put(decode(message)) # Pearl's voice else: print(json.loads(message)) # transfer, ended except asyncio.CancelledError: # Ctrl+C: hang up, then wait for ended await ws.send(json.dumps({"type": "hangup"})) async for message in ws: if isinstance(message, str): print(json.loads(message)) finally: sender.cancel() try: asyncio.run(main()) except KeyboardInterrupt: pass ``` **3. Run it and talk** Use headphones: a terminal has no echo cancellation, and Pearl would hear itself through your speakers. ```bash theme={null} export NLPEARL_API_KEY=":" export NLPEARL_PEARL_ID="" python pearl_quickstart.py ``` Your `:` is on the **API Access** page of your workspace settings ([API Authorization](/api-reference/authorization)). Your `` is on your Pearl's overview page, in the **Settings** popover. If your Pearl's opening sentence uses variables, put them in `CALL_DATA` first: the script stops with the reason when one is missing. Pearl greets you; answer it. On macOS, allow the terminal to use the microphone the first time. ```text Output theme={null} call 6720f3c1a8b4e5d6f7a8b9c0 {'type': 'ready', 'protocol': 1, 'callId': '6720f3c1a8b4e5d6f7a8b9c0', 'audio': {'encoding': 'opus', 'sampleRate': 24000, 'channels': 1, 'frameMs': 20}} Talking. Press Ctrl+C to hang up. {'type': 'ended', 'reason': 'client_hangup', 'durationSec': 26} ``` The call is in your call history with its transcript and recording, like any other call of your Pearl. ## How the script works * **The order:** create the token, open `url?token=…`, wait for `ready`, then stream. * **The pacing:** the sound card hands over 20 ms of the microphone every 20 ms, silence included, which is exactly what Pearl expects. * **The playback:** Pearl's frames go through an 80 ms buffer, which absorbs network jitter. * **The ending:** Ctrl+C sends `hangup`, answered by `ended`. If Pearl ends the call first, the script prints its `ended` and stops. * **The codec:** the call is in `opus_24000`. Each 20 ms of the microphone is coded to one Opus packet before it is sent, and each packet from Pearl is decoded before it is played, at 48 kHz, the rate the Opus decoder returns. ## Next steps > [card] [Browser App](/pages/realtime/browser) > > The same conversation from a web page. > [card] [Stream WebSocket](/api-reference/v2/stream/websocket) > > Every message, audio format, event and limit. # Recording Node Source: https://developers.nlpearl.ai/pages/recording Available for **Pearl Voice** only. ![Recording node cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/recording-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=485d08234e2d0aa8f8fcd85e05f05f5f) The **Start Recording** node gives you control over when call recording begins in a Pearl Voice flow. ## What it does Starts recording at the exact point where Pearl reaches this node in a Pearl Voice flow. Recording is usually managed at campaign level. In most cases, calls are recorded automatically according to the **Recording** settings in your **Inbound Campaign** or **Outbound Campaign** settings. > [!WARNING] > > **Feature-flagged node.** Start Recording is hidden by default and is not available in every workspace or plan. To add it to your flow, ask **PearlVibe** in natural language, in **Build** mode: ```text Example prompt for PearlVibe theme={null} Add a Start Recording node after Pearl asks the caller for permission to record the call. ``` > [!NOTE] > > If Start Recording does not appear in the toolbar or add-node panel after asking PearlVibe, it is not enabled for your account. ## When to use it Use Start Recording when recording should begin only after a specific moment in the call: | Use case | Recording begins | | - | - | | **Disclosure** | Once Pearl informs the caller the call may be recorded | | **Consent** | Once the caller agrees to be recorded | | **Specific branches** | Only on selected paths of the flow | | **Compliance** | When a process requires recording to begin later in the call | ## How it works Automatic recording is configured in your **Inbound Campaign** or **Outbound Campaign** settings. When it is enabled, recording begins at the start of the call and you do not need this node. To trigger recording from the flow instead, set it up as a conditional action: **1. Disable automatic recording** Turn off automatic recording in the relevant Inbound or Outbound Campaign settings, so recording starts only from the flow. ![Disable the automatic recording option in campaign settings](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/recording-start-disabled-option.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=68242b165b9f8ea88247a9b09b5e596e) > [!WARNING] > > Once automatic recording is disabled, any call that does not reach the Start Recording node will **not** be recorded. Make sure every path that requires a recording leads to the node. **2. Ask for consent (optional)** Add a [Dialogue](/pages/dialogue) node before Start Recording to explain the recording policy and collect the caller's answer. Start Recording does not ask for permission by itself. **3. Route the consent path** Use a conditional transition to send callers who agree to the **Start Recording** node. **4. Place the node** Put **Start Recording** exactly where recording should begin. It has no configuration fields, it is an action marker inside the flow. ![Start Recording node placed in a Pearl Voice flow](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/recording-node-example.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f241df9f76682698e2254c7c487ea49e) > [!NOTE] > > Recordings are always active during test calls, regardless of this node or your campaign recording settings. # Account Security Settings Source: https://developers.nlpearl.ai/pages/security Manage session timeout, audit logs, two-factor authentication, and enterprise access controls. ![Account Security Settings cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c3b6496fc653748aac3ca9d4500f5a03) *** Use account security settings to manage how users access your workspace, how long sessions stay active, and how administrators review important account activity. > [card] Session timeout > > Automatically log users out after a period of inactivity. > [card] Two-factor authentication > > Add an extra verification step when users log in. > [card] Audit log > > Track workspace activity and security-related events. > [card] Enterprise SSO > > Connect enterprise identity providers through Single Sign-On. *** ## Accessing Your Settings All the settings on this page live in your **Settings**. To open them, click your **profile card** at the bottom-left corner of the sidebar, then select **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) From there, use the left menu: the **Security** tab (under *User*) for 2FA and password, and **General Settings** or **Audit Log** (under *Workspace*) for session timeout and activity logs. *** ## Customizing Your Session Timeout You can configure how long a session remains active before the user is automatically logged out due to inactivity. This helps protect your account if you forget to log out, especially when using a shared or public device. The session timeout is set in **minutes**, with a minimum of **30 minutes** and a maximum of **3 days**. > [!NOTE] > > This is a **workspace-level** setting managed by the **workspace owner**. The value applies to **all members** of the workspace, not just the account that changes it. **1. Open General Settings** Go to **Settings > General Settings** under the *Workspace* section. ![General Settings tab in the Workspace section](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-general-settings-location.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=39a4e737f462a49ec04f89f626dc5acc) **2. Set the Session Timeout** In the **Session Timeout** field, enter the duration in minutes and click **Update**. ![Session Timeout field in Workspace General Settings](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-session-timeout.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=bb99f603e12e3555acc483c9b3017c1c) > [!TIP] > > Shorter session timeouts are recommended for shared devices, public computers, or workspaces with stricter security policies. *** ## Reviewing Workspace Activity with Audit Logs The **Audit Log** helps administrators review important activity and security events in the workspace. It is useful for monitoring sign-ins, configuration changes, published Pearls, and other account-level events. To access it, go to **Settings > Audit Log** under the *Workspace* section. ![Audit Log tab in the Workspace section](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-audit-log-location.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=7cde3824570c1f142cf642b14bc85c77) Each entry in the log includes: * **Timestamp**: when the event happened. * **Event Type**: the kind of action recorded, such as a successful login or published Pearl. * **User**: the workspace member who triggered the event. * **Details**: additional context about the action, when available. ### Recorded event types The audit log records the following events. The **Event Type** filter uses the same labels shown below. #### Pearls | Event type | Description | | - | - | | Publish Pearl | A Pearl was published. | | Pearl Status | A Pearl's status was changed. | | Pearl Retention | A Pearl's data retention settings were changed. | | Pearl Total Agents | The number of agents assigned to a Pearl was changed. | | Pearl Budget | A Pearl's budget was changed. | | Pearl Phone Number | A Pearl's phone number was changed. | | Transfer Pearl | A Pearl was transferred. | | Delete Pearl | A Pearl was deleted. | #### API keys | Event type | Description | | - | - | | Create API Key | An API secret key or an OAuth 2.0 app was created. | | Update API Key | An OAuth 2.0 app's scopes were changed. | | Rotate API Key Secret | An OAuth 2.0 app's client secret was rotated. The secret value is not stored in the log. | | Delete API Key | An API secret key or an OAuth 2.0 app was deleted. | | Reveal API Key | An API key was revealed. The secret value is not stored in the log. | #### Users and roles | Event type | Description | | - | - | | Invite User | A user was invited to the workspace. | | User Join | A user joined the workspace. | | Invitation Canceled | A pending invitation was canceled. | | Update User Role | A user's role was changed. | | Update Account Information | Workspace account information was changed. | | Remove User from Account | A user was removed from the workspace. | | User Left Account | A user left the workspace. | | Create Role | A workspace role was created. | | Update Role | A workspace role or its permissions were changed. | | Delete Role | A workspace role was deleted. | #### Security | Event type | Description | | - | - | | Login Attempt | A user attempted to sign in. | | Login Successful | A user signed in successfully. | | Update Session TTL | The workspace session timeout was changed. | | Set 2FA | Two-factor authentication settings were changed. | | Change Password | A user changed their password. | | Delete Account | The workspace account was deleted. | | Add to Blacklist | One or more phone numbers were added to the blacklist. | | Remove from Blacklist | One or more phone numbers were removed from the blacklist. | #### Billing and agents | Event type | Description | | - | - | | Purchase Agents | Agents were purchased. | | Delete Agent | An agent was removed. | | Set Billing Details | Workspace billing details were changed. | | Set Payment Method | The workspace payment method was changed. | | Set Subscription | The workspace subscription was changed. | | Cancel Subscription | The workspace subscription was canceled. | | Purchase Credits | Credits were purchased. | | Set Auto Recharge | Automatic credit recharge settings were changed. | #### Phone numbers | Event type | Description | | - | - | | Purchase Phone Numbers | One or more phone numbers were purchased. | | Release Phone Number | A phone number was released. | | Add Phone Number | A bring-your-own phone number was added. | | Update Phone Number | A phone number's settings were changed. | | Update SIP Configuration | SIP settings for a phone number were changed. | | Set Twilio Credentials | Workspace Twilio credentials were changed. | #### Text channels and integrations | Event type | Description | | - | - | | Create Text Channel | A text channel was created. | | Update Text Channel | A text channel was changed. | | Delete Text Channel | A text channel was deleted. | | Rotate Channel Secret | A text channel secret was rotated. | | Reveal Channel Secret | A text channel secret was revealed. The secret value is not stored in the log. | | Connect WhatsApp | A WhatsApp integration was connected. | | Add WhatsApp Number | A phone number was added to a WhatsApp integration. | | Disconnect WhatsApp | A WhatsApp integration was disconnected. | | Set Email Credentials | Email credentials were configured. | | Delete Email Credentials | Email credentials were removed. | | Connect Slack | A Slack integration was connected. | | Connect Calendar | A calendar integration was connected. | #### Data and groups | Event type | Description | | - | - | | Import Leads | Leads were imported into a Pearl. | | Delete Leads | Leads were deleted from a Pearl. | | Delete Calls | Calls were deleted from a Pearl. | | Export Calls | Calls were exported from a Pearl. | | Group Retention | A group's contact retention settings were changed. | | Delete Contacts | Group contacts were purged by the retention policy. | ![Audit Log with date range and event type filters](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-audit-log-filters.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=d635964537fdc66dade692f0ab2cf583) > [!NOTE] > > Use the **date range** and **Event Type** filters at the top right to narrow the audit log when investigating a specific time period or activity. *** ## Enterprise Single Sign-On (SSO) Single Sign-On (SSO) is available for Enterprise workspaces. It allows your team to authenticate through your company identity provider and centralize access management. > [!NOTE] > > To enable SSO for your workspace, contact us at [support@nlpearl.ai](mailto:support@nlpearl.ai). Please include your workspace name, company domain, and preferred identity provider if available. Once SSO is enabled, members sign in with the **Sign in with SSO** button on the login screen instead of entering a password. ![Sign in with SSO button on the login screen](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-sso-login.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=36ad490796a91638933c599bbdfb3441) *** ## Two-Factor Authentication (2FA) Two-Factor Authentication (2FA) adds an additional step to the login process to strengthen your account’s security. Instead of relying solely on your password, which could be guessed, leaked, or stolen, 2FA requires a second form of verification that only you should have access to. Typically, this second factor is a temporary code generated by a mobile app like Google Authenticator. If you can't reach your app, you can also receive the code by **SMS** at login. Even if someone knows your password, they won’t be able to access your account without that second code. That’s why 2FA is a simple and highly effective way to safeguard your data. In this guide, we’ll show you exactly how to activate and use Two-Factor Authentication on our platform. *** ### How to Set Up 2FA **1. Open the Platform Security page** Click your **profile card** at the bottom-left corner of the sidebar, open **Settings**, then select the **Security** tab under the *User* section. ![Security tab in Settings, opening the Platform Security page](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-tab-location.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c7ee10076adf3948aef8894fff83e653) **2. Locate the 2FA box** The **Platform Security** page has two areas: the **2FA (Two-Factor Authentication)** box and a **Reset Password** section. ![Two-Factor Authentication box on the Platform Security page](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-2fa-location.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=fb21845febe91f8aa3820ad3755344e2) **3. Open the setup window** In the **2FA (Two-Factor Authentication)** box, click **Set up authenticator** (labeled **Reset authenticator** once 2FA is already set up) to open the QR code window. ![Button that opens the 2FA setup window](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-2fa-setup-button.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=0c66bb37294ad8f8cf38824bbd915c1a) The **Secure your NLPearl account with 2FA** window appears, showing a QR code on the right and the boxes to enter your code. ![2FA setup window with QR code and verification code](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-2fa-setup-window.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=7624abb729118d69772a5dba70fcbb29) **4. Download an authenticator app** On your phone, install an authenticator app such as **Google Authenticator**, **Microsoft Authenticator**, or **Authy**. ![Google Authenticator on the App Store](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-google-authenticator-appstore.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=a487ad51ffe8a83ddea53fb2342258b5) **5. Scan the QR code** Open the app, tap the **+** button, and choose **Scan a QR code**. Point your camera at the QR code shown in the setup window. ![Scanning a QR code in Google Authenticator](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-google-authenticator-scan.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=b6874e2ce52ffeb4fdc874c773552077) **6. Enter the 6-digit code** The app generates a **6-digit code** that refreshes every few seconds. Enter it in the setup window and click **Verify & Activate**. ![6-digit code generated by Google Authenticator](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-google-authenticator-code.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=d69369a0196d37ec3021d2d9a79995c8) **7. Turn 2FA on or off** Once 2FA has been set up, use the **toggle** in the 2FA box to turn it on or off for your account at any time. When it's on, you're asked for a code at every login; when it's off, 2FA is disabled but your authenticator stays configured. ![Toggle to turn 2FA on or off on your account](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-2fa-toggle.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=7f0d36f9a524d71621aef069802982b8) > [!TIP] > > Once the code is verified, 2FA is active on your account. You'll be asked for a code at every login. > [!NOTE] > > Lost access to your authenticator app or got a new phone? Click **Reset authenticator** in the 2FA box (the same button used during setup) to unlink the current device and reopen the QR window to set up a new one. **8. How it works at login** Once 2FA is active, every login prompts you for a verification code: * Enter the current 6-digit code from your **authenticator app**. * If you can't reach your app, click **Get your code via SMS** in the prompt to receive the code by text instead. ![Two-Factor Authentication prompt at login](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-2fa-login-prompt.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=10ef52e12b7a74e9e3c6a994d4a3314f) *** ## Resetting Your Password You can update your account password at any time from the **Platform Security** page. In the **Reset Password** section, click **Reset Password** and follow the prompts. ![Reset Password section on the Platform Security page](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/security-reset-password.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=5cd6184dfd75b6d614dfa40b67f4d534) # Send SMS Node Source: https://developers.nlpearl.ai/pages/sms_action Available for **Pearl Voice** only. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/sms-action-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c98a9f9a11cdacf9dc39bb19521bbc49) The **Send SMS** node lets your AI agent send an SMS in real time, during the conversation (In-Call) or after it ends (Post-Call), so your customers receive important information instantly. *** ## Adding the Node In the Flow Editor, add a **Send SMS** node where you want the message to be sent. | Context | Where to add it | | - | - | | **In-Call** | Place the node in the conversation, at the point where the SMS should be sent. | | **Post-Call** | Add it as a **Post-Call action** to send the SMS once the call ends. | > [!NOTE] > > The SMS is sent based on where the node sits in your flow, there is **no separate trigger field** on the node itself. *** ## Fields to Configure ![Send SMS node configuration with To and SMS Content fields](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/sms-action-example.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=6b107ce3322eba17b9b37a333b2cb9d8) **1. To** The recipient phone number(s), entered as tags. **At least one recipient is required**, and you can mix both modes below in the same field. **Send to the customer (dynamic)** — Insert the built-in **phone number** variable with the variable picker. At send time it resolves to the number of the person on the call, including the country code (e.g. `+1 234 567 8900`), and is stored as `{phoneNumber}`. This is the most common setup: the SMS goes to the customer you're talking to. **Send to a fixed number (static)** — Type a number and press **Space** or **Enter** to turn it into a tag. Use this to always notify the same destination (an internal team, a manager, a back-office line), whoever is on the call. > [!NOTE] > > Only the built-in **phone number** variable can be inserted here. Custom variables (including numbers collected during the call) are **not** available in the To field, only static numbers or the customer's phone number. This mirrors the Email node's **To** field, which only accepts the **email address** variable. **Accepted format**: an optional leading `+` followed by 1 to 20 digits, with no spaces, dashes, or parentheses. Invalid entries are rejected and not added as a tag. | Valid | Invalid | | - | - | | `+15551234567` | `+1 555 123 4567` | | `0612345678` | `(555) 123-4567` | **2. SMS Content** Write the message to send. You can include links and details, and insert variables to personalize it, for example: `Hi {firstName}, your reservation at {restaurantName} is confirmed.` Available variables depend on where the node runs: | Context | Available variables | | - | - | | **In-Call** | Pre-Call + In-Call | | **Post-Call** | Pre-Call + In-Call + Post-Call (e.g. summary, duration) | > [!NOTE] > > **Regulatory compliance** — To stay compliant, Pearl always asks the customer for consent before sending an SMS, respecting their preferences and communication laws. *** ## Example Use Cases > [card] Reservation confirmations > > After confirming a reservation, Pearl automatically sends an SMS with the details. > [card] Appointment reminders > > Pearl sends a reminder SMS about an upcoming appointment or event. *** ## SMS Credit Cost > [!NOTE] > > Sending an SMS consumes credits from your account balance. The cost depends on: > > * **Recipient country**: each destination has its own rate per segment. > * **Number of segments**: longer messages are split into multiple segments, each billed individually. A standard segment holds up to **160 characters** (GSM-7). With special characters or emojis, encoding switches to UCS-2 and the limit drops to **70 characters** per segment. Messages exceeding one segment are concatenated, with each segment charged separately. | Encoding | Single SMS limit | Concatenated segment limit | | - | - | - | | GSM-7 (standard) | 160 characters | 153 characters per segment | | UCS-2 (unicode/emojis) | 70 characters | 67 characters per segment | > [!WARNING] > > If your SMS contains **variables** (e.g. `firstName`), the final cost may vary, since the number of characters, and therefore segments, depends on each variable's value at send time. ### SMS Credit Calculator Use this calculator to estimate how many segments your message will use and the total credit cost based on the destination country. # Pearl Settings Source: https://developers.nlpearl.ai/pages/text/agent_customization ![Pearl Settings cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-agent-customization-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=b4b16f46985c10fc0b55207a4a641b4f) In this step, you can customize your chat agent's identity and behavior by setting its **name**, **personality**, **timezone**, and **Pearl Model**. *** ## Agent Name To define your agent's identity: * **Agent Name** – Set your Pearl's name (e.g., *Joe*, *Victoria*). This is the name it will use when chatting with customers. Max **25 characters**, required. ![Agent Name in Pearl Settings](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-agent-customization-name.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=fc8e8d703c40bf8a9b6db8bfacaf4bb1) *** ## Pearl Model The **Pearl Model** defines the intelligence, speed, and cost profile of your agent. Chat agents can run on two models: **Pearl Orchid** and **Pearl Swan**. ![Pearl Model in Pearl Settings](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/text-agent-customization-model.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=012beaf72ccd504817a2c0f94d2e5e6f) > [card] > > > [tab] Pearl Orchid > > > > > [!NOTE] > > > > > > **High Reasoning · Higher Latency · +1 credit/message** > > > > Our most advanced text agent model, surpassing Pearl Swan in intelligence and built to excel across any use case. It is the default model of every text Pearl built with PearlVibe. > > > > Use it when you need: > > > > * The best answer quality on complex or open-ended conversations. > > * Reliable reasoning across many steps, tools, and integrations. > > > [tab] Pearl Swan > > > > > [!NOTE] > > > > > > **Medium Reasoning · Higher Latency · Standard Rate** > > > > Our standard model for chat agents, built to handle any text-based use case with reliable reasoning and natural responses. > > > > Use it when you want: > > > > * A dependable model at the standard rate. > > * High-volume conversations with clear, predictable flows. > [!NOTE] > > Pearl Orchid and Pearl Swan are available only for chat agents. Voice models (Flame, Hydra, Arrow, Trident, Oyster) cannot be selected on a text Pearl. *** ## Personality Your AI agent can take on a wide range of personalities, from natural and professional to wild, fictional, or downright iconic. ![Personality selection in Pearl Settings](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-agent-customization-personality.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f8c4943207fca2e37100ae4461a3e2c0) > [!TIP] > > **Create your own personality.** You're not limited to the predefined list. Type any description in the **Personality** field and select **Use "\" as a custom personality** to define your own. > [!NOTE] > > Choose wisely. Your agent's personality will shape how it behaves in every interaction. Personality is optional, only **Agent Name** and **Timezone** are required. The personalities below are **examples** to give you a feel for the range available. The full list is loaded in the app and may evolve over time. | Personality Name | Description (vibe / reference) | | - | - | | Natural | Neutral and balanced, default tone. | | Friendly Consultant | Warm, helpful, and a touch conversational. | | Aggressive Closer | Direct, assertive, always aiming for a "yes." | | Donald Trump | Bold, confident, and controversial. | | Joe Biden | Soft-spoken, empathetic, with a hint of grandpa energy. | | Wolf of Wall Street | Energetic, persuasive, and money-focused. | | Elon Musk | Visionary, quirky, and matter-of-fact. | | Kevin Hart | Fast-talking and hilarious. | | The Rock | Charismatic and full of hype. | | Jar Jar Binks | Clumsy comic relief with a chaotic syntax. | | Yoda | Wise, reversed sentence order, it has. | | Tommy Shelby | Cold, calculated, Peaky Blinders style. | | Saul Goodman | Slick, legal hustler energy. | | Heisenberg (Walter White) | Dark, serious, calculated: "I am the danger." | | Jesse Pinkman | Street-smart, informal, frequent "yo." | | Optimus Prime | Heroic, formal, and noble. | | Megatron | Villainous and authoritarian. | | Son Goku | Cheerful and battle-ready. | | Daenerys Targaryen | Regal, determined, breaker of chains. | | Hermione Granger | Book-smart, precise, articulate. | | Mulan | Brave, focused, honorable. | | Lady Gaga | Glamorous and creatively intense. | | Tony Stark (Iron Man) | Witty, tech-savvy, and full of sarcasm. | | Elsa (Frozen) | Calm, regal, with an icy edge. | | Michael Scott (The Office) | Awkward, unpredictable, tries to be funny. | | Moana | Adventurous, optimistic, and kind. | | Frida Kahlo | Artistic, deep, and passionate. | | Jack Sparrow | Eccentric and unpredictable. | | Indiana Jones | Adventurous and confident. | | Beyoncé | Empowered, elegant, and commanding. | | Sherlock Holmes | Analytical, detached, brilliant. | | Tiana (The Princess & Frog) | Driven, grounded, and focused. | | Charlie Chaplin | Silent-era charm with expressive tone. | | Katniss Everdeen | Stoic, focused, and fiercely independent. | | Groot | Repetitive but expressive ("I am Groot"). | | Deadpool | Chaotic, irreverent, 4th-wall-breaking. | | The Joker | Unhinged, theatrical, and darkly funny. | | Loki | Mischievous, cunning, and charismatic. | | Bugs Bunny | Witty, cheeky, and playful. | | Pee-wee Herman | Eccentric and unpredictable. | | Dr. Evil | Satirical villain, comically ambitious. | | Borat Sagdiyev | Naive, awkward, hilariously inappropriate. | | Albert Einstein | Brilliant, theoretical, with quirky logic. | | Dorothy Gale | Innocent, curious, with wonder in her tone. | *** ## Timezone Define the timezone of the agent. This influences time-related actions, such as booking meetings. ![Timezone selection in Pearl Settings](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-agent-customization-timezone.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=673329ed06cf84d74a755675cd7d4f5e) # Generic Source: https://developers.nlpearl.ai/pages/text/channels/generic Connect your own messaging system to a Pearl Text agent using asynchronous inbound and outbound webhooks. ![Pearl Generic channel cover](https://mintcdn.com/nlpearl/5tcZPhdyE5qk99Ia/images/dark_mode/generic-cover.png?fit=max\&auto=format\&n=5tcZPhdyE5qk99Ia\&q=85\&s=47f1539cb6006051a8acec548c4c0698) *** ## Generic Channel The **Generic** channel connects your own messaging system to a Pearl Text agent. Use it with a web chat, mobile app, CRM inbox, or any custom platform instead of one of NLPearl's built-in integrations. The integration uses two webhooks: ```text theme={null} Your system ──POST──▶ NLPearl inbound URL (user messages and control actions) Your system ◀──POST── Your outbound URL (Pearl replies and events) ``` The exchange is asynchronous. When you send a user message, NLPearl immediately returns `202 Accepted`. Pearl's reply is delivered shortly afterward as a separate `POST` request to your outbound URL. *** ## Set Up the Channel **1. Open Text Channels** On the platform, go to **Settings**, open **Text Channels**, then find **Generic** and click **Connect Generic**. ![Generic option highlighted on the Text Channels settings page](https://mintcdn.com/nlpearl/aXypnng9RoU1IXvS/images/dark_mode/generic-channel-location.png?fit=max\&auto=format\&n=aXypnng9RoU1IXvS\&q=85\&s=78f3ed4e0a0f4b9b78989a2f09bfca5b) **2. Configure your endpoint** Enter the details NLPearl will use to send events to your system: | Setting | Description | | - | - | | **Channel Name** | A name that helps you identify this connection on the platform. | | **Outbound URL** | An HTTPS endpoint that receives Pearl replies, typing indicators, handoffs, and conversation events. | | **Auth Header** *(optional)* | A custom header name and value that NLPearl includes in every request to your outbound URL, such as your own bearer token. | > [!NOTE] > > If your outbound URL is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). ![Connect Generic Channel dialog with channel name, outbound URL, and optional auth header fields](https://mintcdn.com/nlpearl/aXypnng9RoU1IXvS/images/dark_mode/generic-channel-connect.png?fit=max\&auto=format\&n=aXypnng9RoU1IXvS\&q=85\&s=c4f8bfb51857533f8521445a599ec838) **3. Save your channel credentials** Click **Connect Channel**. Open the connected channel to access the credentials required by your integration: | Value | Description | | - | - | | **Channel ID** | Identifies the channel and forms part of its inbound URLs. | | **Signing Secret** | Authenticates requests in both directions. Send it with every request to NLPearl, and use it to verify requests sent to your outbound URL. | ![Generic Channel details dialog showing the Channel ID and Signing Secret](https://mintcdn.com/nlpearl/aXypnng9RoU1IXvS/images/dark_mode/generic-channel-credentials.png?fit=max\&auto=format\&n=aXypnng9RoU1IXvS\&q=85\&s=6f83552e599ccf99129736090081dd51) > [!WARNING] > > Treat the signing secret like a password. Never expose it in client-side code or commit it to source control. **4. Assign the channel to a Pearl** Open the Pearl that should handle these conversations. From its **Overview** page, open **Settings**, select **Text Channel**, and choose the Generic channel you created. ![Text Channel field highlighted in the Pearl Overview settings](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/text-channel-assign-pearl.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=7bd189b49628beb43b22aae0b1d80a47) Your inbound base URL is: ```text theme={null} https://text.inbound.platform.nlpearl.ai:8443/Generic/{channelId} ``` *** ## Send Requests to NLPearl Send every request as JSON and include the channel secret: ```http theme={null} Content-Type: application/json X-Pearl-Secret: ``` ### Send a User Message Send a user message to: ```http theme={null} POST {baseUrl}/Message ``` ```json theme={null} { "messageId": "m-12345", "chatId": "+1234567890", "senderName": "Jane Doe", "timestamp": "2026-07-17T09:30:00Z", "text": "Hi, I need help with my order", "attachments": [ { "url": "https://your.cdn.example/receipt.jpg", "contentType": "image/jpeg", "filename": "receipt.jpg" } ] } ``` | Field | Required | Description | | - | - | - | | `chatId` | Yes | Your conversation identifier, phone number, or end-user ID. Messages with the same value belong to the same conversation. Maximum 200 characters. | | `messageId` | No | Your unique message identifier. Include it so NLPearl can deduplicate retries. Maximum 200 characters. | | `senderName` | No | The sender name displayed in the transcript. | | `timestamp` | No | The message time as an ISO 8601 timestamp. Defaults to the current time. | | `text` | No | The message text, up to 8,000 characters. | | `attachments` | No | Up to five publicly accessible image, audio, PDF, or text files. Each file can be up to 20 MB. | > [!NOTE] > > `chatId` is the conversation key. Every message with the same `chatId` belongs to the same conversation, and every outbound event for that conversation includes it. Possible responses: | Status | Meaning | | - | - | | `202` | The message was accepted for asynchronous processing. | | `400` | The payload is invalid, or the channel is not connected to a running Pearl. | | `401` | The channel secret is invalid. | | `404` | The channel does not exist. | | `500` | A transient error occurred. You can safely retry when you provide a stable `messageId`. | ### Return Control to Pearl After a human handoff, return the conversation to Pearl: ```http theme={null} POST {baseUrl}/HandoffToPearl ``` ```json theme={null} { "chatId": "+1234567890" } ``` ### End a Conversation Close a conversation: ```http theme={null} POST {baseUrl}/EndConversation ``` ```json theme={null} { "chatId": "+1234567890" } ``` ### Take Over a Conversation Let a human agent take control at any time, without waiting for Pearl to hand off: ```http theme={null} POST {baseUrl}/TakeOver ``` ```json theme={null} { "chatId": "+1234567890" } ``` Pearl goes silent while your agent handles the conversation. Because you initiated the takeover, NLPearl does **not** send a `handoff` event. When your agent is finished, call `/HandoffToPearl` to resume Pearl or `/EndConversation` to close the conversation. ### Record a Manual Reply Add a reply your human agent sent from your own system to the NLPearl transcript, so Pearl resumes with full context: ```http theme={null} POST {baseUrl}/ManualMessage ``` ```json theme={null} { "chatId": "+1234567890", "text": "Sure, I can help you with that." } ``` NLPearl records the message but does **not** deliver it, since your platform already sent it to the user. This is valid only while the conversation is handed off — after a `handoff` event or your own `/TakeOver` — and otherwise returns `400`. > [!WARNING] > > `/ManualMessage` has no retry deduplication. If a request times out and you resend it, the message is recorded twice. These control actions return `200` when successful, or `404` when no active conversation exists for the supplied `chatId`. *** ## Receive Events from NLPearl NLPearl sends each event to your outbound URL as a `POST` request with this envelope: ```json theme={null} { "type": "message", "channelId": "6a59f7e02254e81f5533f11d", "chatId": "+1234567890", "timestamp": "2026-07-17T09:30:02.1234567Z", "data": {} } ``` ### Event Types | `type` | `data` | Meaning | | - | - | - | | `message` | `{ "messageId", "text" }` | Pearl's reply. Deliver it to your user. | | `typing` | None | Pearl is composing a response. You can display a typing indicator. | | `handoff` | `{ "reason", "riskReason"? }` | Pearl handed the conversation to a human. `reason` can be `agent_handoff`, `risk`, `max_turns_reached`, or `manual`. | | `ai_resumed` | None | Pearl resumed control of the conversation. | | `conversation_ended` | None | The conversation was closed by Pearl, because of inactivity, or through `EndConversation`. | > [!NOTE] > > New event types may be added over time. Ignore types your integration does not recognize. ### Acknowledge Message Delivery Your HTTP response controls delivery retries for `message` events: | Your status | NLPearl behavior | | - | - | | `2xx` | The message is marked as delivered. | | `429` | Delivery is retried with backoff. | | `408`, `5xx`, or timeout | Delivery is retried with backoff, then marked as failed if all attempts fail. | | Other `4xx` | The failure is treated as permanent and is not retried. | Other event types, including `typing` and `handoff`, are best-effort notifications and are not retried. *** ## Verify Webhook Signatures NLPearl includes these headers in every request to your outbound URL: ```http theme={null} X-Pearl-Timestamp: 1784281802 X-Pearl-Signature: 3f1a9c... ``` The signature is the hexadecimal result of: ```text theme={null} HMAC-SHA256(secret, "{timestamp}.{rawBody}") ``` Verify the signature and reject old timestamps to protect your endpoint against forged requests and replay attacks: ```js theme={null} const crypto = require("crypto"); function verifyPearlWebhook(req, rawBody, secret) { const timestamp = req.headers["x-pearl-timestamp"]; const signature = req.headers["x-pearl-signature"]; if (!timestamp || !signature) { return false; } const expected = crypto .createHmac("sha256", secret) .update(`${timestamp}.${rawBody}`) .digest("hex"); const signatureBuffer = Buffer.from(signature, "hex"); const expectedBuffer = Buffer.from(expected, "hex"); return ( signatureBuffer.length === expectedBuffer.length && crypto.timingSafeEqual(signatureBuffer, expectedBuffer) && Math.abs(Date.now() / 1000 - Number(timestamp)) < 300 ); } ``` > [!WARNING] > > Compute the HMAC over the raw request body bytes before parsing the JSON. Re-serializing a parsed body can change its bytes and invalidate the signature. If you configured a custom authentication header, NLPearl includes it alongside the signature headers. *** ## Handle Human Handoffs A handoff can start in two ways: Pearl steps aside on its own and sends a `handoff` event, or your agent takes control directly with `/TakeOver`. Either way, Pearl stays silent until the conversation is returned to it. **1. Start the handoff** Pearl sends a `handoff` event with the reason it stepped aside, or your agent calls `/TakeOver` to step in directly. No `handoff` event is sent for your own takeover. **2. Keep the transcript in sync** Let your human agent communicate with the user in your own system. Continue sending the user's messages to `/Message`, and record your agent's replies with `/ManualMessage`. Pearl remains silent while handed off, but the transcript and inactivity timers stay up to date, so Pearl resumes with full context. **3. Finish the handoff** Call `/HandoffToPearl` when Pearl should resume, or `/EndConversation` when the conversation is complete. Your endpoint then receives `ai_resumed` or `conversation_ended`, respectively. *** ## Rotate the Secret Open the connected Generic channel and click the **rotate** icon beside the Signing Secret to generate a new one. ![Rotate Signing Secret button in the Generic Channel details dialog](https://mintcdn.com/nlpearl/aXypnng9RoU1IXvS/images/dark_mode/generic-channel-rotate-secret.png?fit=max\&auto=format\&n=aXypnng9RoU1IXvS\&q=85\&s=30e1975203665174f38d91830387e45e) The previous secret becomes invalid immediately. Update the secret used for both the `X-Pearl-Secret` request header and webhook signature verification at the same time. Otherwise, your inbound requests and outbound webhook verification will fail until both sides use the new value. *** ## Limits | Limit | Value | | - | - | | Text length | 8,000 characters | | Attachments per message | 5 | | Attachment size | 20 MB each | | `chatId` length | 200 characters | | `messageId` length | 200 characters | > [!WARNING] > > The channel must be assigned to a running Pearl. If the Pearl is stopped or no Pearl is connected, inbound calls return `400` with `"This channel is not connected to a Pearl."`. *** > [card] [Inbound](/pages/text/inbound) > > Configure how your Pearl handles incoming conversations, inactivity, transcripts, and webhooks. # SMS Source: https://developers.nlpearl.ai/pages/text/channels/sms Connect your Pearl Text agent to SMS through Twilio to send and receive text messages with your customers. ![SMS cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=9ad432383c831a6df405b38c404c78d9) *** ## SMS Channel Connect your Pearl Text agent to **SMS** to handle conversations over standard text messaging. SMS runs through **Twilio**, so the connection works exactly like the [Twilio Integration](/pages/twilio_integration) used for voice phone numbers - you link your Twilio account once, then use your numbers across NLPearl. > [!NOTE] > > SMS works for both [inbound](/pages/text/inbound) conversations, where the customer messages you first, and [outbound](/pages/text/outbound) campaigns, where Pearl reaches out proactively. *** ### Step 1 - Connect your Twilio account Connecting SMS uses the same flow as importing voice phone numbers. Follow the [Twilio Integration](/pages/twilio_integration) guide to link your Twilio account with NLPearl, then come back here to buy a number dedicated to SMS. > [card] [Twilio Integration](/pages/twilio_integration) > > Link your Twilio account with NLPearl to use your Twilio numbers on the platform. *** ### Step 2 - Buy a phone number for SMS The only difference with SMS is that you buy a number specifically enabled for messaging. You do this directly in the [Twilio Console](https://www.twilio.com/console), in three steps. **1. Open Numbers & senders** In the Twilio Console, open the **Products & Services** menu and select **Numbers & senders**. ![Open Numbers & senders in the Twilio Console](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/sms-channel-numbers-menu.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=ae08e5ade30cd66c23d238677bf3350f) **2. Set up a new phone number** Open the **Phone Numbers** tab and click **Set up a new phone number** on the top right to start the purchase flow. ![Set up a new phone number from the Phone Numbers tab](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/sms-channel-setup-number.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=b60eed4e184744ca386e80446cff4f29) **3. Select an SMS-enabled number** Choose the **destination country** where your customers are, then under **capabilities** make sure **SMS** is checked. Search for a number, pick one, and complete the purchase. ![Select a phone number with SMS capability enabled](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/sms-channel-select-sms.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=ac60975945bcb6577d6da0dfb0740bac) > [!NOTE] > > Once purchased, the SMS number appears in Twilio. Import it into NLPearl from the [Twilio Integration](/pages/twilio_integration) screen, just like any other Twilio number. *** > [card] [Inbound](/pages/text/inbound) > > Deploy your agent on inbound channels to answer incoming SMS instantly. > [card] [Outbound](/pages/text/outbound) > > Launch outbound SMS campaigns to reach customers proactively. # Telegram Source: https://developers.nlpearl.ai/pages/text/channels/telegram Connect your Pearl Text agent to Telegram by creating a bot with BotFather and linking its token to the platform. ![Telegram cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=3c8efee51aaa53d5f16fea7ba3a5333d) *** ## Telegram Channel Connect your Pearl Text agent to **Telegram** through a Telegram bot. Pearl replies using the flow, knowledge, and actions defined in your Pearl, in [inbound](/pages/text/inbound) conversations. > [!NOTE] > > Telegram is available for inbound only: a Telegram bot can't start a conversation, it can only answer users who message it first. To connect Telegram, you first create a bot directly inside the Telegram app using **BotFather**, then paste the bot token into the platform. *** ### Step 1 - Create your Telegram bot **1. Create a Telegram account** If you don't have one yet, download Telegram and create an account. **2. Find BotFather** In Telegram's contact search, look for **BotFather** (the official Telegram bot for creating bots) and open the conversation. ![Searching for BotFather in Telegram](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-search.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f13cfbeacefe117ba20d0929e4f92659) **3. Start the conversation** Send the `/start` command to BotFather. It replies with the list of available commands. ![BotFather /start command](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-start.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=40401bbd584298825612b790e036bb43) **4. Create a new bot** Send the `/newbot` command. BotFather will ask you to choose a name for your bot. > [!NOTE] > > The name must always **end with `bot`** (for example `MySupportBot` or `my_support_bot`). ![BotFather /newbot command and bot name](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-new-bot.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=517b2e3fbd321807bb2be9dafe49b3d1) **5. Save your token** Once the bot is created, BotFather sends you a message containing the link to talk to your bot and an **access token**. Keep this token - you'll need it to connect the bot to the platform. > [!WARNING] > > Treat the token like a password. Anyone with it can control your bot, so don't share it publicly. ![BotFather bot creation confirmation and token](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-token.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=dbb9c7bd6b2fdff72403912eb184ea60) *** ### Step 2 - Connect Telegram on the platform **1. Open the Text Channel settings** On the platform, go to **Settings**, then open the **Text Channel** page. **2. Connect to Telegram** Select **Telegram** and start a new connection. ![Connect Telegram from the Text Channels page](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-connect.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=886a50d67202eaa89f9391b4ea9d0d2d) **3. Enter the bot details** * **Token**: paste the access token you received from BotFather. * **Channel Name** *(optional)*: give the connection a name to identify it later. ![Connect Telegram dialog with bot token and channel name](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/telegram-connect-modal.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f51811058f8b9912ffa9f89c532739db) **4. Save and test** Save the connection, then message your bot on Telegram to confirm Pearl replies as expected. **5. Assign the channel to a Pearl** Open the Pearl you want to use for [inbound](/pages/text/inbound) conversations, go to **Settings**, and set the connected Telegram bot as its **Text Channel**. ![Assign the Telegram channel to a Pearl from its settings](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/text-channel-assign-pearl.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=7bd189b49628beb43b22aae0b1d80a47) *** > [card] [Inbound](/pages/text/inbound) > > Deploy your agent on inbound channels to answer incoming Telegram messages instantly. # WhatsApp Source: https://developers.nlpearl.ai/pages/text/channels/whatsapp Connect your Pearl Text agent to WhatsApp Business through Meta Embedded Signup, keeping your number active in the WhatsApp Business app or dedicating it to NLPearl. ![WhatsApp cover](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-cover.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=ae4896b7ec56b487568eeff7eb41c8f0) *** ## WhatsApp Channel Connect your Pearl Text agent to **WhatsApp** through your WhatsApp Business account. Pearl replies using the flow, knowledge, and actions defined in your Pearl, across both [inbound](/pages/text/inbound) conversations and [outbound](/pages/text/outbound) campaigns. Outbound campaigns open each conversation with a WhatsApp template approved by Meta (see [Outbound campaigns and templates](#outbound-campaigns-and-templates)). The connection runs through **Meta Embedded Signup**: a Meta window opens on the platform, you log in with the Facebook account that manages your business, and Meta links your WhatsApp Business account to NLPearl. You can start it from two places: * **Settings** → **Text Channels**, then click **Connect Channel** and choose **WhatsApp**. ![Connect WhatsApp from the Text Channels settings page](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-channel-location.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=4cde9f9f847f5a39820f85dee58c6a2a) * From a Pearl's **Overview** page, through the **Add a Channel** chooser. ![WhatsApp option in the Add a Channel chooser on a Pearl's Overview page](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-add-channel-chooser.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=9d7b88c2f5f69847239ee73727fe3288) *** ### Choose a connection mode Before connecting, pick how NLPearl should use your number: | | **Coexistence** - *Keep using WhatsApp on my phone* | **Dedicated** - *Dedicate this number to NLPearl* | | - | - | - | | **WhatsApp Business app** | Keeps working - the number stays active in the app with its chat history. | No longer usable for this number, and its app chat history is not kept. | | **Who replies to customers** | Pearl and you - replies you send from your phone show up in the NLPearl conversation. | Pearl only, through NLPearl. | | **Phone dependency** | Open the app at least once every 14 days, or Meta drops the connection and your campaigns stop. | None - the number runs entirely on the Cloud API. | | **Sending throughput** | Fixed at 20 messages per second. | 80 messages per second, up to 1,000 for eligible numbers. | | **Phone numbers** | One per connection - the number active in your app. | Several numbers can be imported on the same account. | | **Group chats** | Stay in the app - Pearl only handles individual conversations. | Not supported - the API only handles individual conversations. | Both modes share WhatsApp's [messaging limits](https://developers.facebook.com/docs/whatsapp/messaging-limits): business-initiated conversations start at 250 per 24 hours and scale automatically to 2,000, 10,000, 100,000, then unlimited - once you [verify your business](https://www.facebook.com/business/help/2058515294227817) with Meta or sustain enough high-quality template volume. > [!NOTE] > > If you already use the number in the WhatsApp Business app, choose **Coexistence** - you keep your app and chat history while Pearl handles conversations on the same number. Choose **Dedicated** for high-volume campaigns or when the channel must not depend on a phone. *** ### Connect in Coexistence mode Before you start, keep your number active in the **WhatsApp Business app** on your phone - Meta requires app version 2.24.17 or later, and the regular WhatsApp app is not supported. **1. Start the connection** Select **Keep using WhatsApp on my phone**, then click **Connect WhatsApp**. ![Coexistence mode selected in the Connect WhatsApp panel](https://mintcdn.com/nlpearl/S9v7zpzpXf37zOmp/images/dark_mode/whatsapp-mode-coexistence.png?fit=max\&auto=format\&n=S9v7zpzpXf37zOmp\&q=85\&s=5013944908f18a95cc918b7c69404eae) **2. Log in and continue** A Meta window opens. Log in with the Facebook account that manages your business and click **Continue**. ![Meta Embedded Signup introduction screen](https://mintcdn.com/nlpearl/S9v7zpzpXf37zOmp/images/dark_mode/whatsapp-meta-intro.png?fit=max\&auto=format\&n=S9v7zpzpXf37zOmp\&q=85\&s=b1178aad565a011bdd1c3c40b6e82530) **3. Select your business assets** Pick or create your **Business portfolio**. ![Business portfolio and WhatsApp Business account selection](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-business-assets.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=773df0c830ef6f8c1517ed6d94e2c9ed) Under **WhatsApp Business account**, select **Connect a WhatsApp Business App** - this is what links the number already used in your app. ![Connect a WhatsApp Business App option selected](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-connect-app.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=9aa5176eba2fd5475d9ab09d5956e3c9) **4. Enter your business information** Fill in your business details - they only affect newly created assets. ![Business information form in the Meta window](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-business-info.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=83fbed6497394ff5b3de15140c6d6193) **5. Enter your WhatsApp Business phone number** Enter the number that is active in your WhatsApp Business app. ![WhatsApp Business phone number form](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-phone-number.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=c37308257a14264b3d5cfa01056b0838) Meta then explains what connecting your existing app means: you keep full access to the app, and account information like your phone number, contacts, and chat history may be shared. ![Details about connecting your existing WhatsApp Business App](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-phone-confirm.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=19b9e55a3657377e8c5954ab6651d0da) **6. Get the QR code** Meta shows a QR code and offers to import your business profile, contacts, and the last 6 months of chat history. Keep this window open - you'll scan the code with your phone. > [!NOTE] > > Group chat history is not shared - only individual conversations are imported. ![QR code to scan with the WhatsApp Business app](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-qr-code.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=841ff3e8afdba49d0d16c57cfd34d239) **7. On your phone, start the link** In the WhatsApp Business app, open the message from the official **Facebook Business** account and tap **Connect**. ![Facebook Business message with the Connect button in the WhatsApp Business app](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-app-connect.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=50d01d49256c20da1e1827b96bd0d905) Review what connecting to the Business Platform means, then continue. ![Connect to the Business Platform screen in the WhatsApp Business app](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-app-platform.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=8acd58090735ef1f9f0d6f34a5685325) **8. Scan the QR code** Point your phone at the QR code displayed in the Meta window. ![QR code scanner in the WhatsApp Business app](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-app-scan.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=1f986900df7783b348983f339184faa3) Once scanned, the app confirms your number is connected to NLPearl. ![Connection success screen in the WhatsApp Business app](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-app-success.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=80f96a6d69ac1b819dd8e38ea21e8591) > [!WARNING] > > Open the WhatsApp Business app at least once every **14 days** to keep the coexistence connection active. **9. Confirm your WhatsApp Business account** Back in the Meta window, confirm or edit your WhatsApp Business account name and timezone, then finish the signup. ![Confirm the WhatsApp Business account name and timezone](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-confirm-account.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=5b6bf0cf2d9cdb0351a86e16f2459036) **10. Your number is connected** The number is imported automatically and appears with the **App + API** tag: it keeps working in your WhatsApp Business app while Pearl uses it through the API. ![Connected WhatsApp Business account with a coexistence number tagged App + API](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-coexistence-connected.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=6f22c42e17d443612f5bc43daaaa3441) > [!NOTE] > > * Messages you send from the WhatsApp Business app stay free and don't affect the API conversation windows Pearl uses. > * Onboarding unlinks the app's companion devices (WhatsApp Web, desktop apps); you can re-link supported devices afterwards. > * For the full technical details, see [Meta's coexistence documentation](https://developers.facebook.com/documentation/business-messaging/whatsapp/embedded-signup/onboarding-business-app-users). *** ### Connect in Dedicated mode **1. Start the connection** Select **Dedicate this number to NLPearl**, then click **Connect WhatsApp**. A Meta window opens - log in with the Facebook account that manages your business and continue through the intro. ![Dedicated mode selected in the Connect WhatsApp panel](https://mintcdn.com/nlpearl/S9v7zpzpXf37zOmp/images/dark_mode/whatsapp-mode-dedicated.png?fit=max\&auto=format\&n=S9v7zpzpXf37zOmp\&q=85\&s=4c01f6719063f8980368e2ff671e3d60) **2. Select your business assets** Pick or create your **Business portfolio**, and under **WhatsApp Business account** select **Create a WhatsApp Business account** (or pick an existing one). ![Create a WhatsApp Business account option selected](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-create-waba.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=5eec41a79e28082a8766374985205982) **3. Enter your business information** Fill in your business name, category, country, and website. ![Business information form for the new WhatsApp Business account](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-business-info.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=7fcedda612fe4f08160b7ebb7d42a214) **4. Add your WhatsApp phone number** Choose how you want to be identified when sending messages. **Use a display name only** - people only see a display name in the chat, without a phone number. ![Use a display name only option with the additional verification notice](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-display-name.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=40e54c4faebdc62f4441ef5c1ec9653a) > [!NOTE] > > With a display name only, Meta reviews your business name and display name before you can send freely. This can take up to 1 business day; during the review you can send 5 business-initiated test messages every 24 hours. **Add a new number** - enter the number to dedicate to NLPearl and verify it by text message or phone call. ![Add a new number option with verification by text message or phone call](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-new-number.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=f5d8ad83e47f7a9cb60caa50aa645414) > [!WARNING] > > The number must not be registered to any WhatsApp account. If it is, Meta shows an error - migrate the number or disconnect it from the existing account first, then try again (it can take up to 3 minutes for the number to refresh). ![Error shown when the phone number is already registered to a WhatsApp account](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-number-error.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=4bcb407a891a48b813046913825ba94a) **5. Review permissions and confirm** Review what NLPearl will be able to access and do, then click **Confirm**. ![Review of the permissions granted to NLPearl](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-permissions.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=45ce2a40bad9ddf41a730199645f7f31) **6. Finish the signup** Your account is connected. Meta reviews your business against [WhatsApp's Commerce Policy](https://whatsappbusiness.com/policy/) and reaches out within 24 hours if there's an issue. You can also add a payment method now or later - Meta bills the template messages your business sends to the payment method on your WhatsApp Business account. Outbound campaigns need a valid payment method there. ![Meta confirmation that the account is connected to NLPearl](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-connected.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=1eeebcd42b39ea902b0d945a5ed79c40) *** ### Import your numbers Once connected, the platform lists the phone numbers of your WhatsApp Business account. Click **Add to account** next to each number you want to use - each one becomes a text channel on the platform. ![WhatsApp Business account numbers listed with the Add to account button](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-dedicated-numbers-list.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=6d2c4414c23af5a9ffa0498dd6dee68f) Importing a dedicated number registers it on the WhatsApp Cloud API. If two-step verification is enabled on the number, turn on the **Two-step verification PIN** option in the import dialog and enter the number's **6-digit PIN**. ![Import WhatsApp number dialog with the two-step verification PIN option](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/whatsapp-import-number-pin.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=779c5618b104e573687b1675446bd5b8) > [!NOTE] > > Coexistence numbers are imported automatically after the QR code scan and never ask for a PIN. To use the channel, open the Pearl you want for [inbound](/pages/text/inbound) or [outbound](/pages/text/outbound) conversations, go to **Settings**, and set the imported WhatsApp number as its **Text Channel**. ![Assign the WhatsApp channel to a Pearl from its settings](https://mintcdn.com/nlpearl/wZmEH3kpy8_QAEMX/images/dark_mode/text-channel-assign-pearl.png?fit=max\&auto=format\&n=wZmEH3kpy8_QAEMX\&q=85\&s=7bd189b49628beb43b22aae0b1d80a47) > [!NOTE] > > A WhatsApp number can be used by only one live Pearl at a time. *** ### Outbound campaigns and templates WhatsApp only lets a business start a conversation with a **message template** approved by Meta. To run an outbound campaign on WhatsApp, the **opening sentence** of your Pearl must match an approved template, word for word. When a lead is contacted, NLPearl sends the matching template with its variables filled in. Once the lead replies, Pearl continues the conversation as usual. Inbound conversations don't need a template: the customer writes first. #### How the opening sentence matches a template * Letter case, spaces, punctuation, and emojis are ignored. * The words must be identical, accents included, and the template must use the same variables, in the same order. * The lead receives the text of the approved template, not the opening sentence of your Pearl. * If your Pearl calls a [Pre-Call API](/pages/api_action), it has two opening sentences (one when the request succeeds, one when it fails). Each one needs its own approved template. #### Manage your templates Templates live in **Settings** → **Text Channels**, under the **WhatsApp** tab. They are grouped by WhatsApp Business account: a template belongs to the account, so every number connected through that account can send it. Expand a template to read its message. ![WhatsApp templates listed under Settings, Text Channels, WhatsApp tab](https://mintcdn.com/nlpearl/LczyTgR5iI-Pk5yz/images/dark_mode/whatsapp-templates-tab.png?fit=max\&auto=format\&n=LczyTgR5iI-Pk5yz\&q=85\&s=6dbe2a1bc8237935a12efd8a99cd8214) Only **Approved** templates can be sent. The other statuses come from Meta: | Status | Meaning | | - | - | | **In review** | Meta is reviewing the template. | | **Approved** | The template can open conversations. | | **Rejected**, **Disabled**, **Paused**, **Limit exceeded** | The template can't be sent. Open WhatsApp Manager on Meta to see why. | | **In appeal** | You appealed Meta's decision and the appeal is under review. | | **Pending deletion**, **Deleted** | The template was deleted on Meta. | NLPearl reads the latest statuses from Meta each time you open the tab. #### Create a template **1. Open the template form** Go to **Settings** → **Text Channels** → **WhatsApp**, then click **Create Template**. **2. Name and language** * **Name**: lowercase letters, digits, and underscores only, with no spaces (for example `appointment_reminder`). The name can't be changed later. * **Channel**: shown only when you have several WhatsApp numbers. The template is created on that number's WhatsApp Business account. * **Language**: the language of the message. It can't be changed later. ![New Template window with the template name, channel, and language](https://mintcdn.com/nlpearl/LczyTgR5iI-Pk5yz/images/dark_mode/whatsapp-template-create-name.png?fit=max\&auto=format\&n=LczyTgR5iI-Pk5yz\&q=85\&s=db8180a6a6f4988090a19991473e6e8a) **3. Message** Write the message, up to **1,024 characters**. Click **Variable** to insert a variable such as `{firstName}`. * The message must **start and end with words**, never with a variable. Punctuation alone doesn't count. * Templates are text only: headers, footers, buttons, and media aren't supported. **4. Sample values** Enter one example value per variable (for example `John` for `{firstName}`). Meta uses them to review the template, and realistic values get approved more easily. ![Template message with variables and their sample values](https://mintcdn.com/nlpearl/LczyTgR5iI-Pk5yz/images/dark_mode/whatsapp-template-create-message.png?fit=max\&auto=format\&n=LczyTgR5iI-Pk5yz\&q=85\&s=43498c3e110633d70ee9161245341880) **5. Submit for review** Click **Submit for Review**. The template shows as **In review** until Meta approves or rejects it. Review usually takes a few minutes, and can take up to 24 hours. > [!NOTE] > > NLPearl submits templates in Meta's **Marketing** category. Meta may move a template to another category, such as **Utility**, during review. Meta bills template messages to the payment method of your WhatsApp Business account, at its own rates. > [!TIP] > > The quickest way to get a matching template is from your Pearl itself: when you set it live, NLPearl offers to create a template with the exact text of each opening sentence (see [Go live](#go-live)). #### Import existing templates If your WhatsApp Business account already has templates, click **Import** in the **WhatsApp** tab. Choose the channel when you have several numbers, select the templates you want, then click **Import**. The list shows every template of the account that isn't in NLPearl yet, whatever its status. ![Import Templates window with a template selected](https://mintcdn.com/nlpearl/LczyTgR5iI-Pk5yz/images/dark_mode/whatsapp-template-import.png?fit=max\&auto=format\&n=LczyTgR5iI-Pk5yz\&q=85\&s=8d5e962d1a6b7793fb690efaa00ed0f2) > [!WARNING] > > Once imported, editing or deleting a template in NLPearl also changes it on Meta. NLPearl only uses the message body: when you edit an imported template that has a header, footer, or buttons, they are removed on Meta. #### Edit or delete a template * **Edit** is available for **Approved**, **Rejected**, and **Paused** templates. You can change the message and its sample values, not the name or language. The template goes back to **In review**. Meta allows editing an approved template once every 24 hours and up to 10 times per 30 days. * **Delete** removes the template from NLPearl and from Meta. > [!WARNING] > > Deleting a template, or editing it so it no longer matches, doesn't pause the Pearls that use it. Their new leads fail until an approved template matches the opening sentence again. #### Go live When you set a WhatsApp outbound Pearl **Live**, publish a new version of a live Pearl, or switch a live Pearl to a WhatsApp channel, NLPearl checks that every opening sentence matches an approved template on the number's WhatsApp Business account. If one doesn't, the **Approved template required** window opens: * Each opening sentence without a template has a **Create template** button. The message is pre-filled with the exact opening sentence and can't be edited there: to reword it, change the opening sentence first. * The templates already on the account are listed below with their status. ![Approved template required window with the Create template button](https://mintcdn.com/nlpearl/LczyTgR5iI-Pk5yz/images/dark_mode/whatsapp-template-required.png?fit=max\&auto=format\&n=LczyTgR5iI-Pk5yz\&q=85\&s=48e506336801b487c750183d4c72117e) Once the new template shows as **Approved**, try again. #### Template variables Variables are filled by name, ignoring case. A template variable takes its value from: * the lead's data, such as the columns of your lead file or the `callData` of the [Add Lead](/api-reference/v2/outbound/add-lead) API; * the outputs of the Pre-Call API; * built-in variables such as `{phoneNumber}`; * `{agentName}`, which takes the **Agent Name** of your Pearl. > [!WARNING] > > If a variable has no value for a lead, or its value contains a line break, nothing is sent: the conversation and the lead move to **Error**. #### After the first message * When the lead replies, the conversation continues in the same thread and Pearl answers in free text. * WhatsApp only accepts free-text messages within **24 hours** of the lead's last message. [Inactivity follow-ups](/pages/text/outbound#inactivity-follow-up) are sent as free text, so they can't reach a lead who hasn't replied yet, or whose last reply is more than 24 hours old. #### When a message can't be sent The reason appears in a red banner on the conversation. | Cause | Result | | - | - | | A variable has no value, or no approved template matches the opening sentence | The conversation and the lead move to **Error**. The banner reports a template problem. | | A payment issue on your WhatsApp Business account | The conversation and the lead move to **Error**. Add or update the payment method in Meta Business Suite → **Billing & payments**. | | A temporary error on WhatsApp's side | The lead moves to **Need Retry** and is contacted again, then to **Unreachable** once the attempts run out. | *** ### Manage the connection Everything is managed from the WhatsApp Business account screen in **Settings** → **Text Channels**: * **Add a number from your WhatsApp app** - connect an additional number in coexistence mode at any time. * **Remove a number** - disconnects the number from NLPearl and deletes its text channel. Any Pearl using it is paused, and you can import the number again later. Its templates stay in NLPearl while another number of the same WhatsApp Business account is connected; removing the last one removes them from NLPearl, but not from Meta. * **Disconnect** - disconnects your WhatsApp Business account from NLPearl. You can reconnect it at any time. *** ### Troubleshooting > [accordion] My coexistence number disconnected after two weeks > > Meta drops the coexistence connection when the WhatsApp Business app stays inactive for about 14 days, and your campaigns stop with it. To reconnect the number, open the WhatsApp Business app on your phone, then go to **Settings** → **Text Channels**, open your **WhatsApp Business Account**, and click **Add a number from your WhatsApp app** - the Meta window opens and you scan the QR code again, exactly like the first connection. To prevent it, open the app at least once every 14 days. > [accordion] I forgot the two-step verification PIN > > The 6-digit PIN requested when importing a dedicated number is WhatsApp's two-step verification PIN. > > * If the number is still registered in the WhatsApp Business app, reset it from the app under **Settings** → **Account** → **Two-step verification**. > * If the number is already registered on the Cloud API, manage its PIN from Meta's **WhatsApp Manager**, in the phone number's settings. > [accordion] Meta says my number is already registered to a WhatsApp account > > In dedicated mode, the number can't be attached to any WhatsApp or WhatsApp Business app account. > > * If you want to keep using the app with this number, connect it in **Coexistence** mode instead. > * Otherwise, release the number by deleting its account in the app (**Settings** → **Account** → **Delete account**), then try again. It can take up to 3 minutes for Meta to refresh the number's status. *** > [card] [Inbound](/pages/text/inbound) > > Deploy your agent on inbound channels to answer incoming WhatsApp messages instantly. > [card] [Outbound](/pages/text/outbound) > > Launch outbound WhatsApp campaigns to reach customers proactively. # Hand-Off Node Source: https://developers.nlpearl.ai/pages/text/handoff_action Available for **Pearl Text** only. ![Hand-Off cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/handoff-action-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=0a926451c7fd126fb3bb37e74acd42b0) The **Hand-Off** node passes the conversation from Pearl to one of your human agents. When it triggers, Pearl stops replying in the chat and the conversation waits for a human to pick it up from the NLPearl platform. **What it does**: Hands the text conversation from Pearl over to a human agent. **When to use**: Escalate to a person, route to sales or support, or step in when Pearl can't help. > [!NOTE] > > It's the text-chat equivalent of transferring a call to a live agent. A hand-off only stops Pearl from replying, it does **not** close or end the conversation. The customer can keep writing, and their messages wait for you in **Human Takeover**. ![Hand-Off node configuration with the Say field and notification channels](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/handoff-action-node.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=4d5ff4c9bdf13c073933a1eb23f40964) *** ## When it triggers There are two ways to reach the Hand-Off node. Use either, or both together. | Trigger | How it works | Best for | | - | - | - | | **From a previous node** | Connect a transition from any node to the Hand-Off node. The hand-off runs when the flow follows that transition. | A fixed step in your flow, e.g. right after a "Talk to sales" choice. | | **With a condition** | In the **When to trigger** field, describe in plain language when Pearl should hand off (e.g. *"If the client asks to speak to a human."*). Pearl evaluates it throughout the conversation. Up to 250 characters. | Catching intent that can come up at any point. | > [!TIP] > > Combine both: a fixed transition for the obvious path, and a **When to trigger** condition to catch everything else. *** ## How to configure **1. Say (optional)** Have Pearl send one last message before it stops replying, for example to let the customer know a human is taking over. Up to 500 characters, and you can insert variables. Leave it empty for a silent hand-off. **2. Notify your team** Alert your team so someone picks the conversation up quickly. Set up notifications across three channels and add up to **3 of each**, mix them freely. ![Notify when triggered section with SMS, Email, and API channels](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/handoff-action-example.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=5acddcab251f57ffbef74867c8be8c4f) > [card] Notification channels > > > [tab] SMS > > > > | Field | Description | > > | - | - | > > | **To** | One or more phone numbers to text. | > > | **Content** | The message to send. Up to 1,000 characters; supports variables. | > > > [tab] Email > > > > | Field | Description | > > | - | - | > > | **From** | The sender address. Defaults to Pearl's default email address. | > > | **Recipient Emails** | One or more recipients. *Required.* | > > | **CC** | Optional addresses to copy. | > > | **Subject** | The email subject. *Required.* | > > | **Content** | The email body. Up to 2,000 characters; supports variables. | > > > [tab] API > > > > | Field | Description | > > | - | - | > > | **Name** | A label for this call, for your own reference. | > > | **URL** | The endpoint to call, with the HTTP method (GET, POST, …). *Required.* | > > | **Headers** | Optional key/value pairs sent with the request. | > > | **Credentials** | Enable to include authentication credentials with the request. | > > | **Test API** | Send a test request to confirm your setup before saving. | > [!NOTE] > > Up to **3 notifications per channel**, so up to 3 SMS, 3 emails, and 3 API calls. Use the **+** button to add another within a channel. > [!TIP] > > Most fields accept variables through the **\{+} Variable** button, the farewell message, SMS and email content, even the API URL, so you can drop in details like the customer's name or the conversation reference. *** ## Take over the conversation After a hand-off, pick the conversation up yourself from the NLPearl platform. Open **Human Takeover**, available both during the live chat and after it, to read the customer's messages and reply directly. # Inbound Source: https://developers.nlpearl.ai/pages/text/inbound Configure your text Pearl to handle incoming conversations, from message limits and inactivity handling to transcripts and webhooks. ![Inbound cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-inbound-cover.svg?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c73ea0a91172a972a3a21905ef3acb6e) *** ## Setting Up Inbound Activities Once you have created a Pearl, you can enable it to handle inbound conversations. Inbound settings are configured inside your Pearl, under **Inbound Settings**, so your Pearl replies to incoming messages following the conversational flow you defined. > [!NOTE] > > **What are inbound activities?** > > Inbound activities are used when the end user starts the conversation. Pearl replies using the flow, knowledge, and actions defined in your Pearl. *** ## Connect a Channel Unlike a voice activity, an inbound text activity isn't tied to a phone number, it's connected to a **messaging channel**. Once your Pearl is published, open its **overview** page and connect the channel your customers will use. Each channel is dedicated to your activity and can receive conversations from anywhere, at any time. NLPearl supports built-in channels such as **WhatsApp**, **Telegram**, **SMS**, and **Glassix**, as well as a **Generic** channel for custom messaging systems. Follow the dedicated guides to set one up: > [card] [WhatsApp](/pages/text/channels/whatsapp) > > Connect your WhatsApp Business account through Meta - keep your number in the app or dedicate it to Pearl. > [card] [SMS](/pages/text/channels/sms) > > Connect your Pearl to SMS through Twilio to text with your customers. > [card] [Telegram](/pages/text/channels/telegram) > > Connect your Pearl to Telegram by linking a bot created with BotFather. > [card] [Generic](/pages/text/channels/generic) > > Connect a web chat, mobile app, CRM inbox, or custom platform through asynchronous webhooks. *** ## Inbound Settings Configure how your Pearl handles incoming conversations from the **Inbound Settings** tab of your Pearl, in the [PearlVibe](/pages/pearl_vibe) flow editor. > [!WARNING] > > These settings apply to **text** Pearls only. A voice Pearl has a different set of inbound options. ### Message Limit The maximum number of messages Pearl sends before automatically handing the conversation off to a human. You can set between **5 and 1000** messages (default **100**). ![Message Limit setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-inbound-message-limit.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=e7068279448e5c019c8ff485f21da20e) *** ### Auto-close After Inactivity How long a conversation can stay inactive before Pearl closes the chat and triggers the post-chat summary. You can set between **1 and 72 hours** (default **24 hours**). ![Auto-close After Inactivity setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-inbound-auto-close.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=035b4b195c189b5a6ce0ccc5243890cf) *** ### Response Delay How long Pearl waits before replying. When a customer sends several messages in a row, Pearl answers them together instead of replying to each one. Choose from **ASAP** up to **5 minutes**, in 30-second steps (default **ASAP**, which means Pearl replies as soon as it is ready). ![Response Delay setting](https://mintcdn.com/nlpearl/tHQ8UGrMS66f83Dh/images/dark_mode/text-inbound-response-delay.png?fit=max\&auto=format\&n=tHQ8UGrMS66f83Dh\&q=85\&s=68dd6fa00f43466662997fd2d9911b9e) > [!NOTE] > > Inbound and outbound each have their own response delay. Setting one does not change the other. *** ### Inactivity Follow-up When enabled (on/off), Pearl sends follow-up messages when the end user stops replying after Pearl's last message, to re-engage the conversation. ![Inactivity Follow-up setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-inbound-inactivity-followup.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=852e8eacfd96dca2c541146ed552a4e0) * **Up to 3 follow-ups**: each one is a **delay** plus an optional **message**. * **Minimum delay**: at least **5 minutes** between follow-ups for inbound. * **Default**: a single follow-up sent after **10 minutes**. > [!NOTE] > > Follow-up messages can use **Pre-Call** variables (e.g. the customer's first name) to keep the re-engagement personal. *** ### Mask Sensitive Info Replace personal details with `****` in everything that is kept after the conversation. The transcript is always kept: **Off** stores it as-is, **On** masks it and opens the masking settings below. ![Mask Sensitive Info setting](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/text-inbound-transcript-option.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=9c6d96243b3cc27f1b167890f44fd0d3) | Setting | Description | | - | - | | **PII Detection** | **Auto** lets the AI decide what is personal information, such as names, phone numbers, or card numbers. **Manual** masks only the variables you pick, the same way in every conversation. | | **Variables to mask** | *Manual only.* The variables whose values are masked. Their values are replaced with `****` wherever they appear, including inside other variables. | | **Mask personal details in** | Where masking applies: **Transcript**, **Summary**, **Variables**, and **Action logs**. Unchecked parts keep the original values. In Manual mode, this setting reads **Mask the variables in**. | | **Send Masked Payloads** | **On**: webhooks and post-chat actions receive the masked values (`****`). **Off**: they receive the original values. | > [!NOTE] > > With **Auto** detection, if a customer writes *"My credit card number is 1234-5678-9012-3456"*, the transcript stores it as *"My credit card number is \*\*\*\*"*, so you can review interactions safely without exposing sensitive data. *** ### Webhooks Send conversation lifecycle events to an external endpoint. ![Webhooks setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-inbound-webhook.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=a8bfea79c98911f4ee2d33737531ac46) * **Version**: `V1` or `V2` (default **V2**). V2 is the current payload format; keep V1 only if you have an older integration built against it. * **Chat Webhook URL**: fires at key points in the conversation lifecycle (when the chat starts and when it ends), sending details like the outcome and any data collected during the conversation. * **Credentials**: optional authentication token attached to the requests so your endpoint can verify they come from NLPearl. > [!NOTE] > > If your endpoint is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). > [!TIP] > > Use Webhooks only if external tools need event notifications. For actual automations, rely on **Post-Chat Actions** tied to how the conversation ended. > [card] [Webhooks](/pages/webhooks) > > Learn how to configure webhooks, authenticate requests, and handle the events NLPearl sends. *** ## Project-Level Settings A few settings live at the **Project** level rather than in the Inbound Settings screen. Open them from the settings popover on your Pearl. ### Agents Sets how many **simultaneous agents** handle this Pearl's incoming conversations, i.e. how many chats can be handled at the same time, capped by your account's agent quota. A higher number lets your Pearl take more concurrent conversations. > [card] [Agents](/pages/agents) > > Learn how to manage the agents assigned to your inbound and outbound activities. *** ### Retention Applies to **all conversations**. Set how long conversations are kept (a number of days, or leave empty to keep them indefinitely), then choose what is removed when they expire: delete all conversation data, or granularly the **Transcript**, **Summary**, or collected **Variables**. ![Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=1763975d58b9e80946387c07656fc372) *** > [!NOTE] > > ### Monitoring and Adjusting Your Inbound Activities > > While basic monitoring of conversation logs and reports can be done via our API, any changes to the setup or its settings must be handled directly on the platform. # Knowledge Base Source: https://developers.nlpearl.ai/pages/text/knowledge_base ![Knowledge Base cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/knowledge-base-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f702ac6c475d4d8f84c3feed531695ec) Before your Pearl can answer questions accurately, it needs context. This step helps define the essential background information your agent will rely on during conversations. *** ## Company Name Give your Pearl the name of the company it represents. This name may be used when Pearl introduces itself or provides company-related information. ![Company Name field in the Knowledge Base](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-knowledge-base-company-name.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=25b2532b41eeb1308961c945e981cb2b) *** ## Company Description Add a brief company description including your industry, mission, or key services. This allows Pearl to answer questions with more contextual relevance. ![Company Description field in the Knowledge Base](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-knowledge-base-company-description.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=1c58592cf285ee1a2b437f4b9edbca1f) *** ## Pearl Knowledge Base This is where you teach Pearl what it needs to know to respond with relevance and accuracy. Add detailed information about your services, pricing, opening hours, locations, and any key operational data. ![Pearl Knowledge Base field with file upload](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-knowledge-base-screen.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=850a67bfc90ceadef0af2fc8ddaa7303) > [!NOTE] > > **Background knowledge, not a script.** The Knowledge Base is passive reference data: Pearl consults it **only when needed** to answer accurately. It doesn't dictate the conversation flow, that's handled by the Flow Editor. > [!NOTE] > > Both options live in the same area and can be combined: type your information directly in the **text field** and/or **upload reference files**. Multiple documents can be added if needed. Whether you're describing how your subscription plans work, listing available services, or clarifying your business hours, this section allows Pearl to access structured information that supports more precise answers. > [!NOTE] > > This is the same knowledge that powers the [Knowledge Base node](/pages/knowledge_base_node) in the Flow Editor. What you add here is what your Pearl draws on during conversations. ### Files and limits These caps apply **per Pearl**: they cover every file attached to that Pearl's Knowledge Base, not each file individually. | Limit | Value | | - | - | | Number of files | 50 | | Supported formats | `.pdf`, `.docx`, `.txt` | | Total size of all files | 25 MB (no per-file cap) | | Total text extracted from files | 2,000,000 characters | | Free-text field | 20,000 characters (counted separately) | There is no page limit and no character cap on an individual document, only the shared 25 MB and 2,000,000-character totals apply. The free-text field has its own 20,000-character budget and does **not** consume the 2,000,000 characters reserved for files. > [!NOTE] > > Text Pearls get twice the file budget of voice Pearls, which are capped at 1,000,000 characters. > [!TIP] > > A **Knowledge Base File Usage** bar appears once the text extracted from your files passes **100,000 characters**, so you can keep an eye on how much of the budget is left. > [!WARNING] > > Pearl uses the **text extracted** from your `.pdf`, `.docx`, and `.txt` files. Standalone image files can't be uploaded, so make sure anything Pearl needs to answer with exists as text in the document. *** ## Memory When enabled, Pearl remembers the user or lead, allowing it to seamlessly continue conversations from where they left off. ![Memory On/Off toggle in the Knowledge Base](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-knowledge-base-memory.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=15860cf98ae61bb9dee94ddddb35f5fd) > [!TIP] > > This feature is particularly useful for: > > * Multi-step processes > * Follow-ups > * Any scenario where continuity matters > [card] > > ### Example use case: Hospitality > > Let's say a guest checks into a hotel. Pearl can: > > * Remember their room number > * Greet them by name > * Recall their preferences (like "extra towels" or "no wake-up call") > * Offer a smooth, personalized experience every time they chat > [!NOTE] > > **Resetting Memory** > > Need a fresh start? Pearl's memory can be reset via API. > > This is especially important in contexts like hospitality, where once a guest checks out, Pearl clears the slate, ensuring the next visitor starts with a clean experience. # Outbound Source: https://developers.nlpearl.ai/pages/text/outbound Configure your text Pearl to run outbound campaigns, from budget and scheduling to message limits, inactivity handling, and leads. ![Outbound cover](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-outbound-cover.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=11c3034b859aa5f513f55a9e3a7af6cd) *** ## Setting Up Outbound Campaigns Once you have created a Pearl, you can use it to run outbound text campaigns. Outbound settings are configured inside your Pearl, under **Outbound Settings**, so your Pearl starts conversations with your leads following the conversational flow you defined. > [!NOTE] > > **What are outbound campaigns?** > > Outbound campaigns let your Pearl start conversations with a list of leads through your connected messaging channels, following the conversational logic you defined for consistent and effective outreach. *** ## Connect a Channel Unlike a voice campaign, an outbound text campaign isn't tied to a phone number, it's connected to a **messaging channel**. Once your Pearl is published, open its **overview** page and connect the channel your campaign will use. Outbound campaigns can run on **WhatsApp**, **SMS**, and your own system through a [Generic](/pages/text/channels/generic) channel. Follow the dedicated guides to set one up: > [card] [WhatsApp](/pages/text/channels/whatsapp) > > Connect your WhatsApp Business account through Meta - keep your number in the app or dedicate it to Pearl. > [card] [SMS](/pages/text/channels/sms) > > Connect your Pearl to SMS through Twilio to text with your customers. > [!WARNING] > > **WhatsApp requires an approved template.** WhatsApp only lets a business start a conversation with a template approved by Meta: your Pearl's opening sentence must match one word for word before the campaign can go live. See [Outbound campaigns and templates](/pages/text/channels/whatsapp#outbound-campaigns-and-templates). > [!NOTE] > > Telegram can't start conversations: a Telegram bot can only answer users who message it first, so Telegram is available for inbound only. *** ## Outbound Settings Configure your campaign from the **Outbound Settings** tab of your Pearl, in the [PearlVibe](/pages/pearl_vibe) flow editor. > [!WARNING] > > These settings apply to **text** Pearls only. A voice Pearl has a different set of outbound options. ### Budget Set an optional spending cap for the campaign, in dollars. Once the budget is reached, Pearl stops starting new conversations for that campaign. You can increase it at any time as long as you have enough credit on your account. ![Budget setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-outbound-budget.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=c2c8856fd0047d63b85b10d2d81140bc) *** ### Mask Sensitive Info Replace personal details with `****` in everything that is kept after the conversation. The transcript is always kept: **Off** stores it as-is, **On** masks it and opens the masking settings below. ![Mask Sensitive Info setting](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/text-outbound-transcript-options.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=7547552bcee871f552192d573cc0537c) | Setting | Description | | - | - | | **PII Detection** | **Auto** lets the AI decide what is personal information, such as names, phone numbers, or card numbers. **Manual** masks only the variables you pick, the same way in every conversation. | | **Variables to mask** | *Manual only.* The variables whose values are masked. Their values are replaced with `****` wherever they appear, including inside other variables. | | **Mask personal details in** | Where masking applies: **Transcript**, **Summary**, **Variables**, **Action logs**, and **Leads**. Unchecked parts keep the original values. In Manual mode, this setting reads **Mask the variables in**. | | **Send Masked Payloads** | **On**: webhooks and post-chat actions receive the masked values (`****`). **Off**: they receive the original values. | > [!NOTE] > > With **Auto** detection, if a customer writes *"My credit card number is 1234-5678-9012-3456"*, the transcript stores it as *"My credit card number is \*\*\*\*"*, so you can review interactions safely without exposing sensitive data. *** ### Default Timezone Set the timezone for the campaign so that calling hours and scheduling are applied at the right local time. ![Default Timezone setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-outbound-default-timezone.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=7a490f320ec7ead27dd7f659587343d9) *** ### Message Limit The maximum number of messages Pearl sends before automatically handing the conversation off to a human. You can set between **5 and 1000** messages (default **100**). ![Message Limit setting](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/text-outbound-message-limit.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=b95abdae8de94c83116d677dba59cb11) *** ### Auto-close After Inactivity How long a conversation can stay inactive before Pearl closes the chat and triggers the post-chat summary. You can set between **1 and 72 hours** (default **24 hours**). ![Auto-close After Inactivity setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-outbound-auto-close-after-inactivity.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=7e23fba7205f4a95be15b53a7f4b2ce1) *** ### Response Delay How long Pearl waits before replying. When a lead sends several messages in a row, Pearl answers them together instead of replying to each one. Choose from **ASAP** up to **5 minutes**, in 30-second steps (default **ASAP**, which means Pearl replies as soon as it is ready). ![Response Delay setting](https://mintcdn.com/nlpearl/tHQ8UGrMS66f83Dh/images/dark_mode/text-outbound-response-delay.png?fit=max\&auto=format\&n=tHQ8UGrMS66f83Dh\&q=85\&s=ba99969a22c42559c0d05e48350559ed) > [!NOTE] > > Each campaign has its own response delay, separate from your inbound activity. *** ### Inactivity Follow-up When enabled (on/off), Pearl sends follow-up messages when the lead stops replying after Pearl's last message, to re-engage the conversation. ![Inactivity Follow-up setting](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/text-outbound-inactivity-followup.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=b486402d3108b69b7ce092ce1227474a) * **Up to 3 follow-ups**: each one is a **delay** plus an optional **message**. * **Minimum delay**: at least **30 minutes** between follow-ups for outbound. * **Default**: a single follow-up sent after **60 minutes**. > [!NOTE] > > Follow-up messages can use **Pre-Call** variables (e.g. the lead's first name) to keep the re-engagement personal. > [!WARNING] > > On **WhatsApp**, follow-ups are sent as free text, which WhatsApp only accepts within **24 hours** of the lead's last message. They can't reach a lead who hasn't replied to the opening template yet. *** ### Calling Hours Define the hours during which Pearl is allowed to send outbound messages. By default, messages go out **Monday to Friday, 08:00–18:00**. Calling hours respect each lead's timezone, so everyone is contacted at an appropriate local time. ![Calling Hours setting](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/text-outbound-calling-hours.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=09ae5e96055965298dd60f0267110ffc) *** ### Webhooks Send conversation and lead events to an external endpoint, useful for tracking performance and keeping your CRM in sync. ![Webhooks setting](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/text-outbound-webhook.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=b17c8bf4296f1b7d78718ed3a06107c3) * **Chat Webhook**: fires at key points in the conversation lifecycle (when the chat starts and ends), sending details like the outcome and any data collected during the conversation. * **Lead Webhook**: fires whenever a lead changes status (at the start and end of the conversation), sending the lead's full information and current status. Use it to update your CRM in real time. Each webhook supports: * **Version**: `V1` or `V2` (default **V2**). * **Credentials**: optional authentication token attached to the requests so your endpoint can verify they come from NLPearl. > [!NOTE] > > If your endpoint is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). > [!TIP] > > Use Webhooks only if external tools need event notifications. For actual automations, rely on **Post-Chat Actions** tied to how the conversation ended. > [card] [Webhooks](/pages/webhooks) > > Learn how to configure webhooks, authenticate requests, and handle the events NLPearl sends. *** ## Project-Level Settings A few settings live at the **Project** level rather than in the campaign settings screen. Open them from the settings popover on your Pearl. ### Agents Sets how many **simultaneous agents** run this campaign, i.e. how many conversations can be handled at the same time, capped by your account's agent quota. A higher number allows faster outreach. > [card] [Agents](/pages/agents) > > Learn how to manage the agents assigned to your inbound and outbound activities. *** ### Retention Applies to **all conversations**. Set how long conversations are kept (a number of days, or leave empty to keep them indefinitely), then choose what is removed when they expire: delete all conversation data, or granularly the **Transcript**, **Summary**, or collected **Variables**. ![Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-call-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=1763975d58b9e80946387c07656fc372) *** ### Lead Retention Outbound only. Set how long leads are kept before they are automatically deleted (a number of days, or leave empty to keep them indefinitely). This removes the entire lead. ![Lead Retention settings](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/outbound-lead-retention-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7b46dd147a2d092c07390d8eb585e48f) *** ## Managing Leads Open the **Leads** tab in your campaign to add, view, and manage the people Pearl will contact. Leads are shown in a searchable, paginated table with default columns **Created**, **Phone Number**, **Time Zone**, **Reference ID**, and **Status**, plus one column per variable used in your Pearl. ![Leads tab overview](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-overview.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=69c29087e3f011daac7bb34ea7cf7c58) ### Adding Leads Click **Add Lead**, then choose how you want to add them. ![Add Lead button](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=5a135e1dbc290f48fcc06f7ad2ac4981) > [card] > > > [tab] Upload a File > > > > Download the **CSV** or **XLSX** template, fill it with your lead data, and upload it back. The template only includes the variables actually used in your Pearl (unused ones won't appear, and extra columns you add won't be recognized). You can also set a timezone for the file — if left empty, the campaign timezone is used. After the upload, a report shows how many leads were added and lets you download the list of any failed rows. > > > > ![Add Lead - upload file](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add-popup-upload-file.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=f57464011a18690e28d5c970dddfa787) > > > [tab] Add Manually > > > > Enter a lead one by one: contact identifier (phone number or messaging handle), any variables your Pearl uses, an optional timezone, and an optional **Reference ID** (your own external identifier, up to 100 characters). > > > > ![Add Lead - manually](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-add-manually.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=18a8c57c14aa790ec8f94b1056fa9a5e) > [!NOTE] > > Both methods require accepting the **AI-messaging compliance** checkbox. *** ### Customizing the View Use **Customize Column** to show or hide any column, including the per-variable columns (by default, only the last 3 variables are shown). Up to 50 columns can be visible at once, and your selection is saved locally in your browser. ![Customize columns](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-customize-view.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=68e38df8062e69b0f639635238e058a3) *** ### Exporting Leads Click **Download CSV** to export your leads together with their current statuses. The export respects the filters currently applied to the table. ![Download leads as CSV](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-download-csv.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=71eb2c06968a81f9b287c17bdec8faa2) *** ### Refreshing and Deleting Select one or more leads (or select all across the current filter), then: * **Refresh**: resets the leads to **New** so they re-enter the queue — handy to re-contact already-processed leads (Completed, Unsuccessful, etc.). * **Delete**: permanently removes the selected leads, after a confirmation. ![Refresh or delete selected leads](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-delete-or-refresh.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=7c95fbdb355b037c2e9173fb2aa4e53a) *** ### Outside Calling Hours When a lead's local time falls outside your campaign's [calling hours](#calling-hours), a **moon icon** appears on its Time Zone column — the lead is "sleeping" and won't be contacted until its window opens. Hover the icon to see the lead's local time and UTC offset. ![Lead outside calling hours indicator](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-sleeping.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=849e6b41bacbe567780eb99edb441fe3) *** ### Lead Details Click a lead to open its details panel. Use the arrows or **↑/↓** keys to move between leads. The header shows the lead's name (or contact identifier), its **Lead ID** (copyable), and its status. ![Lead detail panel](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-overview.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=0bcf1627c4e75712b34847104b403213) **Status** — change the lead's status from the editable dropdown; the change is applied instantly. This simply updates the lead's status label (e.g. **Chat Successful**, **Chat Unsuccessful**, **New**) — for example, set it back to **New** to re-contact the lead. ![Change lead status](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-change-status.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=65613a0c6176b5452791dc10140b868e) **Lead information** — Timezone, Reference ID, contact identifier, and every Pearl variable are **editable inline**, and each change is saved immediately. The panel separates two groups: * **Lead data**: values you provided up front (imported or entered variables). * **Lead Collected Info**: values Pearl gathered during the conversation. ![Lead information and collected info](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-info.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=71abb0e6e77126be82e49e5d8863cb45) **Chats** — the right column lists the lead's conversations with their time and status; click one to open its **Post-Chat** view. ![Lead chats history](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/lead-popup-calls-view.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=d7478770b2d0405d199defc7c8f39bb5) > [card] [Post-Chat](/pages/text/postchat) > > See everything captured after a conversation: outcome, transcript, summary, and collected data. # Chat Analytics Source: https://developers.nlpearl.ai/pages/text/pearl_analytics ![Chat Analytics cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/text-pearl-analytics-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=5a1b4a225e2e420aa9e06058581203ec) Use this section to track, evaluate, and act on your Pearl's performance. Define what success looks like, apply custom tags to key conversation moments, and set up notifications to stay on top of important conversations. > [!NOTE] > > Other charts in your Chat Analytics dashboard are tracked automatically and don't depend on this setup step. *** ## Define the Success of Your Pearl Specify what constitutes a successful conversation for your Pearl, such as booking a meeting, confirming interest, or qualifying a lead. This success definition will be reflected in your campaign analytics and lead statuses, helping you sort and follow up efficiently. The success criteria is **free text**, up to **250 characters**. ![Define the success of your Pearl](https://mintcdn.com/nlpearl/sY3kfk-5Q9g35o7H/images/dark_mode/pearl-analytics-1.png?fit=max\&auto=format\&n=sY3kfk-5Q9g35o7H\&q=85\&s=d920eddf2bfbc6baf8730c5b740d1a9b) > [!NOTE] > > **In your Chat Analytics dashboard**, without a success definition, conversations are counted as **Completed**. Once defined, they split into **Successful** (green) and **Unsuccessful** (pink), and the **Success Rate** chart tracks the percentage of conversations that met your criteria over time (empty until success is defined). *** ## Indicator Tags Use **Indicator Tags** to label and categorize key moments in a conversation. They help you structure your data, identify important insights, and filter your leads with precision. ![Indicator Tags](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/pearl-analytics-2.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=8481734c0dce9aa1fd77fb569c595beb) You can create up to **10 tags**. Each tag includes: * **Name**: A clear label, required (max **25 characters**), e.g. `"Interested"`, `"Mentioned Competitor"`. * **Color**: Used for visual sorting. Each tag must use a **unique color**, a color already assigned to another tag can't be reused. * **Assignment rule (When to assign)**: A short description of when the tag should be applied, required (max **300 characters**). Tags are assigned automatically during the conversation, based on the conditions you define. > [card] > > ### Example > > You're asking leads what they usually drink in the morning. You might define: > > * **Tag**: `Coffee` > * **Color**: Brown > * **When to assign**: If the lead mentions drinking coffee > * **Tag**: `Tea` > * **Color**: Green > * **When to assign**: If the lead mentions drinking tea > > These tags will then appear in your lead data and conversation logs, making it easy to segment and analyze responses. > [!NOTE] > > Indicator Tags are not just for display. They're functional. You can filter campaigns by tag, trigger notifications, or use them to define success in analytics. \ > \\ > > In your **Chat Analytics dashboard**, they feed the **Tags** chart, showing each tag's name, its chosen color, and how many conversations it was applied to. # Pearl Text Source: https://developers.nlpearl.ai/pages/text/pearl_text Build AI text agents that message your customers across SMS, WhatsApp, email, and chat - on inbound and outbound conversations. ![Pearl Text cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/light_mode/pearl-text-cover.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=db9d80513652e6ccaf799eab8d8fb7e1) *** ## What is Pearl Text? Pearl Text lets you create AI text agents that handle written conversations with your customers across SMS, WhatsApp, email, and chat. Deploy them on inbound channels to respond instantly, or launch outbound messaging to reach customers proactively - with the same reasoning, actions, and post-conversation data that power Pearl Voice. Pearl Text isn't just another chatbot: it understands context, follows your business rules, connects to your tools, triggers real actions, and hands off to a human when needed. > [!NOTE] > > Pearl Text supports written conversations in any language, with no language or voice setup required. > [!NOTE] > > Pearl Text and [Pearl Voice](/pages/pearl_voice) run on the same platform, so you can connect channels end to end - a conversation can start by chat and continue by phone, or a call can trigger a text follow-up. *** ## How it works **1. Build your agent** Use [PearlVibe](/pages/pearl_vibe) - the same builder as Pearl Voice - to define your agent's personality, knowledge base, conversation logic, and connected actions from a single prompt-driven interface. **2. Connect your channels** Deploy your agent on [inbound](/pages/text/inbound) channels to answer messages instantly, or launch [outbound](/pages/text/outbound) campaigns to reach customers across [SMS](/pages/text/channels/sms), [WhatsApp](/pages/text/channels/whatsapp), email, and chat. **3. Monitor and optimize** Review [Post-Chat](/pages/text/postchat) summaries, transcripts, and extracted variables for every conversation, then iterate on your agent's behavior. *** ## Use cases Pearl Text fits a wide range of written conversations, across both inbound channels and outbound campaigns. > [tab] Inbound > > | Use case | What Pearl does | > | - | - | > | **Customer Support** | Answer questions and resolve issues instantly, across every messaging channel. | > | **Order & Delivery Updates** | Share order status, tracking, and delivery details on demand. | > | **Lead Qualification** | Qualify inbound leads, collect their details, and route them to the right team. | > | **Appointment Booking** | Book, confirm, and reschedule appointments directly in chat. | > | **FAQ & Self-Service** | Handle high-volume, repetitive questions 24/7 without tying up your team. | > | **Escalation to a human** | Hand sensitive or complex conversations off to a live agent when needed. | > [tab] Outbound > > | Use case | What Pearl does | > | - | - | > | **Re-engagement** | Revive dormant customers and recover abandoned carts over message. | > | **Appointment Reminders** | Send reminders and confirmations to cut no-shows. | > | **Notifications & Updates** | Proactively push order, shipping, or account updates. | > | **Lead Follow-up** | Follow up with leads and nurture them toward conversion. | > | **Surveys & Feedback** | Collect satisfaction scores and feedback at scale. | > | **Payment Reminders** | Send payment reminders with secure links. | *** ## Model Text agents run on one of two text models, billed per message. Pricing is relative to the **Standard Rate** (Pearl Swan). | Model | Description | Reasoning | Pricing | | - | - | - | - | | **Pearl Orchid** | Our most advanced text agent model, surpassing Swan in intelligence and built to excel across any use case - the default for text Pearls built with PearlVibe. | High | +1 credit/message | | **Pearl Swan** | Our standard model for chat agents, built to handle any text-based use case with reliable reasoning and natural responses. | Medium | Standard Rate | See [Pearl Model](/pages/text/agent_customization#pearl-model) to change it. Optional add-ons let your agent understand richer inputs sent in the conversation: | Add-on | Description | | - | - | | **Vision** | Read and understand images customers send, such as screenshots, documents, or photos. | | **Audio input** | Understand voice notes and audio messages sent in the chat. | *** ## Get Started > [card] [Actions](/pages/email_action) > > Execute real-time actions mid-conversation: send emails, hand off to a human, and call your APIs. > [card] [Post-Chat](/pages/text/postchat) > > Access structured summaries, transcripts, and extracted variables for every conversation. > [card] [Inbound](/pages/text/inbound) > > Deploy agents on inbound channels to answer messages instantly and route conversations. > [card] [Outbound](/pages/text/outbound) > > Launch outbound messaging campaigns to reach customers proactively at scale. *** ## Next steps > [card] [PearlVibe](/pages/pearl_vibe) > > Build and customize your agent's logic, knowledge, and actions from a single prompt. > [card] [Variables](/pages/variables) > > Collect, store, and reuse data during conversations - from user inputs to CRM lookups. > [card] [API Quick Start](/api-reference/api_quickstart) > > Integrate NLPearl programmatically via the REST API. > [card] [Pearl Voice](/pages/pearl_voice) > > Pair your text agents with AI voice agents for connected, cross-channel conversations. # Post-Chat Source: https://developers.nlpearl.ai/pages/text/postchat All you need to know about Post-Chat in NLPearl ![Post-Chat cover](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/post-call-cover.svg?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=193ac469b7573a80a988dc59fe79504d) *** ## What is a Post-Chat? In NLPearl, a **post-chat** is a structured summary generated after each conversation handled by Pearl. It centralizes all key information captured before, during, and after the conversation to ensure full traceability, improve quality, and support human follow‑up when needed. *** ## What Does the Post-Chat Include? A post-chat provides multiple key sections to review and analyze the outcome of a conversation: ### Chat ID A unique identifier for each conversation, displayed at the top right of the page. It allows you to quickly reference or search for a specific conversation across the system. ![Chat ID location in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-1.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=718492171089a4bb0cd5dc9132f874af) *** ### Conversation Details This section summarizes the essential metadata captured during the conversation, such as timing, the Pearl version used, credits consumed, and the overall outcome. | Field | Description | | - | - | | **Date** | The exact date and time the conversation took place. | | **Pearl Version** | The version of the Pearl that handled the conversation. | | **Lead Name** | The name of the lead (outbound conversations). | | **Duration** | The length of the conversation. | | **Queue Duration** | Time the conversation spent waiting in the chat queue before being picked up (shown only when queued). | | **Transfer Duration** | Time spent with a human agent after a hand-off (shown only when handed off). | | **Credits Used** | The number of credits consumed by the conversation. | | **SMS Credits Used** | The number of credits consumed by SMS messages sent during the conversation (shown only when greater than 0). | | **Sentiment** | The detected sentiment of the customer during the conversation. | | **Events** | A shortcut to the actions triggered during the conversation — click **View** to jump to the **Event Log**. | > [!NOTE] > > Some fields are conditional: **Lead Name** appears for outbound conversations, **Queue Duration** only when the conversation was queued, **Transfer Duration** only when it was handed off, and **SMS Credits Used** only when at least one SMS was sent. > [!NOTE] > > The header shows the **participants** (the user and the channel used) and the **Conversation Status** badge — it does not show the name of the Pearl. ![Conversation Details in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-5.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=a552fed73ff036c51ee701082b3122c0) *** ### Conversation Status Indicates the outcome of the conversation from a business or process perspective. It is shown as a colored badge in the header, next to the participants. For chats, this is the **only** status displayed. ![Conversation Status badge and participants in the post-chat header](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-2.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f306d3fe56c071ab23e1e97bff13f0fe) > [!NOTE] > > The **✕** next to the status badge lets you **close the conversation manually** at any time. See [Human Takeover](#human-takeover) for how closing differs from a takeover. | Status | Description | | - | - | | `In Chat Queue` | The conversation is waiting to be picked up. | | `In Chat` | The conversation is currently ongoing. | | `Chat Successful` | The conversation achieved its expected outcome. | | `Chat Unsuccessful` | The conversation failed to meet its objective. | | `Completed` | The conversation was conducted and finalized, regardless of outcome. | > [card] > > **Important distinctions about Conversation Status**: > > The difference between `Chat Successful`, `Chat Unsuccessful`, and `Completed` depends on whether a **Success Definition** was configured when creating the Pearl: > > * If a **Success Definition** was configured: > * `Chat Successful` → the Success Definition criteria were met during the conversation. > * `Chat Unsuccessful` → the conversation did not meet the Success Definition criteria. > * If **no Success Definition** was configured: > * `Completed` → the conversation was completed without any Success Definition evaluation. > [!NOTE] > > Unlike voice calls, a chat has no separate technical status: the telephony-level **Call Status** is a back-end/API notion only and isn't shown in the post-chat UI. > [!NOTE] > > For more information on Success Definitions, see [PearlVibe](/pages/pearl_vibe#pearl-success). *** ### Tags The list of **tags defined during the last step of the Pearl creation process**. These tags represent key topics or categories you chose when setting up the Pearl configuration. ![Tags in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-12.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=649bee03d0221a5eb424661a02e09dbe) > [!NOTE] > > For more information on setting up tags, see [PearlVibe](/pages/pearl_vibe). *** ### Events A log of the actions triggered by Pearl during the conversation. Each event includes a timestamp, the action details, and an execution status. Possible event types include: | Event Type | Description | | - | - | | `Transfer Chat` | The conversation was transferred to another destination. | | `Conversation Handed Off` | The conversation was handed off to a human agent. | | `SMS Sent` | A text message was sent to the customer. | | `Email Sent` | An email was sent during the conversation. | | `API` | An API was triggered — before the chat (Pre-Chat), during it (API Request), or after it (Post-Chat). | | `Appointment` | An appointment was booked in the calendar. | | `Slack` | A Slack notification was sent. | > [!NOTE] > > Each event carries an execution status: the **HTTP status code** for API calls, otherwise **sent** / **failed**, with a possible error state. *** ### Sentiment Analysis An automatic classification of the customer's tone and emotional state throughout the conversation. Possible sentiment values include: | Sentiment Value | Description | | - | - | | `Positive` | The conversation was clearly positive in tone and emotion. | | `Slightly Positive` | The overall tone was mostly positive, with minor neutral moments. | | `Neutral` | The sentiment was balanced or emotionless. | | `Slightly Negative` | The tone leaned slightly negative, but not strongly so. | | `Negative` | The conversation had a clearly negative emotional tone. | ![Sentiment analysis in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-7.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=360497b4a8a779ac1be6bdbde2deadef) *** ### Summary A summary is a concise, human‑readable recap of the conversation, generated by Pearl. It includes: * What the customer requested * What was confirmed or declined * The overall outcome of the interaction Once a conversation is **closed or completed**, a summary is generated **automatically** at the end. While a chat is still **ongoing** (`In Chat`), no summary exists yet — you can generate one **on demand** with the **Generate Summary** button without waiting for the conversation to end. ![Generate Summary button while the chat is ongoing](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-4.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=e44488df30f8e10eb75d106a62aae3fc) ![Generated summary in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-6.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=01df89b6201e398d649e0417576373af) > [!NOTE] > > Generating a summary **on demand** (while the chat is ongoing) costs **2 credits**. The automatic summary produced when the conversation ends is included. *** ### Transcript & Event Log A toggle at the top of the right-hand panel switches between the **Transcript** and the **Event Log**. **Transcript** — a full text version of the conversation between the customer and Pearl. It is structured into three blocks separated by dividers: **Pre-chat events → In-chat messages → Post-chat events**. Always available, and useful for reviewing the interaction, auditing, and training. * **Delivery status**: each message shows its delivery state — **Pending**, **Sent**, or **Failed** — with a matching icon. * **Attachments**: messages can include attachments (images, files) shared during the conversation. ![Transcript in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-9.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=91115e5702441426d21062a9fef0186c) **Event Log** — a chronological view of all actions triggered by Pearl during the conversation. Each entry shows the action type (API call, SMS, email, transfer…), its execution status, and contextual data, so you can verify that every automated operation ran and inspect its output. ![Event Log in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-13.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=ee0622fd614b61ae0a347fa380e1b3c5) *** ### Variables This section, labeled **Variables** in the UI, displays the **structured data captured before or during the conversation**, corresponding to the dynamic values collected through the Pearl configuration. Examples: * Delivery type * Selected options (e.g. “Dessert: Cheesecake”) * Customer preferences ![Variables in the post-chat view](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-8.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=f53e5e3a5ef324d6affc88180b1da242) > [!NOTE] > > You can learn more about creating variables in the Pearl [here](/pages/variables). *** ### Human Takeover At any point, a human agent can step in and **take over the conversation** directly from the post-chat page, then hand it back to Pearl once done. The full context (transcript, variables, and events) stays available throughout. This is useful when: * The customer explicitly asks to speak with a human * The request falls outside what Pearl is configured to handle * A sensitive or high-value conversation needs a personal touch > [!NOTE] > > A takeover is a **manual** action you trigger from this page. It's different from a **human hand-off**, which Pearl performs **automatically** based on a node configured in your flow — logged as a *Conversation Handed Off* event. > [card] [Hand-Off Node](/pages/text/handoff_action) > > Learn how to configure automatic hand-off to a human agent from your Pearl flow. **1. Pearl is handling the chat** While Pearl is in control, the footer shows *“Pearl is handling this chat”* and the composer is locked (*“Pearl is replying…”*). Click **Take over** to step in. ![Take over button while Pearl is handling the chat](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-10.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=0a641f413a161628d2b327e5cf374d88) **2. The agent is in control** Once you take over, Pearl stops replying and the footer shows that you (the agent) took over. The composer unlocks to **Reply as agent…**, so you can type messages and send attachments to the customer in real time. When you're finished, click **Hand back** to return control to Pearl. ![Agent replying and handing the conversation back to Pearl](https://mintcdn.com/nlpearl/Utixv1_73hqGLnyk/images/dark_mode/postchat-14.png?fit=max\&auto=format\&n=Utixv1_73hqGLnyk\&q=85\&s=debcc0cbba3d13604cf4efb12396b932) > [!NOTE] > > A takeover does **not** close the conversation. Pearl simply stops responding so the human agent can reply, and everything stays logged in the post-chat for full traceability. When done, the agent can **hand the conversation back** to Pearl. > [!NOTE] > > **Closing a conversation** is a separate action from takeover. Using the **✕** next to the status badge in the header explicitly closes the conversation in the system, whereas a takeover only pauses Pearl's replies. Use it when the exchange is finished. *** > [!TIP] > > **Navigation & shortcuts** — move between conversations with the on-screen arrows or the **↑ / ↓** keyboard keys, and click **View** on the Events row in Conversation Details to jump straight to the Event Log. *** ## Why the Post-Chat Matters > [card] Traceability > > Every conversation leaves a documented trace for accountability. > [card] Faster Follow‑Up > > Helps support and operations teams follow up efficiently with customers. > [card] Quality & Analytics > > Enables continuous improvement through quality review, sentiment tracking, and conversation analysis. > [card] Auditing & Compliance > > Provides an auditable record of AI-driven conversations to meet regulatory or internal policy needs. *** By consolidating all these elements, the **Post-Chat** page provides a complete overview of each AI-handled conversation, ensuring transparency, traceability, and actionable insights for your team. # Transfer Call Node Source: https://developers.nlpearl.ai/pages/transfer_call Available for **Pearl Voice** only. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/transfer-call-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=edaa400904e6078d7db246b95021598e) The **Transfer Call** node hands the live call off to another phone number, so your Pearl can bring a human or another line into the conversation. **What it does**: Transfers the live call to another phone number. **When to use**: Escalate to a human, route to a manager, or forward to another department. > [!NOTE] > > A Transfer Call node can be triggered in **two ways**: > > * **Reached through a transition**: like any other node, when a previous node routes to it. It fires as soon as the flow reaches it, and the **When to trigger** field is hidden (it isn't needed). > * **As a floating node**: with **no** incoming transition. Then **When to trigger** becomes required, and Pearl can jump to the transfer from **anywhere** in the conversation whenever that condition is met. > > You can use both patterns in one flow: place scripted transfers inline via transitions, and keep a floating transfer for exceptions like "the customer asks for a manager." *** ## How to Configure ![Transfer Call node configuration with phone number, Say, and Warm Transfer](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/transfer-call-node.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=dac34165bc10bb5a4e9dd2e30487df5a) **1. Phone Number** Destination in international format (e.g., `+12025551234`) or a variable. **2. Show client caller ID (optional)** When enabled, Pearl attempts to show the **client's number** to the recipient during the transfer, instead of Pearl's own number. > [!WARNING] > > Test this first. If transfers fail with it on, turn it off. **3. Say (optional)** A line Pearl says to the **caller** right before transferring (e.g. *"I'm connecting you to a specialist now."*). **4. When to trigger (floating nodes only)** Describe when Pearl should trigger the transfer, e.g. *"If the client needs a manager or has an emergency."* This field only appears when the node has no incoming transition. **5. Warm Transfer (optional)** Introduce the call to the recipient before Pearl drops off. See [Transfer types](#transfer-types) below. *** ## Transfer types A Transfer Call can happen in two ways, controlled by the **Warm Transfer** toggle. **Direct transfer (Warm Transfer off).** Pearl connects the caller straight to the destination number without speaking to the recipient first. The recipient picks up with no context. This is the default. **Warm transfer (Warm Transfer on).** Before dropping off, Pearl introduces the call to the recipient with an intro message, then leaves the two parties connected. Choose how the intro is delivered: | Mode | Who hears the intro | Caller during intro | Use it to | | - | - | - | - | | **Whisper** (default) | Recipient only | On hold, doesn't hear it | Privately brief the recipient (e.g. sensitive context) | | **3-way** | Both caller and recipient | Present, hears it | Give an open, seamless handover | ![Warm Transfer module with Whisper / 3-way toggle and intro message](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/warm-transfer.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=8e161cb5fb010798b0700ee50d4eb176) > [!NOTE] > > **Two different messages, don't confuse them:** > > * **Say (optional)**: what Pearl says to the **caller** right before transferring. > * **Warm Transfer message**: what Pearl says to the **recipient** (and, in 3-way, also to the caller) to introduce the call. Required when Warm Transfer is on. Pearl says this, then drops off. **Example intros** * Whisper: `Hi, I'm on the line with {firstName} regarding {reason}. I'll transfer the call to you now.` * 3-way: `Hi, I'm on the line with {firstName} calling about {reason}. I'll leave you both to it. Thanks!` > [!WARNING] > > **Pearl Voice only.** Pearl Text uses the [**Hand‑Off**](/pages/text/handoff_action) node to route conversations to a human. > [!NOTE] > > Transfer Call is **terminal**: the call leaves Pearl, so the node has no outgoing transitions. Validation flags *"Missing Phone Number"*, and *"Missing Trigger Description"* when the node is floating. > [card] > > ### Important Considerations > > **Country restriction on NLPearl numbers**: when the call runs on a phone number purchased from NLPearl, the transfer destination must be a number from the same country. A transfer to another country is refused during the call: the caller stays with your Pearl, and the failed transfer appears in the call's Event Log. Numbers connected through [Twilio](/pages/twilio_integration) or [Custom VoIP](/pages/custom_voip) have no such restriction. > > **Test calls**: on a test call placed from an NLPearl number, the country restriction doesn't apply, but the transferred call is cut after 30 seconds. # Twilio Integration Source: https://developers.nlpearl.ai/pages/twilio_integration Connect your Twilio account and use your Twilio numbers with NLPearl.AI. ![Twilio integration cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=9ad432383c831a6df405b38c404c78d9) Connect your Twilio account to NLPearl.AI and use your existing Twilio numbers for inbound and outbound campaigns. This gives you access to phone numbers from a wide range of countries, with local regulatory compliance handled directly by Twilio. *** ### How to Integrate Your Twilio Account **1. Go to Phone Numbers Settings** Start by clicking your **profile card** at the bottom-left corner of the sidebar, then open **Settings**. ![Open Settings from the profile card](https://mintcdn.com/nlpearl/5aa5Rk7qHypaYdNc/images/dark_mode/go-to-settings.png?fit=max\&auto=format\&n=5aa5Rk7qHypaYdNc\&q=85\&s=dfc9db0b75112fe19e8e8212903ca193) From there, open the **Phone Numbers** tab to manage the numbers linked to your account. ![Phone Numbers tab in Settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/choose-phone-number-in-settings.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=24c047eabb48b8ff854c0e7e56bfb678) **2. Open the Twilio Connection** In the **Phone Numbers** tab, locate the **Connect to Twilio** row. Click **Manage Twilio** to open the connection panel and link your Twilio account. ![Connect to Twilio from the Phone Numbers settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-connect-button.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=d741bcae462452472989cd83b0803cd6) **3. Enter Your Twilio Credentials** The **Connect your Twilio Account** panel opens. A short guide on the left walks you through each value, with quick links to the right pages in your Twilio Console. Choose the method that fits your needs, fill in the fields on the right, then click **Connect Twilio**. > [tab] API Credentials (recommended) > > The most secure option. It uses a scoped API Key instead of your main Auth Token. > > | Field | Where to find it | > | - | - | > | **Account SID** | Twilio Console, under **Account Info**. | > | **API Key SID** | Generated when you create a Standard API Key (see below). | > | **API Key Secret** | Shown **only once** when the key is created. | > > ![Twilio credentials using an API Key](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-credentials-api-key.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=c1238ca4826f2b2ea3f27a3f0d9e3596) > > > [!NOTE] > > > > **How to generate a Twilio API Key** > > > > **1. Go to Twilio API Keys Settings** > > > > Visit the [Twilio API Keys page](https://www.twilio.com/console/project/api-keys) in your console, then click **Create API Key** in the top-right corner. > > > > ![Twilio API keys & tokens page with Create API key](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-1.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=aa3f7bd869b408ae15256db1fa833992) > > > > **2. Select Standard Key Type** > > > > Give your key a name and select **Standard** as the key type. Then click **Create**. > > > > ![Create a new Twilio API key with Standard type](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-2.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=1a51f174d6fd89e14dce9f880a2892ff) > > > > **3. Copy the SID and Secret** > > > > Twilio now displays both the **SID** and the **Secret**. > > > > > [!WARNING] > > > > > > The **Secret Key** is shown only once, so copy and store it somewhere safe before closing the page. > > > > ![Copy the Twilio API key SID and secret](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-3.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=1b4ae091012a1c1a8665397c30f9178a) > [tab] Account SID + Auth Token > > The simplest option. Connect directly with your main Twilio credentials. > > | Field | Where to find it | > | - | - | > | **Account SID** | Twilio Console, under **Account Info**. | > | **Auth Token** | Twilio Console, under **Account Info** (click **Show** to reveal). | > > ![Twilio credentials using Account SID and Auth Token](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-credentials-auth-token.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=00369d6aff11273e5c8c398886ca7be7) > > > [!NOTE] > > > > Both values live in the **Account Info** panel on your Twilio Console dashboard. > > > > ![Account SID and Auth Token in the Twilio Account Info panel](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-6.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=d670d17e1a69ea5d9661a72b9d7d213e) > [!TIP] > > Use the **Open Twilio Console** and **Open Twilio API Keys** shortcuts inside the panel to jump straight to the right Twilio pages while filling in your credentials. **4. Import Your Twilio Phone Numbers** Once connected, the **Twilio Account** screen lists every number available on your account. Click **Add to account** next to a number to import it into NLPearl. A confirmation message appears, and the number becomes available in your account right away. To detach a number, click **Remove** next to it. ![Import Twilio phone numbers into NLPearl](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-import-numbers.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=8a756b2b93a76422fd0c2b9127bf5c00) > [!NOTE] > > You can return to this screen at any time to import additional numbers, especially after adding new ones to your Twilio account. **5. Manage or Switch Twilio Accounts** The **Twilio Account** screen shows the connected **Account SID** at the top, so you always know which account is in use. To connect a different Twilio account, use the **back arrow** in the top-left corner to return to the connection panel and enter new credentials. ![Manage or switch the connected Twilio account](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-manage-account.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=cb335719f9b837432e7abd78fadf0663) > [!NOTE] > > Numbers you already imported stay linked to your NLPearl account. Switching Twilio accounts won’t affect them. > [card] Deleting Phone Numbers > > If you no longer need a phone number, you can schedule it for deletion directly from your settings. > > Start by going to the **Phone Numbers** section in your Settings. From there, locate the number you want to remove and click the **Delete** button next to it. > > ![Delete a phone number from the Phone Numbers settings](https://mintcdn.com/nlpearl/zHQFKodWEnahK9ly/images/dark_mode/delete-phone-number.png?fit=max\&auto=format\&n=zHQFKodWEnahK9ly\&q=85\&s=cf16c9e0f645b89d1c7e2c150bfa9ec0) > > A confirmation step will appear to make sure you really want to delete the selected number. The phone number will be removed from your NLPearl account immediately. > > > [!NOTE] > > > > Deleting a phone number from NLPearl does not delete it from your Twilio account. Ensure that the phone number isn't used in any running activities before deleting it from the platform. *** ### Disabling HTTP Basic Authentication for Media Access To ensure full functionality, disable HTTP Basic Authentication for media access in Twilio: **1. Access Twilio Voice Settings** Start by logging into your **Twilio dashboard**. In the left-hand navigation, click on **Voice** (1) to open the voice-related settings. Under the Voice section, select **Settings** (2), then click on **General** (3) to access the general voice configuration panel. ![Open Voice > Settings > General in the Twilio Console](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-4.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=4e4fb785cb9e0227e0561694a8e877b0) **2. Disable HTTP Basic Authentication in Twilio** Once you're in the **Voice > General** settings, scroll down to the **HTTP Basic Authentication for media access** section. Under this section, select **Disabled** to allow media URLs to be publicly accessible (1). Then, click the **Save** button at the bottom of the page (2) to apply your changes. ![Disable HTTP Basic Authentication for media access in Twilio](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/twilio-integration-step-5.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=872734704558d36f4f72a7eac39e717d) > [!NOTE] > > By disabling this setting, you ensure that NLPearl.AI can access and use media resources without authentication issues. *** > [!NOTE] > > ### Advantages of Twilio Integration > > * **Access to Global Phone Numbers**: Use phone numbers from countries not directly supported by NLPearl.AI by purchasing them through Twilio. > > * **Compliance with Country Regulations**: Twilio handles country-specific regulations, allowing you to purchase numbers that comply with local laws. > > * **Leverage Existing Numbers**: Utilize the phone numbers you already own in Twilio without needing to acquire new ones. > [!WARNING] > > ### Important Considerations > > * **Phone Number Ownership**: Numbers are purchased and managed in your Twilio account. NLPearl.AI only lets you use them within the platform. > > * **Running Activities**: Before removing a number from NLPearl.AI, make sure it isn't assigned to any active campaign to avoid disruptions. *** If you need assistance with the integration process or have questions about using Twilio phone numbers with NLPearl.AI, please refer to our support resources or contact our support team. # Users & Workspaces Source: https://developers.nlpearl.ai/pages/users_workspaces Invite users, assign roles, manage permissions, and switch between workspaces. ![Users & Workspaces cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/users-workspaces-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=20d9d2c5ac1b5418b1e25fd6bf697700) *** Use **Users & Workspaces** settings to control who can access your workspace, what each person is allowed to manage, and which workspace you are currently working in. > [card] Users > > Invite team members and assign them the right access level. > [card] Roles > > Create reusable permission sets for different responsibilities. > [card] Workspaces > > Switch between workspaces or create a new one. > [card] Access control > > Limit access to Pearls, billing, phone numbers, API keys, users, and audit logs. *** # Users & Roles Control who can access the current workspace and what each person is allowed to do. ## Managing Users The **Users** page lets workspace owners and admins invite new members, review existing users, and update their access level. ![Users management page](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/users-management.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=0654dba7292457a033894dd784e0ee00) **1. Open Users** Go to **Workspace > Users**. **2. Invite a user** Click **Invite User**, enter one or more email addresses, then choose the role to assign. ![Invite user dialog](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/users-invite.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=e3c6808196a9e3140aba9dbb346ac803) **3. Review access** Confirm that each user has the correct role, such as **Owner**, **Admin**, or a custom role created for your team. > [!NOTE] > > Give users the minimum access they need for their work. You can always update their role later as responsibilities change. *** ## Managing Roles Roles define what users are allowed to do in a workspace. You can use roles to separate responsibilities between admins, operators, support teams, billing teams, and other internal workflows. To manage roles, go to **Workspace > Users**, then open the **Roles** tab. ![Add role on the Roles tab](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/users-add-role.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=af3b8a7a3dbac532396b055416e455fc) **1. Create a role** Click **Create Role** and enter a clear role name. **2. Select permissions** Choose which actions the role should allow. ![Role permissions selection](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/users-role-permissions.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=77254c32463a1e520ed9d0dee7cb543b) **3. Save the role** Click **Save Role** to make the role available when inviting or updating users. Common permissions include: | Area | What it allows | | - | - | | **Pearls** | Create and edit Pearls, including access to PearlVibe. | | **Activities** | Moderate activity status. | | **Analytics** | View analytics. | | **Leads** | View and moderate leads. | | **Calls** | View calls and post-call information. | | **Resources** | Manage phone numbers, agents, API keys, and users. | | **Advanced settings** | Manage security and sessions. | | **Audit log** | View the audit log. | | **Billing** | Manage account billing. | > [!TIP] > > Create role names that match real responsibilities, such as `Support`, `Operations`, `Billing`, or `Admin`. *** # Workspaces A **workspace** is an isolated environment with its own Pearls, activities, settings, billing, users, and logs. Use workspaces to separate teams, customers, or projects. Everything above (users and roles) is scoped to the workspace you are currently in. In the settings menu, the options are split into two groups: * **User** settings (such as **Profile** and **Security**) are personal to your account and follow you across every workspace. * **Workspace** settings (everything listed under the **Workspace** section, like General Settings, Phone Numbers, Text Channels, Agents, Subscriptions & Payments, Users, API Keys, and more) apply **only to the workspace you are currently in**. > [!NOTE] > > When you switch workspaces, all the **Workspace** settings change to reflect the selected workspace. Your **User** settings stay the same. *** ## General Settings The **General Settings** page manages your workspace identity, notifications, and security preferences. ![Workspace general settings](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/workspace-general-settings.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=b1901f71006fef162953760a54620c11) | Setting | Description | | - | - | | **Workspace Name** | The name visible to all members of the workspace. | | **Billing Email** | Email used for invoices, receipts, and payment-related notifications. | | **Notifications Email** | Email where important alerts and workspace notifications are sent. | | **Newsletter** | Opt in to receive product news, feature updates, and occasional announcements. | | **Session Timeout** | How long a session on the platform stays active before expiring due to inactivity (in minutes). | | **Public Recordings** | When enabled, call recordings are accessible publicly via a shared link. | | **Delete Workspace** | Permanently delete the workspace and all associated data. | > [!WARNING] > > Deleting a workspace is permanent and cannot be undone. All associated data is removed. *** ## Creating a New Workspace You can create a separate workspace when you need to isolate teams, customers, projects, or billing. ![Create a new workspace](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/workspace-create.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=c96619cc418dfb9097018d91153376b2) **1. Open the workspace menu** Click the current workspace name in the sidebar. **2. Create the workspace** Click **Create New Workspace**, enter a workspace name, then click **Create**. > [!WARNING] > > A new workspace has its own subscription and is billed separately. *** ## Switching Workspaces If your account belongs to multiple workspaces, use the workspace switcher to move between them. The selected workspace controls which Pearls, activities, settings, billing, users, and logs you are viewing. ![Switch between workspaces](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/workspace-switch.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=9bd9cc1c0153b1ae4947e01c1b5b1803) **1. Open the workspace menu** Click the workspace name in the platform sidebar. **2. Choose a workspace** Select the workspace you want to manage from the list. *** ## Transferring a Pearl to Another Workspace You can send a copy of a Pearl to another workspace you belong to - useful when you build agents in a test workspace before moving them to production, or manage several customers from a single account. ![Transfer Pearl dialog](https://mintcdn.com/nlpearl/4XQlChSZalnkpqww/images/dark_mode/pearl-transfer.png?fit=max\&auto=format\&n=4XQlChSZalnkpqww\&q=85\&s=3bb9e89551d811e0aa6c93dee9626a7f) **1. Open the transfer dialog** On the Pearl's page, open the **Settings** menu and click **Transfer Pearl**. The same option is available from the Pearls list. **2. Choose the version to transfer** Select which version of the Pearl to send. It becomes **version 1** of the new Pearl in the destination workspace. **3. Pick the destination** Select one or more workspaces, then click **Transfer**. The Pearl is **copied, not moved**: the original stays in the current workspace, untouched and still running. The copy arrives as a **draft** with a clean slate - no calls, conversations, leads, or usage history follows it - so you can review it and publish it when ready. > [!WARNING] > > Phone numbers and text channels are not transferred. Before going live, assign the copy a phone number or text channel that belongs to the destination workspace. > [card] [Account Security Settings](/pages/security) > > Configure session timeout, audit logs, 2FA, and enterprise SSO. > [card] [Billing](/pages/billing) > > Manage subscriptions, payment methods, invoices, and auto-recharge. # Variables Source: https://developers.nlpearl.ai/pages/variables ![Variables cover](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-cover.jpg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=2e7449ca993852a59a7752575510ae11) *** ## Introduction Variables are essential placeholders that store and manipulate data during a conversation. They hold information such as: * **User Inputs**: Data collected from user responses (e.g., names, email addresses). * **System Data**: Information retrieved from external sources like CRM systems. * **Computed Values**: Results from expressions or calculations within the conversation flow. > [!TIP] > > **Why Are Variables Important?** > > * **Personalize Interactions**: Tailor conversations to individual users for a more engaging experience. > * **Control Conversation Flow**: Make decisions and branch dialogues based on variable values. > * **Store and Reuse Information**: Keep track of data throughout the conversation for consistency. > * **Integrate with External Systems**: Enrich conversations with data from other platforms. > * **Enhance Actions**: Use variables in actions like sending personalized emails or SMS messages. *** ## Variable Manager Overview Variables can be managed using the **Variable Manager**, which is accessible in the **Flow Editor**. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=0a609f2fc9ec79523e9bbb9bba5de293) The Variable Manager allows you to create, edit, and organize variables used in your conversation flows. Variables are categorized into three types: | **Type** | **Description** | **Representation** | | - | - | - | | **Pre-call Variables** | Variables configured before the call starts, such as customer information. These variables are typically sourced from external systems like CRM or imported via CSV or API. | `blue` | | **Collected In-call Variables** | Variables captured or updated dynamically during the conversation. These variables are collected based on user interactions, inputs, or system computations. | `green` | | **Post-call Variables** | Variables generated after the call ends, such as the call transcript, recording URL, and conversation summary. These variables are automatically produced and can be used for follow-up actions. | `orange` | > [!WARNING] > > **Note about Post-call Variables**\ > Post-call variables are **not accessible via the Variable Manager**, as they **cannot be created or modified by users**. These variables are **pre-defined by our team** and become available only **within Post-Call Actions**. They’re designed to let your agents send structured data (like summaries or recordings) to external systems **after the call ends**. *** #### Accessing the Variable Manager You can access the Variable Manager in **two quick ways**: **1. From the Header** You can access the **Variable Manager** directly from the **top navigation bar** of the **Flow Editor**. ![Variable Manager location – Light Mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-simple-placement.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=e405023d3c11b0fbfc9737ccddaae6d3) **2. From a Text Field** You can also access the **Variable Manager** from a text field whenever the `+` icon is available. > [!NOTE] > > Only fields that support variables will display the **“+”** icon.\ > For example, some duration or static option fields won’t offer variable insertion. * Open a **Node** in the **Flow Editor**. * Click the **“+” icon** inside the supported text input field. * At the bottom of the dropdown, click **“Variable Manager”**. ![Accessing the Variable Manager from a text field – Light Mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-simple-placement-2.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=81fc49f94063d87226776e8e4c4fa3f5) *** #### Creating and Managing Variables Variables help you store and reuse dynamic information throughout your flows. Here's how to create, edit, and manage them from the **Variable Manager**. **1. Open the Variable Manager** Click the **“+”** icon in a text field or use the **Variable Manager** button (in the header or Flow Editor). **2. Select the Variable Category** * **Pre-call** (available before the call starts) * **Collected In-call** (captured during the conversation) > [!WARNING] > > Post-call variables are predefined by our team and cannot be created manually. They are only available inside **Post-Call Actions**. > [!NOTE] > > Some variables are **system-defined and read-only** (shown at the top of the list), you can use them but not edit or delete them. Examples: **Pre-call** — agent name, agent phone number, first name, last name, phone number, email address, call id; **Post-call** — summary, transcript, recording, duration, call time. > [!WARNING] > > **Agent Phone Number** (`agentPhoneNumber`) contains the Pearl's own phone line for the current conversation, unlike **Phone Number**, which identifies the customer. It is empty on channels without a phone number, including Telegram and browser Test Chat. An API node does not execute if it references this variable while it is empty. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-create.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=5749ab52127d0f7e406182a1b772b17c) **3. Fill in the Variable Details** | Field | Description | Rules | | - | - | - | | **Type** | The variable's data type (see the **Variable Types** table below). | Required | | **Display Name** | Human-readable label shown in the UI and used by Pearl (e.g. `Customer Name`). | Required · max 40 chars · letters, numbers, spaces | | **ID** | Unique system key used to reference the variable in flows, CSV imports, and API payloads. Auto-generated from the Display Name, editable. | Required · unique · max 40 chars · letters, numbers, `_`, `-` · no spaces | | **Description** *(optional)* | Explain the purpose or usage of this variable (helps Pearl use it correctly). | Optional · max 1000 chars | | **Allow Multiple Entries** | Store a list of values of the chosen type (e.g. several dates). | Optional | | **Reset Every Interaction** | Start this variable empty in every new interaction instead of reusing the value from a previous one. | Optional | ![Reset Every Interaction toggle in the Variables Manager](https://mintcdn.com/nlpearl/tHQ8UGrMS66f83Dh/images/dark_mode/variables-reset-every-interaction.png?fit=max\&auto=format\&n=tHQ8UGrMS66f83Dh\&q=85\&s=2cd674ea533f62fa64fd02d2f2b1b3f0) > [!TIP] > > **Display Name vs ID** — the **Display Name** is what you read and what Pearl says; the **ID** is the key the system uses everywhere else. When importing leads via CSV or the API, the column header / `callData` key must match the variable's **ID**, not its Display Name. **Variable Types** | Type | Example | | - | - | | **Text** | a name, a plan | | **Whole Number** | age, quantity | | **Decimal Number** | an amount, a rate | | **Boolean** | true / false | | **Date** | a birth date | | **Time** | an appointment time | | **Date & Time** | a meeting slot | ![Variable details form – Light Mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-create-2.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=0f42450a5ca68d0c469d24b02120e98f) **4. Define Allowed Values (Optional)** Use this section to limit inputs to specific options. * Add a list of accepted values. * Optionally assign **backend codes** to each value. * Toggle **Allow Multiple Entries** if more than one value can be selected. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-create-3.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=9f47917e85bcb26188d46620b4f63a18) > [!NOTE] > > This is ideal for dropdowns or structured inputs (e.g. `Issue Type`, `Region`, etc.). **5. Save the Variable** It will now be available anywhere in your flow where variables are supported. **6. Use your variables wherever applicable** > [!NOTE] > > Some fields, like the **Opening Sentence**, do not support the use of **in-call variables**. > > When testing your flows via **Test Calls**, note that **Pre-call variables are required**, while **In-call variables are optional**. > > Also, when uploading a lead file, **only the variables you've actually used** in your flows will appear in the platform’s lead mapping interface. > > In other words:\ > If you’ve created variables in the Variable Manager but haven’t used them anywhere, they **won’t show up** when setting up an outbound campaign or importing leads. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-simple-placement-4.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=52e93b791d37d8c7e6f6a86dd9a2cc14) > [card] > > **Search, Edit or Delete a Variable** > > **To search a variable:** > > * Open the **Variable Manager**. > * Click on the search bar. > > ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-search.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=f723b914191ea6528bd815b9683651db) > > **To edit a variable:** > > * Open the **Variable Manager**. > * Click on the variable name to open its edit form. > > ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-edit.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=d228bb6295c5c54d02f26066ca417267) > > **To delete a variable:** > > * Click the **Trash icon** next to the variable. > > * Confirm the deletion in the dialog box. > > > [!WARNING] > > > > Deleting a variable will remove it from all flows where it's used. Proceed with caution! > > ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-delete.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=7241f12c46b52864a1272608ba9b7b08) *** ## Using Variables in Conversations Collecting User Input into Variables To collect user input into a variable, open the node's configuration in the **Flow Editor** and locate the **"Store In Variable"** field. *** Inserting Variables into Agent Scripts 1. **Compose the Agent's Script** in any text field within your flow. 2. **Insert Variable Placeholder**: * Click the **"+"** icon next to the text field. * Select the desired variable from the list. > [card] Example > > **Script**: "Thank you for calling, `customerName`!" ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-script.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=ce094efc1945a42d78c174dc4611f3b7) *** Using Variables in Actions 1. **Add an Action Node** (e.g., **Email Node**, **SMS Node**) to your flow. 2. **Configure the Action**: * **Message Content**: Include variables by clicking the **"+"** icon and selecting the desired variable. 3. **Customize the Message** with variable placeholders. > [card] Example in SMS Node > > **Message Content**: "Hello `customerName`, your appointment on `appointmentDate` is confirmed." ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-sms-send.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=c32506eeb498365689d2b9b276705ddd) *** Using Variables in Post-Call Actions 1. Add a Post-Call Action to your flow (`SMS`, `Email`, `API`). 2. Write the Notification Message, using the “+” icon to insert dynamic variables 3. Customize the content to provide a clear summary of each completed call. > [card] Example Email Notification to Client > > **Subject**: New call from `customerName` - Summary for `companyName` \ > \\ > > **Message Content**: "Hello `companyName`, You have received a new call from `customerName`. Here are some details: > > * Call Duration: `callDuration` > * Summary: `callSummary`" ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-notification.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=c1a53c56b5a4cdc747010f9f22907ae4) *** ## Implementing Conditional Logic with Variables Conditional Branching 1. **Enable Conditional Transitions** in a node's configuration by toggling the **"Conditional Branching"** option. 2. **Add Conditions** using variables and operators (e.g., **`satisfactionScore >= 4`**). 3. **Label Each Condition** for clarity. 4. **Connect to Subsequent Nodes** based on each condition. > [card] Example > > * **Variable**: `satisfactionScore` > * **Conditions**: > * If **`satisfactionScore >= 4`**, proceed to positive feedback node. > * If **`satisfactionScore < 4`**, proceed to improvement inquiry node. ![Conditional branching – Light Mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-tree-1.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=60b02e005d3a5949fb8aee84ca0ff68c) *** ## Populating Variables from External Data Call variables can be filled dynamically from CSV files or APIs to personalize outbound calls, and from custom SIP headers on inbound calls. > [!WARNING] > > Do not enable **Reset Every Interaction** on a variable you populate from a CSV import or the API: the value you provide is cleared before the call starts. Adding Variables via the Platform (Outbound Campaigns) **1. Download the Lead Template CSV** Go to the **Outbound Campaigns** section of the platform, then click **Download Lead Template**. This CSV contains predefined columns where you can add your custom variables. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-download.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=e27f04674d7cd122f105f6dc28fdd6e1) **2. Fill in the CSV with your Lead Data** Open the downloaded CSV and complete it by filling in the lead information, including any custom variables in the appropriate columns. Make sure each variable matches the column header to avoid upload issues. Once completed, **upload the CSV back into the platform**. ![Send Email action interface on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/variables-manager-add-lead.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=5eeac2678d5d336f1feb8021e41b48a7) > [card] Example CSV Entry > > | phoneNumber | customerName | membershipStatus | > | - | - | - | > | +1234567890 | Jane Smith | Gold | *** Adding Variables via API 1. **Use the Add Lead API Endpoint**: `PUT /v1/Outbound/{outboundId}/Lead`. 2. **Include Variables** in the `callData` field of your JSON payload. > [card] Example Request > > ```http theme={null} > PUT /v1/Outbound/{outboundId}/Lead > Content-Type: application/json > Authorization: Bearer > > { > "phoneNumber": "+1234567890", > "externalId": "lead123", > "callData": { > "customerName": "Jane Smith", > "membershipStatus": "Gold" > } > } > ``` *** Sending Variables in Single On-Demand Calls 1. **Use the Make Call API Endpoint**: `POST /v1/Outbound/{outboundId}/Call`. 2. **Include Variables** in the `callData` field of your JSON payload. > [card] Example Request > > ```http theme={null} > POST /v1/Outbound/{outboundId}/Call > Content-Type: application/json > Authorization: Bearer > > { > "to": "+1234567890", > "callData": { > "firstName": "John", > "accountBalance": "$100" > } > } > ``` *** ### Passing Data on Inbound Calls with Custom SIP Headers External data can be passed to a Pearl on inbound calls using custom SIP headers. Include the values on the INVITE with an `X-` prefix (for example `X-CustomerId`), then create a **Pre-call** variable whose ID matches the header name exactly, including the prefix. The values are mapped to those variables on each call and are available to the agent and the workflow. > [!NOTE] > > This option is available only for numbers connected through [Custom VoIP](/pages/custom_voip). > [card] Example > > Your SIP trunk sends this header on the INVITE: > > ```http theme={null} > X-CustomerId: 48213 > ``` > > Create a Pre-call variable with the ID `X-CustomerId`. On each call, it holds the value sent in the header, and you can use it like any other variable, for example `{X-CustomerId}` in a script or in an API request. *** > [!NOTE] > > Best Practices for Using Variables > > * **Use Descriptive Names**: Clearly name variables for easy identification (e.g., `customerEmail`). > * **Define Variables Early**: Plan your variables before building the conversation flow. > * **Categorize Variables**: Use **Pre-call** and **Collected In-call** categories to organize your variables. > * **Avoid Unnecessary Variables**: Only create variables that are essential to your conversation. > * **Test Thoroughly**: Simulate conversations to ensure variables function as intended. > * **Handle Data Securely**: Be cautious with personal and sensitive information. > * **Document Variables**: Use the description field to note the purpose of each variable. > * **Use Allowed Values and Codes**: When appropriate, define allowed values and use codes for better data management. *** ## Examples > [card] Example 1: Personalizing an Outbound Call > > > [!NOTE] > > > > **Scenario**: Notifying customers about a service upgrade. > > 1. **Variables**: > * **Pre-call Variables**: > * `customerName` (Text) > * `currentPlan` (Text) > * **Collected In-call Variables**: > * `interested` (Boolean) > 2. **Script**: "Hello , we're excited to inform you about an upgrade to your plan." > 3. **Collect Interest**: > * Question: "Would you like to hear more about this upgrade?" > * Store response in `interested` (Boolean). > 4. **Implement Conditional Logic**: > * If **`interested`** is **true**, proceed with details. > > * If **false**, thank the customer and end the call. > > > [!NOTE] > > > > **Lead Import Tip**\ > > Use the platform to import leads with the `customerName` and `currentPlan` variables populated. > [card] Example 2: Scheduling Multiple Dates > > > [!NOTE] > > > > **Scenario**: Collecting multiple available dates from a customer. > > 1. **Variable**: > * `availableDates` (Date & Time) > * **Allow Multiple Entries**: Enabled. > 2. **Script**: "Please provide the dates you are available for the meeting." > 3. **Collect Dates**: > * The system allows the customer to provide multiple dates, which are stored in the `availableDates` variable. > 4. **Usage**: > * The collected dates can be used to schedule meetings or appointments. > [card] Example 3: Dynamic Survey with Conditional Logic > > > [!NOTE] > > > > **Scenario**: Gathering customer feedback. > > 1. **Ask Satisfaction Score**: > * Question: "On a scale of 1 to 5, how satisfied are you with our service?" > * Store in `satisfactionScore` (Whole Number). > 2. **Conditional Paths**: > * If **`satisfactionScore >= 4`**, proceed to a node thanking the customer. > * If **`satisfactionScore < 4`**, proceed to a node asking for improvement suggestions. > 3. **Follow-Up Actions**: Send a personalized email using collected data, thanking them or addressing concerns. *** ## Frequently Asked Questions (FAQ) > [accordion] How do I handle empty variables? > > Implement checks using conditional logic or assign default values to handle empty variables gracefully. > [accordion] Are variable names case-sensitive? > > Yes, variable names are case-sensitive. Ensure consistency when referencing them. > [accordion] Can I change a variable's value during the conversation? > > Yes, variables can be updated multiple times as the conversation progresses. > [accordion] How do I include variables when adding leads via the platform or API? > > Include variables in the CSV file for platform uploads or in the `callData` field when using the API. > [accordion] What is the difference between Pre-call and Collected In-call variables? > > **Pre-call Variables** are configured before the conversation starts and typically include data imported from external sources or predefined settings. **Collected In-call Variables** are captured or updated during the conversation based on user interactions. > [accordion] What happens if I delete a variable that’s in use? > > Deleting a variable that’s in use can cause errors in your conversation flow. Remove all references before deleting. *** ## Conclusion Variables are powerful tools that enhance your conversations by making them dynamic and personalized. By effectively using variables, you can: * **Collect and Store User Inputs**: Gather essential information from users. * **Personalize Interactions**: Create tailored experiences for each user. * **Control Conversation Flow**: Direct the conversation based on user responses and data. * **Integrate External Data**: Incorporate information from other systems for enriched interactions. > [!NOTE] > > Remember to: > > * **Plan Carefully**: Define your variables before building your conversation. > * **Organize Variables**: Use categories like Pre-call and Collected In-call for better management. > * **Enhance User Experience**: Use variables to make interactions meaningful. > * **Test Thoroughly**: Regularly test your conversation to ensure variables work correctly. > * **Follow Best Practices**: Keep your variables organized and your data secure. *** For additional support, contact our support team at [support@nlpearl.ai](support@nlpearl.ai). *** # Voice Studio Source: https://developers.nlpearl.ai/pages/voice_studio Generate speech from text to hear how a voice sounds, browse the voice library, and clone a voice of your own from a short recording. [NLPearl - Voice Studio](https://www.youtube.com/embed/a8ffNsXDqR4) Voice Studio is where you work with voices. Write a line, choose who says it, and hear it — then keep the voices you like, or clone one of your own from a short recording and use it across your Pearls. Open it from **Voice Studio** in the left sidebar. The page has two parts: the **draft** in the middle, where you write and listen, and the **voice library** on the right, where you pick a voice and adjust it. ![The Voice Studio screen, with the draft in the middle and the voice library on the right](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-overview.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=a75f0ae799043640a5c5c70159171693) > [!NOTE] > > A voice **is** a speaker in a language, so choosing a voice already chooses the language it speaks. That's why there is no separate language selector on this screen. > [!NOTE] > > Voice Studio requires the **TTS** permission (*Access Voice Studio - clone voices and generate speech*). See [Users & Workspaces](/pages/users_workspaces) to manage permissions. *** ### Generating speech **1. Choose a voice** Pick a voice in the library on the right. See [The voice library](#the-voice-library) for searching, filtering, and managing voices. **2. Write what the voice should say** Type into the draft. A single take can be up to **4,000 characters**. Past that limit, the page tells you by how much and the **Generate Speech** button stays disabled until you trim it. On an empty draft, **Start with one of these** offers a few ready-made lines: click one to use it. Once the draft has text, the **Example line** button fills it with a line written to show the selected voice off: hesitations, a breath, a number said out loud. Press it again for a different one. Type `@` anywhere in your text to insert a **speech marker** — a short tag the model reads as an instruction rather than as words. See [Speech markers](#speech-markers) below. ![A draft with a breath marker shown as a highlighted chip](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-draft.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=734fc6e754a41af2d87fa76e3c70ccde) > [!TIP] > > Clean sentences sound the same in every voice and tell you very little about the one you picked. The example lines are written to bring out what makes a voice different. **3. Generate and listen** Click **Generate Speech**. Playback starts as soon as the first audio is ready — you don't wait for the whole take to finish generating, which matters for longer texts. When the take lands, a card shows the text that was spoken, the voice that spoke it, and a player. From there you can: * **Play, pause and scrub** through the take. * **Download** the audio. * **Minimize** the card to a single line to get your draft back in full view, and **Expand** it again. Each new take stacks on top of the previous ones: Voice Studio keeps your last **20 takes**. Click **Show earlier takes** to list them, replay one, or click **Use this text again** to put its text back in the draft. *** ### Adjusting a voice Click a voice in the library to open its panel. It replaces the list until you click the back button at the top of the panel. ![The panel of a voice, with the speaking speed, the model, and the voice ID](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-speed.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=cf41f9e7da2041f51328d01adb77b4c2) | Setting | What it does | | - | - | | **Speaking speed** | How slowly or quickly the voice reads a line, in five levels from **Very slow** to **Very fast**. Use **−** and **+** to change it. For a voice in **My voices**, the speed is saved with the voice and used by every agent set to it. For any other voice, it only shapes the takes you generate here. | | **Model** | The speech model: **Pearl TTS v2**, our latest, most human-like text-to-speech model, with ultra-low latency. | | **Voice ID** | The voice's identifier, with a copy button. Use it to set this voice on an agent through the API. | You can also **rename** a voice from its panel. *** ### Speech markers Markers are tags the speech model reads as **instructions**, not as words. Type `@` in your draft to open the marker menu at your cursor, then pick one. ![The marker menu open at the cursor, offering Laughs and Breath](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-markers.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=a8de4fd1d3b3a0f1912d0206769af4bf) | Marker | Inserts | What it does | | - | - | - | | **Laughs** | `[laughs]` | A laugh, where the line lands lightly. | | **Breath** | `[breath]` | An audible breath before what comes next. | > [!WARNING] > > Only the markers listed above are recognised. Any other bracketed tag you type — including one that looks like it should work — is **read out loud, brackets and all**. For a beat in the middle of a sentence, use punctuation, or a `[breath]` mid-clause. *** ### Speaking to a man or a woman Hebrew writes the same sentence differently depending on who is being addressed: the second person is inflected, so one written line is two different spoken ones. When you select a Hebrew voice, a **Speaking to** control appears under your draft. Set it to the gender of **the person being spoken to**. > [!NOTE] > > This is the **listener**, not the speaker. The voice's own gender is a property of the voice and is never something you set here. A female voice addressing a man is an ordinary call. The control appears for Hebrew voices only, because it is the only supported language where this changes the delivery. *** ### The voice library The library on the right of the page is where you browse, filter and manage the voices available to your account. ![The voice library on the Explore tab, with search, filters and a list of voices](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-voice-picker.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=a26fc75d26e69906163903c2f893cfd1) It has two tabs: > [card] Explore > > Every voice available to you, for **choosing**: the NLPearl voices, your own clones, and voices other accounts have published. > [card] My voices > > Your account's own list, for **managing**. Your Pearls can be set to these voices, and their speaking speed is saved. A voice reaches **My voices** in one of two ways: you clone it, or you add it from Explore. #### Searching and filtering Search by **name, accent or tag**, and narrow the list with the filters: * **Language** * **Accent** — appears once you've picked a language, and only for languages that have accent variants. * **Gender** * **Yours** — shows only your own clones. It appears when the list mixes your voices with others. #### Reading a row Each row shows the language flag, a gender mark, the voice's name, and its accent and tags. Some rows also carry a label: | Label | Meaning | | - | - | | `private` | Only your account can use it. Every voice you clone starts out private. Shown on the Explore tab. | | `public` | One of your voices that you've published to the shared library. Shown on the Explore tab. | | `shared` | Published by another account, rather than one of your own. | | `yours` | One of your own clones. | Click the **play** button on a row to hear the voice without leaving the list. A voice you cloned plays back the sample built when you created it, so what you hear here is what you approved. > [!NOTE] > > Playing a voice doesn't generate a new take — the clip is rendered once and reused, so every play after the first is instant. #### Managing a voice The **⋯** button on a row opens its menu. The actions offered depend on the tab and on whose voice it is: ![The menu on a voice row, with Copy voice ID and Add to my voices](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-voice-menu.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=33555b8fddfa97239c92e905c66349f5) | Action | Where | What it does | | - | - | - | | **Copy voice ID** | Both tabs | Copies the voice's identifier. | | **Add to my voices** | Explore | Adds the voice to your account's list, so your Pearls can use it. Each press adds another copy, with its own speaking speed. | | **Publish to library** | Explore, on your own private voices | Publishes the voice to the shared library, after a confirmation — see [Publishing a voice](#publishing-a-voice). | | **Remove from my voices** | My voices | Takes this copy off your list, after a confirmation. The voice itself stays in the library, and you can add it again. | | **Delete voice** | Explore, on your own unpublished clones | **Destroys the voice** and every copy of it in your account, after a confirmation. | > [!WARNING] > > **Remove from my voices** and **Delete voice** both take the voice away from **any agent already using it**: those agents lose their voice. **Delete voice** cannot be undone — the voice and its recording are gone for good, and it leaves Explore too. *** ### Cloning a voice You can build a voice from a short recording of someone speaking, then use it like any other voice on the platform. Click **Clone a voice** in the voice library. Cloning takes two steps: **Recording**, then **Details**. **1. Provide one recording** Drag an audio file onto the popup, click **Browse files**, or click **Record audio** to record straight from your microphone. ![The Recording step of Clone a voice, asking for one recording](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-clone-recording.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=9e18d6b4ede4afdaf3229c04412901f7) | | | | - | - | | **Length** | 5 to 60 seconds | | **File size** | Up to 20 MB | | **Formats** | WAV, MP3, M4A, OGG, WEBM | | **How many** | One | > [!NOTE] > > A voice is built from **a single recording**. Dropping a second file replaces the first rather than adding to it. For the best result, use **clear, continuous speech with no background noise** — one person talking, no music, no overlapping voices. **2. Describe the speaker and confirm your permission** Still on the **Recording** step, describe the speaker: | Field | Required | | | - | - | - | | **Language** | Yes | The language the speaker is speaking. The voice is built for it — generating in another language won't sound like them. | | **Accent** | For English and Spanish | Shown only for languages that have accent variants. | | **Gender** | Yes | Used to filter the library, and to inflect the sample line in languages that need it. | Then tick the box confirming that the voice in the recording is your own, or that you hold documented written permission from the person whose voice it is, and that you authorize NLPearl to create a synthetic replica of that voice. ![The Recording step with the language, accent and gender fields and the permission checkbox](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-clone-details.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=d03d0c302320d6714ee581d16d1d96f0) > [!WARNING] > > Cloning someone's voice without their explicit, documented permission is not permitted. The confirmation is a legal attestation, not a formality. Click **Next**. Your recording is uploaded and the voice is built — this takes a few seconds. **3. Hear the sample and name the voice** On the **Details** step, the **Sample** plays a line in the cloned voice, so you know what you're keeping. This is also the clip the library will play for this voice. If it doesn't sound right, build it again, or go **Back** to change the recording. Give the voice a **Name** (2 to 25 characters), and optionally up to 3 **Tags** to make it easier to find — for example `warm`, `support`, `news`. ![The Details step, with the sample player, the name and the tags](https://mintcdn.com/nlpearl/XsoCGfh47ZTRKKfZ/images/dark_mode/voice-studio-clone-audition.png?fit=max\&auto=format\&n=XsoCGfh47ZTRKKfZ\&q=85\&s=ba6500627be2c9a09c74db8728fb6328) If your recording contained little actual speech, a warning next to the sample says so: the clone still works, but a longer take makes a closer match. **4. Save** Click **Save to my voices**. The voice appears in **My voices** right away, selected, with its panel open, ready to generate speech. > [!NOTE] > > If a recording can't be read, try another file or record it again. After many attempts in a short time, cloning pauses for a little while. *** ### Publishing a voice Publishing puts one of your voices into the **shared library**, where every account on the platform can use it. > [!WARNING] > > **Publishing cannot be undone.** Once a voice is published, it stays in the shared library and you cannot withdraw or delete it. Publish only voices you are certain you want to share, and only if the permission you hold for that voice covers it. Publishing is offered from the voice's row menu on the **Explore** tab, and only while the voice is still private. A confirmation asks you to approve it. Once published, the option is gone. *** ### Using your voices in a Pearl An agent's **Voice** dropdown lists the platform's voices and the voices in your **My voices** list. **1. Add the voice to your list** Clone it, or add it from **Explore**. **2. Open your Pearl's settings** Go to **Pearl Settings → Agent Names, Languages & Voices**. **3. Pick it for an agent** Open the agent's **Voice** dropdown and select it. For the languages Voice Studio supports, the dropdown also offers **Open Voice Studio** at the bottom of the list, which opens the studio in a new tab so you can clone or audition a voice without losing your place in the form. ![An agent's voice dropdown in Pearl Settings, with Open Voice Studio at the bottom of the list](https://mintcdn.com/nlpearl/KxpEmGQIO1UYLAap/images/dark_mode/voice-studio-pearl-voice-dropdown.png?fit=max\&auto=format\&n=KxpEmGQIO1UYLAap\&q=85\&s=e74fbbba06f0b156019330f17ca77700) > [!NOTE] > > The agent uses the **speaking speed** saved on that voice in My voices. Change it from the voice's panel in Voice Studio. See [Voices and Languages](/pages/languages) for how agents, languages and voices work together in a Pearl. *** ### Supported languages Voice Studio generates speech in the following languages: | Language | Accents | | - | - | | **English** | American, British, Australian, Canadian, Irish, Indian | | **Spanish** | Castilian, Mexican, Argentinian, Colombian, Venezuelan | | **French** | — | | **German** | — | | **Italian** | — | > [!NOTE] > > This is the list of languages the speech model currently serves, which is narrower than the full set of languages a Pearl can speak. See [Voices and Languages](/pages/languages) for everything the platform supports. > [!NOTE] > > Your **My voices** list is empty until you clone a voice or add one from **Explore**. *** > [card] [Voices and Languages](/pages/languages) > > Configure agents, languages and voices for a Pearl. > [card] [Pearl Settings](/pages/agent_customization) > > Everything you can configure on a Pearl, including its agents. # Webhooks Source: https://developers.nlpearl.ai/pages/webhooks Understand the webhook payloads sent by NLPearl.AI for lead and call events in real time. ![Webhooks documentation light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/webhooks-cover.svg?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=aab74780aad4d737741edce88e0cdf73) *** ## Overview When configuring a Pearl, you can set up webhooks to receive real-time notifications at key moments of the call lifecycle. The webhooks available to you depend on whether your Pearl is configured for **Inbound** or **Outbound** activity. > [card] Inbound Pearl > > Access to the **Call Webhook** only. > [card] Outbound Pearl > > Access to both the **Call Webhook** and the **Lead Webhook**. > [!NOTE] > > The **Call Webhook** payload is identical whether it originates from an Inbound or Outbound Pearl. The **Lead Webhook** is exclusive to Outbound campaigns, as leads are a concept specific to outbound call management. > [!TIP] > > Use webhooks only when an **external tool needs event notifications**. For actual automations tied to how a call ended, rely on **[Post-Call Actions](/pages/postcall)** instead. *** ## Webhook Types > [card] [Call Webhook](#call-webhook-payload) > > Triggered at the start and end of every call. Available for both Inbound and Outbound Pearls. > [card] [Lead Webhook](#lead-webhook-payload) > > Triggered every time a lead changes status. Available for Outbound Pearls only. *** ## Webhook Version Select the version that matches your Pearl configuration. **V2 is the recommended version** and is selected by default. > [tab] V2 (Latest) > > > [!NOTE] > > > > In V2, all JSON payload keys use **camelCase** (e.g. `pearlId`, `phoneNumber`, `collectedData`). > > *** > > ## Call Webhook Payload > > The **Call Webhook** is triggered at the start and at the end of every call. It provides comprehensive data about the call, including its outcome, duration, transcript, and any information collected during the conversation. > > > Available for both **Inbound** and **Outbound** Pearls. > > ### Payload Fields > > | Field | Type | Description | > | - | - | - | > | `id` | `string` | The unique identifier of the call. | > | `pearlId` | `string` | The unique identifier of the Pearl used during this call. | > | `startTime` | `datetime` | The date and time when the call processing started. | > | `conversationStatus` | `int (enum)` | The status of the conversation. See [Conversation Statuses](#conversation-statuses) below. | > | `status` | `int (enum)` | The overall technical status of the call. See [Call Statuses](#call-statuses) below. | > | `from` | `string` | The phone number from which the call was made. On a [Realtime API](/pages/realtime/overview) call, the `endUserId` (empty without one) on an inbound Pearl, `PearlStream` on an outbound one. | > | `to` | `string` | The phone number to which the call was made. On a Realtime API call, `PearlStream` on an inbound Pearl, the `endUserId` (empty without one) on an outbound one. | > | `channel` | `string` | `phone` for a phone call, `stream` for a [Realtime API](/pages/realtime/overview) call. | > | `audioQuality` | `string` | `hd` for a Realtime API call made in `pcm_24000` or `opus_24000`, `phone` for every other call. | > | `name` | `string` | The name associated with the call, if available. | > | `duration` | `integer` | The duration of the conversation with Pearl, in seconds (queue and transfer time excluded). | > | `queueDuration` | `integer` | The time in seconds the caller waited in the inbound queue before Pearl picked up (the whole wait if they hung up while still queued). `null` if the call did not go through the queue. | > | `transferCallDuration` | `integer` | The duration in seconds of the transferred part of the call, after Pearl handed it over. `null` if the call was not transferred. | > | `creditDebited` | `integer` | The number of credits debited for the call when the webhook is sent. `0` in the webhook sent at the start of the call. | > | `recording` | `string` *(URL)* | A URL to the call recording, if recording is enabled. | > | `transcript` | `object[]` | The full conversation transcript as a list of messages. See [Transcript Message](#transcript-message) below. | > | `summary` | `string` | A concise AI-generated summary of the conversation. | > | `collectedInfo` | `object[]` | Structured data points collected during the call. See [Collected Info](#collected-info) below. | > | `tags` | `string[]` | Tags or labels triggered during the conversation based on your Pearl configuration. | > | `isCallTransferred` | `boolean` | Whether the call was transferred to a human agent or external number. | > | `overallSentiment` | `int (enum)` | The overall emotional tone detected from the client. See [Sentiment Values](#sentiment-values) below. | > | `leadId` | `string` | The unique identifier of the associated lead, if the call is linked to one. Otherwise `null`. | > > > [!NOTE] > > > > * **Transferred calls** send one more Call Webhook. The one sent when Pearl hands the call over has `status` `InProgress` and `transferCallDuration` set to `null`. A final webhook follows once the transferred part ends, with the final `status`, the `transferCallDuration` and the updated `creditDebited`. > > * `creditDebited` only counts the credits charged before the webhook is sent. A later charge, such as an SMS sent by a [Post-Call Action](/pages/postcall), is not included: the [Get Call](/api-reference/v2/call/get-call) endpoint returns the final amount. > > ### Conversation Statuses > > | Value | Code | Description | > | - | - | - | > | `NeedRetry` | 10 | The call will be retried. | > | `InCallQueue` | 20 | The call is queued and waiting to be placed. | > | `OnCall` | 40 | The call is currently in progress. | > | `VoiceMailLeft` | 70 | Pearl reached voicemail and left a message. | > | `Success` | 100 | The conversation ended with a successful outcome as defined in the Pearl. | > | `NotSuccessful` | 110 | The conversation ended without achieving the defined success criteria. | > | `Completed` | 130 | The conversation was completed (neutral outcome). | > | `Unreachable` | 150 | The lead could not be reached after all attempts. | > | `Blacklisted` | 220 | The number is blacklisted and will not be contacted. | > | `QueueAbandon` | 300 | The call was abandoned while in the queue. | > | `Error` | 500 | An error occurred during the conversation. | > > > [!NOTE] > > > > The definition of **Success** and **NotSuccessful** is configured at the Pearl level. Refer to the [Create a Pearl](/pages/create_pearl#pearl-name) page for more details. > > ### Call Statuses > > | Value | Code | Description | > | - | - | - | > | `InProgress` | 3 | The call is currently active. | > | `Completed` | 4 | The call ended normally. | > | `Busy` | 5 | The line was busy when the call was placed. | > | `Failed` | 6 | The call could not be connected due to a technical issue. | > | `NoAnswer` | 7 | The call was not answered within the configured ring duration. | > | `Canceled` | 8 | The call was canceled before being connected. | > > ### Transcript Message > > Each entry in the `transcript` array represents a single message in the conversation. > > | Field | Type | Description | > | - | - | - | > | `role` | `int (enum)` | The speaker: `Pearl` (2) or `Client` (3). | > | `content` | `string` | The text content of the message. | > | `startTime` | `float` | The timestamp (in seconds) when the message started. | > | `endTime` | `float` | The timestamp (in seconds) when the message ended. | > > ### Collected Info > > Each entry in the `collectedInfo` array represents a variable captured during the call. > > | Field | Type | Description | > | - | - | - | > | `id` | `string` | The ID of the variable as configured in your Pearl. | > | `name` | `string` | The display name of the variable. | > | `value` | `any` | The value collected for this variable during the call. | > > ### Sentiment Values > > | Value | Code | Description | > | - | - | - | > | `Negative` | 1 | Clear signals of anger, disappointment, or distress. | > | `SlightlyNegative` | 2 | Some negative emotions present, but overall tone remains close to neutral. | > | `Neutral` | 3 | Balanced, objective, or factual - no significant positive or negative leanings. | > | `SlightlyPositive` | 4 | More positive cues than negative, though enthusiasm is mild. | > | `Positive` | 5 | Positive emotions, enthusiasm, satisfaction, or gratitude. | > > ### Example Payload > > ```json theme={null} > { > "id": "64f3c300e4b0d3a5f1c9e299", > "pearlId": "64f3b9ffe4b0d3a5f1c9e100", > "startTime": "2024-06-01T10:15:00Z", > "conversationStatus": "Success", > "status": "Completed", > "from": "+18005550100", > "to": "+14155552671", > "channel": "phone", > "audioQuality": "phone", > "name": "John Doe", > "duration": 142, > "queueDuration": null, > "transferCallDuration": null, > "creditDebited": 24, > "recording": "https://recordings.nlpearl.ai/calls/64f3c300e4b0d3a5f1c9e299.mp3", > "transcript": [ > { > "role": "Pearl", > "content": "Hi John, this is Pearl calling on behalf of Acme Corp. How are you today?", > "startTime": 0.0, > "endTime": 4.2 > }, > { > "role": "Client", > "content": "I'm good, thanks. What's this about?", > "startTime": 4.8, > "endTime": 7.1 > } > ], > "summary": "The lead was informed about the Premium plan and expressed interest in a follow-up.", > "collectedInfo": [ > { > "id": "var_001", > "name": "Interested In Plan", > "value": "Premium" > } > ], > "tags": ["interested", "callback-requested"], > "isCallTransferred": false, > "overallSentiment": "SlightlyPositive", > "leadId": "64f3c2a1e4b0d3a5f1c9e271" > } > ``` > > *** > > ## Lead Webhook Payload > > The **Lead Webhook** is triggered every time a lead changes status - at the beginning and at the end of a call. It contains all relevant information about the lead and its current state. > > > Available for **Outbound** Pearls only. > > ### Payload Fields > > | Field | Type | Description | > | - | - | - | > | `id` | `string` *(ObjectId)* | The unique identifier of the lead in the NLPearl.AI system. | > | `pearlId` | `string` | The unique identifier of the Pearl associated with this lead. | > | `externalId` | `string` | The ID from an external system such as a CRM, for cross-referencing. | > | `phoneNumber` | `string` | The phone number of the lead. | > | `timeZone` | `string` | The time zone assigned to the lead. | > | `status` | `int (enum)` | The current status of the lead. See [Lead Statuses](#lead-statuses) below. | > | `created` | `datetime` | The date and time when the lead was created. | > | `callsId` | `string[]` | A list of all call IDs associated with this lead. | > | `callData` | `object` *(key-value)* | Custom variables provided before the call to personalize the Pearl conversation. | > | `collectedData` | `object` *(key-value)* | Data collected **during** the call. Keys correspond to variable IDs configured in the Pearl. | > > ### `callData` vs `collectedData` > > | | `callData` | `collectedData` | > | - | - | - | > | **When** | Provided before the call | Filled during the call | > | **Purpose** | Personalizes the Pearl's script and opening | Captures outcomes and responses from the conversation | > | **Example** | `{ "firstName": "John", "plan": "Premium" }` | `{ "confirmBooking": true, "rideTime": "Friday 12:00" }` | > > ### Lead Statuses > > | Value | Code | Description | > | - | - | - | > | `New` | 1 | The lead has just been added, no call attempted yet. | > | `NeedRetry` | 10 | The call will be retried according to the retry configuration. | > | `InCallQueue` | 20 | The lead is queued and waiting for a call to be placed. | > | `WrongCountryCode` | 30 | The phone number does not match the campaign's country code. | > | `OnCall` | 40 | The lead is currently in an active call. | > | `VoiceMailLeft` | 70 | Pearl reached voicemail and left a personalized message. | > | `Success` | 100 | The conversation ended with a successful outcome as defined in the Pearl. | > | `NotSuccessful` | 110 | The conversation ended without achieving the success criteria. | > | `Completed` | 130 | All attempts are done (neutral outcome). | > | `Unreachable` | 150 | The lead could not be reached after all retry attempts. | > | `Blacklisted` | 220 | The number is blacklisted and will not be contacted. | > | `QueueAbandon` | 300 | The call was abandoned while in the queue. | > | `Error` | 500 | An error occurred while processing this lead. | > > > [!NOTE] > > > > The definition of **Success** and **NotSuccessful** is set at the Pearl level. Refer to the [Create a Pearl](/pages/create_pearl#pearl-name) page for details. > > ### Example Payload > > ```json theme={null} > { > "id": "64f3c2a1e4b0d3a5f1c9e271", > "pearlId": "64f3b9ffe4b0d3a5f1c9e100", > "externalId": "crm-lead-00482", > "phoneNumber": "+14155552671", > "timeZone": "America/New_York", > "status": "Success", > "created": "2024-06-01T09:00:00Z", > "callsId": [ > "64f3c300e4b0d3a5f1c9e299" > ], > "callData": { > "firstName": "John", > "email": "john.doe@example.com", > "plan": "Premium" > }, > "collectedData": { > "confirmBooking": true, > "dropOffLocation": "Orly Airport", > "rideTime": "Friday at 12:00", > "userIntent": "Book a taxi to the airport" > } > } > ``` > [tab] V1 > > > [!WARNING] > > > > **V1 is a legacy version.** We recommend migrating to V2 for access to additional fields like `collectedData` on leads and a more consistent structure. > > > [!NOTE] > > > > In V1, all JSON payload keys use **PascalCase** (e.g. `PearlId`, `PhoneNumber`, `CollectedInfo`). > > *** > > ## Call Webhook Payload > > The **Call Webhook** is triggered at the start and at the end of every call. > > > Available for both **Inbound** and **Outbound** Pearls. > > ### Payload Fields > > | Field | Type | Description | > | - | - | - | > | `Id` | `string` | The unique identifier of the call. | > | `PearlId` | `string` | The unique identifier of the Pearl used during this call. | > | `RelatedId` | `string` | The unique identifier of the related inbound or outbound entity (e.g. campaign ID). | > | `StartTime` | `datetime` | The date and time when the call processing started. | > | `ConversationStatus` | `int (enum)` | The status of the conversation. See [Conversation Statuses](#conversation-statuses-v1) below. | > | `Status` | `int (enum)` | The overall technical status of the call. See [Call Statuses](#call-statuses-v1) below. | > | `From` | `string` | The phone number from which the call was made. On a [Realtime API](/pages/realtime/overview) call, the `endUserId` (empty without one) on an inbound Pearl, `PearlStream` on an outbound one. | > | `To` | `string` | The phone number to which the call was made. On a Realtime API call, `PearlStream` on an inbound Pearl, the `endUserId` (empty without one) on an outbound one. | > | `Channel` | `string` | `phone` for a phone call, `stream` for a [Realtime API](/pages/realtime/overview) call. | > | `AudioQuality` | `string` | `hd` for a Realtime API call made in `pcm_24000` or `opus_24000`, `phone` for every other call. | > | `Name` | `string` | The name associated with the call, if available. | > | `Duration` | `integer` | The duration of the conversation with Pearl, in seconds (queue and transfer time excluded). | > | `QueueDuration` | `integer` | The time in seconds the caller waited in the inbound queue before Pearl picked up (the whole wait if they hung up while still queued). `null` if the call did not go through the queue. | > | `TransferCallDuration` | `integer` | The duration in seconds of the transferred part of the call, after Pearl handed it over. `null` if the call was not transferred. | > | `CreditDebited` | `integer` | The number of credits debited for the call when the webhook is sent. `0` in the webhook sent at the start of the call. | > | `Recording` | `string` *(URL)* | A URL to the call recording, if recording is enabled. | > | `Transcript` | `object[]` | The full conversation transcript as a list of messages. See [Transcript Message](#transcript-message-v1) below. | > | `Summary` | `string` | A concise AI-generated summary of the conversation. | > | `CollectedInfo` | `object[]` | Structured data points collected during the call. See [Collected Info](#collected-info-v1) below. | > | `Tags` | `string[]` | Tags or labels triggered during the conversation. | > | `IsCallTransferred` | `boolean` | Whether the call was transferred to a human agent or external number. | > | `OverallSentiment` | `int (enum)` | The overall emotional tone detected from the client. See [Sentiment Values](#sentiment-values-v1) below. | > | `LeadId` | `string` | The unique identifier of the associated lead, if applicable. Otherwise `null`. | > > > [!NOTE] > > > > V1 includes an additional `RelatedId` field referencing the inbound or outbound entity. This field does not exist in V2. > > > [!NOTE] > > > > * **Transferred calls** send one more Call Webhook. The one sent when Pearl hands the call over has `Status` `InProgress` and `TransferCallDuration` set to `null`. A final webhook follows once the transferred part ends, with the final `Status`, the `TransferCallDuration` and the updated `CreditDebited`. > > * `CreditDebited` only counts the credits charged before the webhook is sent. A later charge, such as an SMS sent by a [Post-Call Action](/pages/postcall), is not included: the [Get Call](/api-reference/v1/call/get-call) endpoint returns the final amount. > > ### Conversation Statuses > > | Value | Code | Description | > | - | - | - | > | `NeedRetry` | 10 | The call will be retried. | > | `InCallQueue` | 20 | The call is queued and waiting to be placed. | > | `OnCall` | 40 | The call is currently in progress. | > | `VoiceMailLeft` | 70 | Pearl reached voicemail and left a message. | > | `Success` | 100 | The conversation ended with a successful outcome as defined in the Pearl. | > | `NotSuccessful` | 110 | The conversation ended without achieving the defined success criteria. | > | `Completed` | 130 | The conversation was completed (neutral outcome). | > | `Unreachable` | 150 | The lead could not be reached after all attempts. | > | `Blacklisted` | 220 | The number is blacklisted and will not be contacted. | > | `QueueAbandon` | 300 | The call was abandoned while in the queue. | > | `Error` | 500 | An error occurred during the conversation. | > > ### Call Statuses > > | Value | Code | Description | > | - | - | - | > | `InProgress` | 3 | The call is currently active. | > | `Completed` | 4 | The call ended normally. | > | `Busy` | 5 | The line was busy when the call was placed. | > | `Failed` | 6 | The call could not be connected due to a technical issue. | > | `NoAnswer` | 7 | The call was not answered within the configured ring duration. | > | `Canceled` | 8 | The call was canceled before being connected. | > > ### Transcript Message > > | Field | Type | Description | > | - | - | - | > | `Role` | `int (enum)` | The speaker: `Pearl` (2) or `Client` (3). | > | `Content` | `string` | The text content of the message. | > | `StartTime` | `float` | The timestamp (in seconds) when the message started. | > | `EndTime` | `float` | The timestamp (in seconds) when the message ended. | > > ### Collected Info > > | Field | Type | Description | > | - | - | - | > | `Id` | `string` | The ID of the variable as configured in your Pearl. | > | `Name` | `string` | The display name of the variable. | > | `Value` | `any` | The value collected for this variable during the call. | > > ### Sentiment Values > > | Value | Code | Description | > | - | - | - | > | `Negative` | 1 | Clear signals of anger, disappointment, or distress. | > | `SlightlyNegative` | 2 | Some negative emotions present, but overall tone remains close to neutral. | > | `Neutral` | 3 | Balanced, objective, or factual - no significant positive or negative leanings. | > | `SlightlyPositive` | 4 | More positive cues than negative, though enthusiasm is mild. | > | `Positive` | 5 | Positive emotions, enthusiasm, satisfaction, or gratitude. | > > ### Example Payload > > ```json theme={null} > { > "Id": "64f3c300e4b0d3a5f1c9e299", > "PearlId": "64f3b9ffe4b0d3a5f1c9e100", > "RelatedId": "64f3c1ffe4b0d3a5f1c9e200", > "StartTime": "2024-06-01T10:15:00Z", > "ConversationStatus": "Success", > "Status": "Completed", > "From": "+18005550100", > "To": "+14155552671", > "Channel": "phone", > "AudioQuality": "phone", > "Name": "John Doe", > "Duration": 142, > "QueueDuration": null, > "TransferCallDuration": null, > "CreditDebited": 24, > "Recording": "https://recordings.nlpearl.ai/calls/64f3c300e4b0d3a5f1c9e299.mp3", > "Transcript": [ > { > "Role": "Pearl", > "Content": "Hi John, this is Pearl calling on behalf of Acme Corp. How are you today?", > "StartTime": 0.0, > "EndTime": 4.2 > }, > { > "Role": "Client", > "Content": "I'm good, thanks. What's this about?", > "StartTime": 4.8, > "EndTime": 7.1 > } > ], > "Summary": "The lead was informed about the Premium plan and expressed interest in a follow-up.", > "CollectedInfo": [ > { > "Id": "var_001", > "Name": "Interested In Plan", > "Value": "Premium" > } > ], > "Tags": ["interested", "callback-requested"], > "IsCallTransferred": false, > "OverallSentiment": "SlightlyPositive", > "LeadId": "64f3c2a1e4b0d3a5f1c9e271" > } > ``` > > *** > > ## Lead Webhook Payload > > The **Lead Webhook** is triggered every time a lead changes status - at the beginning and at the end of a call. > > > Available for **Outbound** Pearls only. > > ### Payload Fields > > | Field | Type | Description | > | - | - | - | > | `Id` | `string` *(ObjectId)* | The unique identifier of the lead in the NLPearl.AI system. | > | `OutboundId` | `string` | The unique identifier of the outbound campaign or configuration associated with this lead. | > | `ExternalId` | `string` | The ID from an external system such as a CRM, for cross-referencing. | > | `PhoneNumber` | `string` | The phone number of the lead. | > | `TimeZone` | `string` | The time zone assigned to the lead. | > | `Status` | `int (enum)` | The current status of the lead. See [Lead Statuses](#lead-statuses-v1) below. | > | `Created` | `datetime` | The date and time when the lead was created. | > | `CallsId` | `string[]` | A list of all call IDs associated with this lead. | > | `CallData` | `object` *(key-value)* | Custom variables provided before the call to personalize the Pearl conversation. | > > > [!NOTE] > > > > V1 uses `OutboundId` to reference the campaign. V2 replaces this with `pearlId` and adds the `collectedData` field to expose data collected during the call. > > ### Lead Statuses > > | Value | Code | Description | > | - | - | - | > | `New` | 1 | The lead has just been added, no call attempted yet. | > | `NeedRetry` | 10 | The call will be retried according to the retry configuration. | > | `InCallQueue` | 20 | The lead is queued and waiting for a call to be placed. | > | `WrongCountryCode` | 30 | The phone number does not match the campaign's country code. | > | `OnCall` | 40 | The lead is currently in an active call. | > | `VoiceMailLeft` | 70 | Pearl reached voicemail and left a personalized message. | > | `Success` | 100 | The conversation ended with a successful outcome as defined in the Pearl. | > | `NotSuccessful` | 110 | The conversation ended without achieving the success criteria. | > | `Completed` | 130 | All attempts are done (neutral outcome). | > | `Unreachable` | 150 | The lead could not be reached after all retry attempts. | > | `Blacklisted` | 220 | The number is blacklisted and will not be contacted. | > | `QueueAbandon` | 300 | The call was abandoned while in the queue. | > | `Error` | 500 | An error occurred while processing this lead. | > > ### Example Payload > > ```json theme={null} > { > "Id": "64f3c2a1e4b0d3a5f1c9e271", > "OutboundId": "64f3c1ffe4b0d3a5f1c9e200", > "ExternalId": "crm-lead-00482", > "PhoneNumber": "+14155552671", > "TimeZone": "America/New_York", > "Status": "Success", > "Created": "2024-06-01T09:00:00Z", > "CallsId": [ > "64f3c300e4b0d3a5f1c9e299" > ], > "CallData": { > "FirstName": "John", > "Email": "john.doe@example.com", > "Plan": "Premium" > } > } > ``` *** ## Differences Between V1 and V2 | | V1 | V2 | | - | - | - | | **JSON key format** | `PascalCase` | `camelCase` | | **Lead: campaign reference** | `OutboundId` | `pearlId` | | **Lead: post-call collected data** | ❌ Not available | ✅ `collectedData` | | **Call: entity reference** | `RelatedId` | ❌ Removed | *** ## Setting Up Webhooks You can configure webhook URLs directly in your Pearl or outbound campaign settings. **1. Open Your Campaign Settings** Navigate to the Pearl or outbound campaign you want to configure and open its settings panel. **2. Locate the Webhook Section** Scroll to the **Webhooks** section in the configuration form. ![Webhook settings on light mode](https://mintcdn.com/nlpearl/YPwGw7hP4aonkrpJ/images/dark_mode/webhooks-documentation.png?fit=max\&auto=format\&n=YPwGw7hP4aonkrpJ\&q=85\&s=68f6a5b1387499338b0b1350661af02c) **3. Turn Webhooks On** Toggle the **Webhooks** setting to **On**. Webhooks are off by default, and the URL fields only appear once it's enabled. **4. Enter Your Webhook URLs** Provide the endpoint URLs for the webhooks you want to receive. Your server must respond with any HTTP `2xx` status to acknowledge receipt. > [!NOTE] > > * **Call Webhook** - available for **Inbound** and **Outbound** Pearls. > * **Lead Webhook** - available for **Outbound** Pearls only. **5. Authenticate Your Webhooks (Optional)** For each webhook (Call and Lead), you can attach a **Credential** so NLPearl.AI authenticates its requests to your endpoint: 1. Enable the **Credentials** toggle under the webhook URL. 2. Select an existing **Token**, or create one with **Add New** (use **Edit** to update an existing one). The selected credential is sent with every webhook delivery, letting your server verify the request genuinely originates from NLPearl.AI. Available for both Inbound (Call Webhook) and Outbound (Call + Lead Webhook) Pearls. > [!TIP] > > Credentials work the same way as in the [API Node](/pages/api_action#credentials-authentication). A token created here can be reused across your webhooks. > [!NOTE] > > Make sure your webhook endpoint is publicly accessible and responds within **10 seconds**. When a delivery fails (a non-`2xx` response, an error, or a timeout), NLPearl.AI tries again up to **3 attempts** in total, **30 seconds** apart. Since a delivery can arrive more than once, make your endpoint idempotent. > [!NOTE] > > If your endpoint is behind a firewall, allow the NLPearl IP addresses listed in [IP Whitelisting](/pages/ip_whitelist). *** ## Checking Webhook Deliveries Every webhook sent for a call appears in that call's event timeline, in the call details. Each **Call Webhook** or **Lead Webhook** event shows the endpoint URL, the number of attempts, and the final status code, or **Not sent** when the delivery could not leave (for example, when its credential was deleted). Expand the event to see each attempt: its time, its status code, the response time, and the error returned by your server, if any. Use it to check that your endpoint received the data, or to find out why it did not. *** > [card] [Outbound Campaigns](/pages/outbound) > > Learn how to create and configure outbound campaigns, including webhook setup. > [card] [API Reference – Get Calls](/api-reference/v2/call/get-call) > > Explore the full call object structure returned by the API.