> ## Documentation Index
> Fetch the complete documentation index at: https://developers.nlpearl.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Inbound

> Learn how to set up Inbound Activities using your created Pearl to handle incoming calls effectively.

<div className="block dark:hidden">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/tAyL-PAMsD9LnbQ9/images/light_mode/inbound_cover.svg?fit=max&auto=format&n=tAyL-PAMsD9LnbQ9&q=85&s=8fff3c264b434f17aeb438083860d33a" alt="Inbound cover" className="rounded-[14px]" width="1048" height="720" data-path="images/light_mode/inbound_cover.svg" />
    </div>
  </Frame>
</div>

<div className="hidden dark:block">
  <Frame>
    <div className="p-1">
      <img src="https://mintcdn.com/nlpearl/tAyL-PAMsD9LnbQ9/images/dark_mode/inbound_cover.svg?fit=max&auto=format&n=tAyL-PAMsD9LnbQ9&q=85&s=98b08206ff556981908dcb7d1bac2d70" alt="Inbound cover" className="rounded-[14px]" width="1048" height="720" data-path="images/dark_mode/inbound_cover.svg" />
    </div>
  </Frame>
</div>

***

## Setting Up Inbound Activities

Once you have created a Pearl in NLPearl.AI, you can utilize it to set up Inbound Activities. This feature enables your Pearl to receive inbound calls, providing a dynamic and responsive customer service experience.

<Info>
  What are Inbound Activities?

  Inbound Activities refer to the capability of your conversational AI to handle incoming calls. This feature allows you to engage with callers immediately and effectively, using the conversational flows defined in your Pearl.
</Info>

***

### Steps to Create an Inbound Activity

