> 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 %}

Using the salesforce integration, you can create a lead on your Salesforce account using the information collected by the chatbot in the chat flow.

<figure><img src="/files/SsyNud2egHjLt8hR1erT" alt=""><figcaption></figcaption></figure>

## Connect your Salesforce account

First, you must connect your Salesforce account by adding your organization ID.&#x20;

You can either add it from the action panel on the App Market page.

{% hint style="info" %}
You can find your Salesforce org ID - <https://help.salesforce.com/s/articleView?id=000385215&type=1>
{% endhint %}

<figure><img src="/files/YoGuyG03JR8VKTGGctcT" alt=""><figcaption></figcaption></figure>

## **Choose Environment:**

You can choose the environment that you want to use for this action block.

* Sandbox
* Production<br>

## **Map the Salesforce fields:**

You can map the Salesforce fields with the variables defined in the bot builder. This way, whatever values stored in WotNot's variables will be mapped against the Salesforce fields that you choose here

{% hint style="info" %}
You can map both default and custom fields of Salesforce here\
\
The maximum number of fields you can map is capped at 50
{% endhint %}


---

# 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.
