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

# Transfer to an advisor from Salesforce

> How to hand the WhatsApp conversation over to a human advisor using the record owner in Salesforce, and what happens when that owner cannot be resolved.

When the automated conversation reaches its limit, the **Talk to a human** block hands it over to an advisor in [Treble Sales](/en/docs/agent-platform/welcome).

With Salesforce connected, that block can also take into account **who the record owner is in the CRM**, so that the conversation lands in the hands of the advisor who was already handling that person.

<div class="hr" />

## Add the block

From the blocks panel, open **Talk to a human** and choose the Salesforce option.

<img src="https://mintcdn.com/trebleai/n_48dzI5l_tB6XfZ/images/salesforce-transfer-so-1.png?fit=max&auto=format&n=n_48dzI5l_tB6XfZ&q=85&s=f9be00f2e63692d2fea2e7cd5970464e" alt="Choosing Salesforce Sales inside Talk to a human" className="mx-auto" width="3024" height="1712" data-path="images/salesforce-transfer-so-1.png" />

On the canvas the block appears as **Transfer to Salesforce**. Click **Settings** to open it.

<img src="https://mintcdn.com/trebleai/n_48dzI5l_tB6XfZ/images/salesforce-transfer-mo-2.png?fit=max&auto=format&n=n_48dzI5l_tB6XfZ&q=85&s=f5d2a8008b2ca94d787dc57a7fc0e943" alt="Transfer block on the canvas" className="mx-auto" width="3012" height="1696" data-path="images/salesforce-transfer-mo-2.png" />

<div class="hr" />

## Configuration

<Tabs>
  <Tab title="Single object">
    <img src="https://mintcdn.com/trebleai/n_48dzI5l_tB6XfZ/images/salesforce-transfer-so-2.png?fit=max&auto=format&n=n_48dzI5l_tB6XfZ&q=85&s=c914eba20a1ac542025ce835f7fadfb1" alt="Transfer configuration in single object" className="mx-auto" width="3024" height="1714" data-path="images/salesforce-transfer-so-2.png" />

    **Tags (Treble.ai Teams).** The team the conversation goes into. It is required and works as the default destination: if the conversation cannot be assigned to a specific person, it stays in this team's queue.

    **Labels (sales.treble.ai Labels).** Optional. They are used to classify the conversation inside Sales and then filter or report on it. They do not affect who it is assigned to.
  </Tab>

  <Tab title="Multi-object">
    In multi-object there are two more fields, because you first have to say **from which object** the owner will be read.

    <img src="https://mintcdn.com/trebleai/n_48dzI5l_tB6XfZ/images/salesforce-transfer-mo-1.png?fit=max&auto=format&n=n_48dzI5l_tB6XfZ&q=85&s=a4aab900f4180fda6beb80a65b241734" alt="Transfer configuration in multi-object" className="mx-auto" width="3022" height="1708" data-path="images/salesforce-transfer-mo-1.png" />

    **Tags (Treble.ai Teams).** Required. The destination team.

    **Labels.** Optional, to classify the conversation.

    **Object.** Required. Which of your objects the owner will be read from (for example `Account`).

    **Owner property.** Required. The field of that object that contains the owner. The list shows the owner fields that were configured **when installing the integration** for that object; it is usually `OwnerId`.

    <Info>
      If the dropdown only offers you `OwnerId` and you need to use another field (for example a custom assigned advisor field), write to your Customer Success Manager: that list is defined in the integration's object configuration, not from the block.
    </Info>
  </Tab>
</Tabs>

<div class="hr" />

## How it is decided who receives it

<Steps>
  <Step title="Treble looks up the person's record">
    Using the conversation's phone number, just like the other Salesforce blocks.
  </Step>

  <Step title="It reads the owner of that record">
    In multi-object, from the object and field you chose. In single object, from your parent entity's record.
  </Step>

  <Step title="It looks for that Salesforce user among your Treble agents">
    The owner must also exist as an **agent in Treble**. Agents are created when installing the integration, or manually afterwards.

    <a class="article-link" href="/en/docs/agent-platform/admin/tags-teams#create-a-new-agent"><p>Create a new agent</p><Icon icon="arrow-up-right-from-square" iconType="solid" /></a>
  </Step>

  <Step title="If it finds them, it assigns them the conversation">
    The advisor sees it in their Sales inbox as a conversation assigned to them.
  </Step>

  <Step title="If it does not find them, the conversation stays unassigned">
    It still goes into the queue of the team you chose in **Tags**, and the next available advisor takes it according to your account's routing rules.
  </Step>
</Steps>

<Warning>
  **The case that surprises people the most:** the person is new and does not exist in Salesforce yet. There is no record, there is no owner, and the conversation goes into the team unassigned.

  This is the expected behavior, not an error. It is worth letting the team know so they don't interpret those conversations as an integration failure.
</Warning>

<div class="hr" />

## Common issues

<AccordionGroup>
  <Accordion title="Conversations arrive unassigned even though the record does have an owner">
    Almost always the Salesforce owner **is not created as an agent in Treble**. Check the list of agents in Treble and confirm that user is there, with the same email they have in Salesforce.

    Remember that the agent import modal **only appears once**, during installation. Advisors who joined Salesforce afterwards have to be created manually in Treble.
  </Accordion>

  <Accordion title="The conversation reaches an advisor other than the one I expected">
    In multi-object, check which **object** you are reading the owner from. If the same person exists as a `Lead` and as an `Account` with different owners, the conversation follows the owner of the object you configured in the block, not the one you have open on screen.
  </Accordion>

  <Accordion title="The owner property dropdown does not show the field I need">
    That list comes from the object configuration that was defined when installing the integration. It cannot be changed from the block; write to your Customer Success Manager.
  </Accordion>

  <Accordion title="The advisor receives the conversation but does not see the chat history">
    The history is written to the CRM **when the conversation is closed**, not during it. While the conversation is active, the advisor sees the messages inside Treble Sales.

    <a class="article-link" href="/en/docs/integrations/salesforce/features/activities"><p>Conversation history in the CRM</p><Icon icon="arrow-up-right-from-square" iconType="solid" /></a>
  </Accordion>
</AccordionGroup>

<div class="hr" />

## Next steps

<CardGroup cols={2}>
  <Card title="View WhatsApp inside Salesforce" icon="window-maximize" href="/en/docs/integrations/salesforce/embed/custom-tab">
    So your advisors can reply without leaving the CRM.
  </Card>

  <Card title="Conversation history" icon="clock-rotate-left" href="/en/docs/integrations/salesforce/features/activities">
    How the conversation is saved in Salesforce.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.