> For the complete documentation index, see [llms.txt](https://help.wotnot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.wotnot.io/build/integrations/native/salesforce.md).

# Salesforce

{% hint style="info" %}
Available in the **STARTER** plan and above.
{% endhint %}

The Salesforce integration lets you interact with your CRM during a conversation. Use it to create leads when users express interest, log support cases, update contact information.

#### Actions

<table data-search="false"><thead><tr><th width="226.72564697265625">Action</th><th>Description</th></tr></thead><tbody><tr><td><strong>Create lead</strong></td><td>Create a new lead in Salesforce.</td></tr><tr><td><strong>Create contact</strong></td><td>Create a new contact in Salesforce.</td></tr><tr><td><strong>Create case</strong></td><td>Create a new case in Salesforce.</td></tr><tr><td><strong>Update lead</strong></td><td>Updates an existing lead in Salesforce.</td></tr><tr><td><strong>Update contact</strong></td><td>Updates an existing contact in Salesforce.</td></tr><tr><td><strong>Update case</strong></td><td>Updates an existing case in Salesforce.</td></tr><tr><td><strong>Fetch lead</strong></td><td>Fetches details of an existing lead.</td></tr><tr><td><strong>Fetch contact</strong></td><td>Fetches details of an existing contact.</td></tr><tr><td><strong>Fetch case</strong></td><td>Fetches details of an existing case.</td></tr></tbody></table>

## How to use the Salesforce integration

{% stepper %}
{% step %}

### Connect your Salesforce account

Add the Salesforce block to your agent. Click **Add Account**, then complete the OAuth process by logging into Salesforce and approving the requested permissions. Once authorized, your Salesforce account will show as connected.

{% hint style="info" %}
The user connecting the Salesforce account must have the necessary permissions.
{% endhint %}
{% endstep %}

{% step %}

### Choose the action to perform

Select the action this block should carry out. Available actions are [listed on the table above](#actions)
{% endstep %}

{% step %}

### Map the fields

Match each Salesforce field to the data it should receive — this can be a [variable](/build/interface/variables.md) captured earlier in the conversation, or a static value you set manually. Every required field for the selected action must be mapped before the block will run.

{% hint style="info" %}
Max fields you can map is 50.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.wotnot.io/build/integrations/native/salesforce.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