<Steps>
  <Step title="Create a Pearl">
    To get started, create the Pearl that best fits your outbound use case.

    <CardGroup cols={2}>
      <Card title="Simple Pearl" icon="subtitles" iconType="light" href="/pages/create_pearl">
        Ideal for quick setups or basic use cases. Easy to configure and perfect for testing or lightweight interactions.
      </Card>

      <Card title="PearlVibe" icon="diagram-subtask" iconType="light" href="/pages/pearl_vibe">
        Designed for more complex scenarios, including multi-step logic.
      </Card>
    </CardGroup>
  </Step>

  <Step title="Purchase a Phone Number">
    You first need to acquire a phone number from our platform. This number will be dedicated to your Inbound Activity and can receive calls from anywhere at any time.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/5m7CLiudjrqxiyho/images/light_mode/inbound_purchasephone.jpg?fit=max&auto=format&n=5m7CLiudjrqxiyho&q=85&s=f1f33201906b4d3d0300692e59238d41" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2624" height="1456" data-path="images/light_mode/inbound_purchasephone.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/ek92yQlpTyrjmvSe/images/dark_mode/inbound_purchasephone.jpg?fit=max&auto=format&n=ek92yQlpTyrjmvSe&q=85&s=53ef374b064ba6ac77126bf9b1a4b86a" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2624" height="1456" data-path="images/dark_mode/inbound_purchasephone.jpg" />
        </div>
      </Frame>
    </div>
  </Step>

  <Step title="Assign the Phone Number to Your Campaign">
    Link the purchased phone number to the Pearl you want to use for handling inbound calls. This connects your conversational flow to real-world interactions.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/5m7CLiudjrqxiyho/images/light_mode/inbound_addphone.jpg?fit=max&auto=format&n=5m7CLiudjrqxiyho&q=85&s=12b60f64c1b8ae636a81ca8cc056695f" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_addphone.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/ek92yQlpTyrjmvSe/images/dark_mode/inbound_addphone.jpg?fit=max&auto=format&n=ek92yQlpTyrjmvSe&q=85&s=acad471efe9b9a7f880850cb2f7a903e" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_addphone.jpg" />
        </div>
      </Frame>
    </div>
  </Step>

  <Step title="Configure Inbound Setting">
    Set up your inbound call parameters, such as:

    * **Number of Agents**: Specify the number of agents that will handle calls simultaneously.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/5m7CLiudjrqxiyho/images/light_mode/inbound_agents.jpg?fit=max&auto=format&n=5m7CLiudjrqxiyho&q=85&s=c1319b69375c988ccaba9b6fac71e1f1" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_agents.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/ek92yQlpTyrjmvSe/images/dark_mode/inbound_agents.jpg?fit=max&auto=format&n=ek92yQlpTyrjmvSe&q=85&s=cd6b6d5367d355962e72ade78aac439c" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_agents.jpg" />
        </div>
      </Frame>
    </div>

    <br />

    * **Waiting Queue Message**: Define the sentence that will be said to callers if they enter the waiting queue.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/DSJnNLmkdffV1qq-/images/light_mode/inbound_waitingqueue.jpg?fit=max&auto=format&n=DSJnNLmkdffV1qq-&q=85&s=bf7f0389083371051be3ab515a91a09a" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_waitingqueue.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/OLkkXJCUYovrG0y1/images/dark_mode/inbound_waitingqueue.jpg?fit=max&auto=format&n=OLkkXJCUYovrG0y1&q=85&s=b528d70a3a45deb8a185739809c6994a" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_waitingqueue.jpg" />
        </div>
      </Frame>
    </div>

    <br />

    * **Queue Music**: Choose the song that will be played while callers wait in the queue.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/5m7CLiudjrqxiyho/images/light_mode/inbound_queuemusic.jpg?fit=max&auto=format&n=5m7CLiudjrqxiyho&q=85&s=1248e34397cf19204f3cd638f38686c8" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_queuemusic.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/ek92yQlpTyrjmvSe/images/dark_mode/inbound_queuemusic.jpg?fit=max&auto=format&n=ek92yQlpTyrjmvSe&q=85&s=ebf361551eb7dc1bc577b3760971ae3e" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_queuemusic.jpg" />
        </div>
      </Frame>
    </div>

    <br />

    * **Recording Option**: If recording is enabled, this conversation will be recorded and saved for future access. If recording is disabled, the conversation will not be recorded and no audio will be available.
    * **Recording After Transfer Call**: *Boolean* - If enabled, the call will continue to be recorded after being transferred. *Note: "Pearl & End-user" must be selected; otherwise, it will be automatically disabled.* This setting is important for maintaining logs in multi-agent interactions.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/DSJnNLmkdffV1qq-/images/light_mode/inbound_recordingoptions.jpg?fit=max&auto=format&n=DSJnNLmkdffV1qq-&q=85&s=6cdce07551137cf4f1efd7db4e18fe64" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_recordingoptions.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/OLkkXJCUYovrG0y1/images/dark_mode/inbound_recordingoptions.jpg?fit=max&auto=format&n=OLkkXJCUYovrG0y1&q=85&s=046f047b37e606f76d43d42c65cdb106" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_recordingoptions.jpg" />
        </div>
      </Frame>
    </div>

    <br />

    * **Transcript Masking**: *(Post-Call)* When enabled, sensitive information in conversation transcripts is automatically masked after the call while preserving essential context.
      This is especially useful for post-call analysis, compliance, and data security, ensuring that private details like:
      Credit card numbers
      Social Security numbers
      Personal identifiers
      are redacted while keeping the conversation readable.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/DSJnNLmkdffV1qq-/images/light_mode/inbound_transcriptmasking.jpg?fit=max&auto=format&n=DSJnNLmkdffV1qq-&q=85&s=fabaf2e19663e6da34f672b9c81ac284" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_transcriptmasking.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/OLkkXJCUYovrG0y1/images/dark_mode/inbound_transcriptmasking.jpg?fit=max&auto=format&n=OLkkXJCUYovrG0y1&q=85&s=402b2fa7c550a7a812ce8aed0c61131f" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_transcriptmasking.jpg" />
        </div>
      </Frame>
    </div>

    <br />

    <Card>
      > For example, if a customer says:
      > "My credit card number is 1234-5678-9012-3456."
      > The transcript might store it as:
      > "My credit card number is --\*\*-3456."
      > This helps businesses review interactions safely without exposing sensitive data.
    </Card>
  </Step>

  <Step>
    * Call Webhook: A call webhook is triggered at key points during the call lifecycle, such as when the call is initiated and when it ends. You receive an object similar to the one returned by the [Get Calls Endpoint](/api-reference/v2/call/get-call), including details like call duration, outcome, and any data collected during the call. This is useful for tracking call performance and automation.

    <div className="block dark:hidden">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/DSJnNLmkdffV1qq-/images/light_mode/inbound_webhook.jpg?fit=max&auto=format&n=DSJnNLmkdffV1qq-&q=85&s=f55422b352a81fbe92cefe8907eb49ff" alt="Send Email action interface on light mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/light_mode/inbound_webhook.jpg" />
        </div>
      </Frame>
    </div>

    <div className="hidden dark:block">
      <Frame>
        <div className="p-1">
          <img src="https://mintcdn.com/nlpearl/OLkkXJCUYovrG0y1/images/dark_mode/inbound_webhook.jpg?fit=max&auto=format&n=OLkkXJCUYovrG0y1&q=85&s=de34f20d68c056c276a7b96c9f7580d1" alt="Send Email action interface on dark mode" className="rounded-[14px]" width="2986" height="1144" data-path="images/dark_mode/inbound_webhook.jpg" />
        </div>
      </Frame>
    </div>

    <br />
  </Step>
</Steps>

***

<CardGroup cols={2}>
  <Card title="Agents" icon="users" iconType="light" href="/pages/agents">
    Understand how to manage your agents, including adding and configuring agents for your inbound and outbound activities.
  </Card>

  <Card title="Phone Numbers" icon="phone" iconType="light" href="/pages/phone_numbers">
    Learn how to purchase and manage phone numbers, and configure them for your NLPearl.AI activities.
  </Card>
</CardGroup>

***

### Managing Call Volume with Queues

If your Inbound Activity experiences high call volumes, callers will not be turned away. Instead, they will enter a waiting queue where they can listen to customizable messages and music until an AI agent becomes available.

<Note>
  ### Call Queue Configuration

  Customize the waiting message and background music to keep your callers engaged while they wait. This feature helps in maintaining a professional and pleasant waiting experience.
</Note>

***

<Info>
  ### Monitoring and Adjusting Your Inbound Activities

  While basic monitoring of call logs and activity reports can be done via our API, any modifications to the activity setup or features like voice changes and language settings need to be handled directly on the platform.
</Info>
