# mulesoft Agentforce Connector - Full Documentation
---
product: Agentforce Connector
version: 1.0
---
# Agentforce Connector 1.0
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Agentforce Connector provides MuleSoft developers with the ability to seamlessly integrate with AI
agents running in Salesforce’s Agentforce platform.
Agentforce Connector offers a group of capabilities that simplify agent integration in MuleSoft
applications.
Use this connector to:
- Build AI agents in a low-code environment.
- Authenticate with a Salesforce org and discover active agents.
- Start a new session with an AI agent application.
- Extend the power of Agentforce by surfacing prompts from external applications to AI agents
running in Salesforce.
- Orchestrate new, innovative experiences for your customers, partners and employees.
For information about compatibility and fixed issues, see the Agentforce Connector release notes.
## Before You Begin
To use this connector, you must be familiar with:
- Anypoint Connectors
- Mule runtime engine (Mule)
- Elements and global elements in a Mule flow
- How to create a Mule app using Anypoint Code Builder or Anypoint Studio
Before creating an app, you must have:
- Java 8, 11, or 17
- Apache Maven
- Anypoint Platform
- Credentials to connect with your Salesforce org
- The latest versions of Anypoint Code Builder or Anypoint Studio
To configure the connector, you must create a Connected App in Salesforce. For more information, see
[Get Started with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-get-started.html)
.
## Common Use Cases for the Connector
These are some common use cases for the connector:
- Customer Service
Increase human agents' productivity by having AI agents complete time-consuming tasks such as
reviewing case history, analyzing reported issues, and looking up other related information.
- Sales
Improve sales team efficacy by accelerating prospect research, generating customized collateral,
and preparing contracts.
- Marketing
Support marketing teams by drafting social media copy, executing market research, and completing
campaign analysis.
## Next Step
After you complete the prerequisites, you are ready to create an app and configure the connector
using [Anypoint Studio](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-studio) or
[Anypoint Code Builder](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-config-acb).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.0
---
# Agentforce Connector 1.0 Reference
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
This connector provides connectivity to the AI agents running in Salesforce’s Agentforce platform.
## Configurations
---
### Config
Default configuration
#### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Name | | Name for this configuration. Connectors reference the configuration with this name. | | |
Connection | | The connection types to provide to this configuration. | | |
Name | | ID used to reference this configuration. | | |
#### Connection Types
##### OAuth Client Credentials
###### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Reconnection | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Client Id | | The OAuth client ID as registered with the service provider. | | |
Client Secret | | The OAuth client secret as registered with the service provider. | | |
Token Url | | The service provider’s token endpoint URL. | https://{salesforceorg}/services/oauth2/token
| |
Scopes | | OAuth scopes to request during the OAuth dance. This value defaults to the scopes in the annotation. | | |
Object Store | | Configures the object store that stores data for each resource owner. If not configured, Mule uses the default object store. | | |
## Supported Operations
- [Continue Agent Conversation](#ContinueAgentConversation)
- [End Agent Conversation](#EndAgentConversation)
- [Start Agent Conversation](#StartAgentConversation)
- [Unauthorize](#Unauthorize)
## Operations
## Continue Agent Conversation
``
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Message | | | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Message Sequence Number | | Increase this number for each subsequent message in a session. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## End Agent Conversation
``
Use the **End agent conversation** operation to close the session after the agent responds.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Start Agent Conversation
``
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Output Mime Type | | MIME type of the payload that this operation outputs. | | |
Output Encoding | | The encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Agent List | | | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Unauthorize
``
Deletes all the access token information of a given resource owner ID so that it’s impossible to
execute any operation for that user without doing the authorization dance again
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
### For Configurations
- [Config](#Config)
## Types
### Reconnection
Configures a reconnection strategy for an operation.
| Field | Type | Description | Default Value | Required |
|---|
Fails Deployment | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Reconnection Strategy | | Reconnection strategy to use. | | |
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many
reconnection attempts the connector source or operation can make.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
Count | | How many reconnection attempts the Mule app can make. | | |
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to
reconnect at a specified frequency for as long as the Mule app runs.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
### Invoke Agent Response Attributes
| Field | Type | Description | Default Value | Required |
|---|
Messages | | | | |
### Message
| Field | Type | Description | Default Value | Required |
|---|
Content Safe | | | | |
Feedback Id | | | | |
Id | | | | |
Message | | | | |
Plan Id | | | | |
Reason | | | | |
Type | | | | |
### Repeatable In-Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX
buffer size. Always run performance tests to find the optimal buffer size for your specific use
case.
| Field | Type | Description | Default Value | Required |
|---|
Initial Buffer Size | | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max Buffer Size. | | |
Buffer Size Increment | | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. | | |
Max Buffer Size | | Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a STREAM_MAXIMUM_SIZE_EXCEEDED error. A value of less than or equal to 0 means no limit. | | |
Buffer Unit | | Unit for the Initial Buffer Size, Buffer Size Increment, and Max Buffer Size fields. | | |
### Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream
content in memory. If the stream content is larger than the configured buffer size, Mule backs up
the buffer’s content to disk and then clears the memory.
| Field | Type | Description | Default Value | Required |
|---|
In Memory Size | | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance: Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory. Configure a smaller buffer size to decrease memory load at the expense of response time.
| | |
Buffer Unit | | Unit for the In Memory Size field. | | |
### Error Mapping
| Field | Type | Description | Default Value | Required |
|---|
Source | ANY REDELIVERY_EXHAUSTED TRANSFORMATION EXPRESSION SECURITY CLIENT_SECURITY SERVER_SECURITY ROUTING CONNECTIVITY RETRY_EXHAUSTED TIMEOUT
| | | |
Target | | | | |
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.0/)
---
product: Agentforce Connector
version: 1.0
---
# Agentforce Connector 1.0 XML and Maven Support
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Although you can manually code a Mule app in XML, it is more efficient to use Anypoint Code Builder
or Studio:
- If you manually code a Mule runtime engine (Mule) app in XML, either from the Anypoint Code
Builder or Studio XML editor, or from a text editor, you can access the connector from your app by
adding reference statements to both your XML Mule flow and the Apache Maven `pom.xml` file.
- If you add the connector in Anypoint Code Builder or Studio, the XML is automatically populated
the code with the connector’s namespace and schema location and it also adds a dependency to the
`pom.xml` file.
## Add a Namespace for the Connector
Paste the following code inside the `mule` tag of the header of your configuration XML:
```xml
http://www.mulesoft.org/schema/mule/ms-agentforce
http://www.mulesoft.org/schema/mule/ms-agentforce/current/mule-ms-agentforce.xsd
```
This example shows how the namespace statements are placed in the `` XML block:
```xml
```
## Add a POM File Dependency
The Apache Maven `pom.xml` file generated by Anypoint Code Builder and Studio contains dependencies
for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to
enable access to this connector:
```xml
com.mulesoft.connectors
mule4-agentforce-connector
x.x.x
mule-plugin
```
Replace `x.x.x` with the version that corresponds to the connector you’re using.
To get the most up-to-date `pom.xml` file information:
1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/).
2. In Exchange, click **Login** and supply your Anypoint Platform username and password.
3. In Exchange, search for `agentforce`.
4. Select the connector.
5. Click **Dependency Snippets** near the upper right of the screen.
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.0/)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference)
---
product: Agentforce Connector
version: 1.1
---
# Agentforce Connector 1.1
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Agentforce Connector provides MuleSoft developers with the ability to seamlessly integrate with AI
agents running in Salesforce’s Agentforce platform.
Agentforce Connector offers a group of capabilities that simplify agent integration in MuleSoft
applications.
Use this connector to:
- Build AI agents in a low-code environment.
- Authenticate with a Salesforce org and discover active agents.
- Start a new session with an AI agent application.
- Extend the power of Agentforce by surfacing prompts from external applications to AI agents
running in Salesforce.
- Orchestrate new, innovative experiences for your customers, partners and employees.
For information about compatibility and fixed issues, see the Agentforce Connector release notes.
## Before You Begin
To use this connector, you must be familiar with:
- Anypoint Connectors
- Mule runtime engine (Mule)
- Elements and global elements in a Mule flow
- How to create a Mule app using Anypoint Code Builder or Anypoint Studio
Before creating an app, you must have:
- Java 8, 11, or 17
- Apache Maven
- Anypoint Platform
- Credentials to connect with your Salesforce org
- The latest versions of Anypoint Code Builder or Anypoint Studio
To configure the connector, you must create a Connected App in Salesforce. For more information, see
[Get Started with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-get-started.html)
.
## Common Use Cases for the Connector
These are some common use cases for the connector:
- Customer Service
Increase human agents' productivity by having AI agents complete time-consuming tasks such as
reviewing case history, analyzing reported issues, and looking up other related information.
- Sales
Improve sales team efficacy by accelerating prospect research, generating customized collateral,
and preparing contracts.
- Marketing
Support marketing teams by drafting social media copy, executing market research, and completing
campaign analysis.
## Next Step
After you complete the prerequisites, you are ready to create an app and configure the connector
using [Anypoint Studio](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-studio) or
[Anypoint Code Builder](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-config-acb).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.1
---
# Agentforce Connector 1.1 Reference
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
This connector provides connectivity to the AI agents running in Salesforce’s Agentforce platform.
## Configurations
---
### Config
Default configuration
#### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Name | | Name for this configuration. Connectors reference the configuration with this name. | | |
Connection | | Connection types to provide to this configuration. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Name | | The identifier of this element used to reference it in other components | | |
Expiration Policy | | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate. | | |
#### Connection Types
##### OAuth Client Credentials
###### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Proxy Configuration | | Configures a proxy for outbound connections. | | |
Max Connections | | Maximum number of outbound connections to keep open at the same time. | | |
Connection Timeout | | Amount of time to wait when initially establishing the TCP connection between the connector and Salesforce Agent before throwing an exception if the connection fails. | | |
Connection Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Timeout field. | | |
Connection Idle Timeout | | Number of units that a connection can remain idle before it is closed | | |
Connection Idle Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Idle Timeout field. | | |
TLS Configuration | | Protocol to use for communication. | | |
Reconnection | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Client Id | | OAuth client ID as registered with the service provider. | | |
Client Secret | | OAuth client secret as registered with the service provider. | | |
Token Url | | The service provider’s token endpoint URL. | https://{salesforceorg}/services/oauth2/token
| |
Scopes | | OAuth scopes to request during the OAuth dance. This value defaults to the scopes in the annotation. | | |
Object Store | | Configures the object store that stores data for each resource owner. If not configured, Mule uses the default object store. | | |
## Supported Operations
- [Continue Agent Conversation](#ContinueAgentConversation)
- [End Agent Conversation](#EndAgentConversation)
- [Start Agent Conversation](#StartAgentConversation)
- [Unauthorize](#Unauthorize)
## Operations
## Continue Agent Conversation
``
Surfaces the message from the MuleSoft application to the agent. The agent maintains the context of
the conversation and provides a relevant response (or actions) according to the user’s input.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Message | | | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Message Sequence Number | | Increase this number for each subsequent message in a session. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## End Agent Conversation
``
Use the **End agent conversation** operation to close the session after the agent responds.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Start Agent Conversation
``
Establishes the connection between the app and the agent. This is the first step to enable an
external application to interact with the AI agent.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Output Mime Type | | MIME type of the payload that this operation outputs. | | |
Output Encoding | | The encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Agent List | | | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Unauthorize
``
Deletes all the access token information of a given resource owner ID so that it’s impossible to
execute any operation for that user without doing the authorization dance again
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
### For Configurations
- [Config](#Config)
## Types
### Tls
| Field | Type | Description | Default Value | Required |
|---|
Enabled Protocols | | Comma-separated list of protocols enabled for this context. | | |
Enabled Cipher Suites | | Comma-separated list of cipher suites enabled for this context. | | |
Trust Store | | | | |
Key Store | | | | |
Revocation Check | | | | |
### Trust Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | The location (which will be resolved relative to the current classpath and file system, if possible) of the truststore. | | |
Password | | Password that protects the truststore. | | |
Type | | | | |
Algorithm | | Encryption algorithm that the truststore uses. | | |
Insecure | | If true, Mule stops performing certificate validations. Setting this to true can make connections vulnerable to attacks. | | |
### Key Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | Path to the keystore. Mule resolves the path relative to the current classpath and file system, if possible. | | |
Type | | | | |
Alias | | Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file. | | |
Key Password | | Password used to protect the private key. | | |
Password | | Password used to protect the keystore. | | |
Algorithm | | Encryption algorithm that the keystore uses. | | |
### Standard Revocation Check
Configures standard revocation checks for TLS certificates.
| Field | Type | Description | Default Value | Required |
|---|
Only End Entities | | Which elements to verify in the certificate chain: true
Verify only the last element in the certificate chain. false
Verify all elements in the certificate chain.
| | |
Prefer Crls | | How to check certificate validity: true
Check the Certification Revocation List (CRL) for certificate validity. false
Use the Online Certificate Status Protocol (OCSP) to check certificate validity.
| | |
No Fallback | | Whether to use the secondary method to check certificate validity: true
Use the method that wasn’t specified in the Prefer Crls field (the secondary method) to check certificate validity. false
Do not use the secondary method to check certificate validity.
| | |
Soft Fail | | What to do if the revocation server can’t be reached or is busy: true
Avoid verification failure. false
Allow the verification to fail.
| | |
### Expiration Policy
| Field | Type | Description | Default Value | Required |
|---|
Max Idle Time | | A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration | | |
Time Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| A time unit that qualifies the maxIdleTime attribute | | |
### Custom Ocsp Responder
| Field | Type | Description | Default Value | Required |
|---|
Url | | URL of the OCSP responder. | | |
Cert Alias | | Alias of the signing certificate for the OCSP response (must be in the truststore), if present. | | |
### Crl File
| Field | Type | Description | Default Value | Required |
|---|
Path | | | | |
### Reconnection
Configures a reconnection strategy for an operation.
| Field | Type | Description | Default Value | Required |
|---|
Fails Deployment | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Reconnection Strategy | | Reconnection strategy to use. | | |
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many
reconnection attempts the connector source or operation can make.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
Count | | How many reconnection attempts the Mule app can make. | | |
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to
reconnect at a specified frequency for as long as the Mule app runs.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
### Invoke Agent Response Attributes
| Field | Type | Description | Default Value | Required |
|---|
Messages | | | | |
### Message
| Field | Type | Description | Default Value | Required |
|---|
Content Safe | | | | |
Feedback Id | | | | |
Id | | | | |
Message | | | | |
Plan Id | | | | |
Reason | | | | |
Type | | | | |
### Repeatable In-Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX
buffer size. Always run performance tests to find the optimal buffer size for your specific use
case.
| Field | Type | Description | Default Value | Required |
|---|
Initial Buffer Size | | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max Buffer Size. | | |
Buffer Size Increment | | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. | | |
Max Buffer Size | | Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a STREAM_MAXIMUM_SIZE_EXCEEDED error. A value of less than or equal to 0 means no limit. | | |
Buffer Unit | | Unit for the Initial Buffer Size, Buffer Size Increment, and Max Buffer Size fields. | | |
### Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream
content in memory. If the stream content is larger than the configured buffer size, Mule backs up
the buffer’s content to disk and then clears the memory.
| Field | Type | Description | Default Value | Required |
|---|
In Memory Size | | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance: Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory. Configure a smaller buffer size to decrease memory load at the expense of response time.
| | |
Buffer Unit | | Unit for the In Memory Size field. | | |
### Error Mapping
| Field | Type | Description | Default Value | Required |
|---|
Source | ANY REDELIVERY_EXHAUSTED TRANSFORMATION EXPRESSION SECURITY CLIENT_SECURITY SERVER_SECURITY ROUTING CONNECTIVITY RETRY_EXHAUSTED TIMEOUT
| | | |
Target | | | | |
### Default Http Proxy Config
| Field | Type | Description | Default Value | Required |
|---|
Host | | | | |
Port | | | | |
Username | | | | |
Password | | | | |
Non Proxy Hosts | | | | |
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.1/)
---
product: Agentforce Connector
version: 1.1
---
# Agentforce Connector 1.1 XML and Maven Support
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Although you can manually code a Mule app in XML, it is more efficient to use Anypoint Code Builder
or Studio:
- If you manually code a Mule runtime engine (Mule) app in XML, either from the Anypoint Code
Builder or Studio XML editor, or from a text editor, you can access the connector from your app by
adding reference statements to both your XML Mule flow and the Apache Maven `pom.xml` file.
- If you add the connector in Anypoint Code Builder or Studio, the XML is automatically populated
the code with the connector’s namespace and schema location and it also adds a dependency to the
`pom.xml` file.
## Add a Namespace for the Connector
Paste the following code inside the `mule` tag of the header of your configuration XML:
```xml
http://www.mulesoft.org/schema/mule/ms-agentforce
http://www.mulesoft.org/schema/mule/ms-agentforce/current/mule-ms-agentforce.xsd
```
This example shows how the namespace statements are placed in the `` XML block:
```xml
```
## Add a POM File Dependency
The Apache Maven `pom.xml` file generated by Anypoint Code Builder and Studio contains dependencies
for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to
enable access to this connector:
```xml
com.mulesoft.connectors
mule4-agentforce-connector
x.x.x
mule-plugin
```
Replace `x.x.x` with the version that corresponds to the connector you’re using.
To get the most up-to-date `pom.xml` file information:
1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/).
2. In Exchange, click **Login** and supply your Anypoint Platform username and password.
3. In Exchange, search for `agentforce`.
4. Select the connector.
5. Click **Dependency Snippets** near the upper right of the screen.
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.1/)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference)
---
product: Agentforce Connector
version: 1.2
---
# Agentforce Connector 1.2
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Agentforce Connector provides MuleSoft developers with the ability to seamlessly integrate with AI
agents running in Salesforce’s Agentforce platform.
Agentforce Connector offers a group of capabilities that simplify agent integration in MuleSoft
applications.
Use this connector to:
- Build AI agents in a low-code environment.
- Authenticate with a Salesforce org and discover active agents.
- Start a new session with an AI agent application.
- Extend the power of Agentforce by surfacing prompts from external applications to AI agents
running in Salesforce.
- Orchestrate new, innovative experiences for your customers, partners and employees.
For information about compatibility and fixed issues, see the Agentforce Connector release notes.
## Before You Begin
To use this connector, you must be familiar with:
- Anypoint Connectors
- Mule runtime engine (Mule)
- Elements and global elements in a Mule flow
- How to create a Mule app using Anypoint Code Builder or Anypoint Studio
Before creating an app, you must have:
- Java 8, 11, or 17
- Apache Maven
- Anypoint Platform
- Credentials to connect with your Salesforce org
- The latest versions of Anypoint Code Builder or Anypoint Studio
To configure the connector, you must create a Connected App in Salesforce. For more information, see
[Get Started with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-get-started.html)
.
## Common Use Cases for the Connector
These are some common use cases for the connector:
- Customer Service
Increase human agents' productivity by having AI agents complete time-consuming tasks such as
reviewing case history, analyzing reported issues, and looking up other related information.
- Sales
Improve sales team efficacy by accelerating prospect research, generating customized collateral,
and preparing contracts.
- Marketing
Support marketing teams by drafting social media copy, executing market research, and completing
campaign analysis.
## Next Step
After you complete the prerequisites, you are ready to create an app and configure the connector
using [Anypoint Studio](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-studio) or
[Anypoint Code Builder](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-config-acb).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.2
---
# Agentforce Connector 1.2 Reference
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
This connector provides connectivity to the AI agents running in Salesforce’s Agentforce platform.
## Configurations
---
### Config
Default configuration
#### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Name | | Name for this configuration. Connectors reference the configuration with this name. | | |
Connection | | Connection types to provide to this configuration. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Name | | The identifier of this element used to reference it in other components | | |
Expiration Policy | | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate. | | |
#### Connection Types
##### OAuth Client Credentials
###### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Proxy Configuration | | Configures a proxy for outbound connections. | | |
Max Connections | | Maximum number of outbound connections to keep open at the same time. | | |
Connection Timeout | | Amount of time to wait when initially establishing the TCP connection between the connector and Salesforce Agent before throwing an exception if the connection fails. | | |
Connection Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Timeout field. | | |
Connection Idle Timeout | | Number of units that a connection can remain idle before it is closed | | |
Connection Idle Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Idle Timeout field. | | |
TLS Configuration | | Protocol to use for communication. | | |
Reconnection | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Client Id | | OAuth client ID as registered with the service provider. | | |
Client Secret | | OAuth client secret as registered with the service provider. | | |
Token Url | | The service provider’s token endpoint URL. | https://{salesforceorg}/services/oauth2/token
| |
Scopes | | OAuth scopes to request during the OAuth dance. This value defaults to the scopes in the annotation. | | |
Object Store | | Configures the object store that stores data for each resource owner. If not configured, Mule uses the default object store. | | |
## Supported Operations
- [Continue Agent Conversation](#ContinueAgentConversation)
- [End Agent Conversation](#EndAgentConversation)
- [Start Agent Conversation](#StartAgentConversation)
- [Unauthorize](#Unauthorize)
## Operations
## Continue Agent Conversation
``
Surfaces the message from the MuleSoft application to the agent. The agent maintains the context of
the conversation and provides a relevant response (or actions) according to the user’s input.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Message | | | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Message Sequence Number | | Increase this number for each subsequent message in a session. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## End Agent Conversation
``
Use the **End agent conversation** operation to close the session after the agent responds.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Start Agent Conversation
``
Establishes the connection between the app and the agent. This is the first step to enable an
external application to interact with the AI agent.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Output Mime Type | | MIME type of the payload that this operation outputs. | | |
Output Encoding | | The encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Agent List | | | | |
Bypass User | | Bypasses current user’s permissions when the agent needs to access Data Cloud assets. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Unauthorize
``
Deletes all the access token information of a given resource owner ID so that it’s impossible to
execute any operation for that user without doing the authorization dance again
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
### For Configurations
- [Config](#Config)
## Types
### Tls
| Field | Type | Description | Default Value | Required |
|---|
Enabled Protocols | | Comma-separated list of protocols enabled for this context. | | |
Enabled Cipher Suites | | Comma-separated list of cipher suites enabled for this context. | | |
Trust Store | | | | |
Key Store | | | | |
Revocation Check | | | | |
### Trust Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | The location (which will be resolved relative to the current classpath and file system, if possible) of the truststore. | | |
Password | | Password that protects the truststore. | | |
Type | | | | |
Algorithm | | Encryption algorithm that the truststore uses. | | |
Insecure | | If true, Mule stops performing certificate validations. Setting this to true can make connections vulnerable to attacks. | | |
### Key Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | Path to the keystore. Mule resolves the path relative to the current classpath and file system, if possible. | | |
Type | | | | |
Alias | | Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file. | | |
Key Password | | Password used to protect the private key. | | |
Password | | Password used to protect the keystore. | | |
Algorithm | | Encryption algorithm that the keystore uses. | | |
### Standard Revocation Check
Configures standard revocation checks for TLS certificates.
| Field | Type | Description | Default Value | Required |
|---|
Only End Entities | | Which elements to verify in the certificate chain: true
Verify only the last element in the certificate chain. false
Verify all elements in the certificate chain.
| | |
Prefer Crls | | How to check certificate validity: true
Check the Certification Revocation List (CRL) for certificate validity. false
Use the Online Certificate Status Protocol (OCSP) to check certificate validity.
| | |
No Fallback | | Whether to use the secondary method to check certificate validity: true
Use the method that wasn’t specified in the Prefer Crls field (the secondary method) to check certificate validity. false
Do not use the secondary method to check certificate validity.
| | |
Soft Fail | | What to do if the revocation server can’t be reached or is busy: true
Avoid verification failure. false
Allow the verification to fail.
| | |
### Expiration Policy
| Field | Type | Description | Default Value | Required |
|---|
Max Idle Time | | A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration | | |
Time Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| A time unit that qualifies the maxIdleTime attribute | | |
### Custom Ocsp Responder
| Field | Type | Description | Default Value | Required |
|---|
Url | | URL of the OCSP responder. | | |
Cert Alias | | Alias of the signing certificate for the OCSP response (must be in the truststore), if present. | | |
### Crl File
| Field | Type | Description | Default Value | Required |
|---|
Path | | | | |
### Reconnection
Configures a reconnection strategy for an operation.
| Field | Type | Description | Default Value | Required |
|---|
Fails Deployment | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Reconnection Strategy | | Reconnection strategy to use. | | |
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many
reconnection attempts the connector source or operation can make.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
Count | | How many reconnection attempts the Mule app can make. | | |
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to
reconnect at a specified frequency for as long as the Mule app runs.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
### Invoke Agent Response Attributes
| Field | Type | Description | Default Value | Required |
|---|
Messages | | | | |
### Message
| Field | Type | Description | Default Value | Required |
|---|
Collect | | | | |
Content Safe | | | | |
Feedback Id | | | | |
Id | | | | |
Message | | | | |
Plan Id | | | | |
Reason | | | | |
Type | | | | |
### Collect
| Field | Type | Description | Default Value | Required |
|---|
Data | | | | |
Target Property | | | | |
Target Type | | | | |
### Collect Data
| Field | Type | Description | Default Value | Required |
|---|
Property | | | | |
Type | | | | |
Value | | | | |
### Search Result
| Field | Type | Description | Default Value | Required |
|---|
S Object Info | | | | |
Data | | | | |
Id | | | | |
Record Type Id | | | | |
Title | | | | |
### S Object Info
| Field | Type | Description | Default Value | Required |
|---|
Api Name | | | | |
Label | | | | |
### Record Data
| Field | Type | Description | Default Value | Required |
|---|
Id | | | | |
Name | | | | |
Type | | | | |
### Record Field
| Field | Type | Description | Default Value | Required |
|---|
Display Value | | | | |
Value | | | | |
### Repeatable In-Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX
buffer size. Always run performance tests to find the optimal buffer size for your specific use
case.
| Field | Type | Description | Default Value | Required |
|---|
Initial Buffer Size | | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max Buffer Size. | | |
Buffer Size Increment | | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. | | |
Max Buffer Size | | Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a STREAM_MAXIMUM_SIZE_EXCEEDED error. A value of less than or equal to 0 means no limit. | | |
Buffer Unit | | Unit for the Initial Buffer Size, Buffer Size Increment, and Max Buffer Size fields. | | |
### Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream
content in memory. If the stream content is larger than the configured buffer size, Mule backs up
the buffer’s content to disk and then clears the memory.
| Field | Type | Description | Default Value | Required |
|---|
In Memory Size | | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance: Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory. Configure a smaller buffer size to decrease memory load at the expense of response time.
| | |
Buffer Unit | | Unit for the In Memory Size field. | | |
### Error Mapping
| Field | Type | Description | Default Value | Required |
|---|
Source | ANY REDELIVERY_EXHAUSTED TRANSFORMATION EXPRESSION SECURITY CLIENT_SECURITY SERVER_SECURITY ROUTING CONNECTIVITY RETRY_EXHAUSTED TIMEOUT
| | | |
Target | | | | |
### Default Http Proxy Config
| Field | Type | Description | Default Value | Required |
|---|
Host | | | | |
Port | | | | |
Username | | | | |
Password | | | | |
Non Proxy Hosts | | | | |
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.2/)
---
product: Agentforce Connector
version: 1.2
---
# Agentforce Connector 1.2 XML and Maven Support
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Although you can manually code a Mule app in XML, it is more efficient to use Anypoint Code Builder
or Studio:
- If you manually code a Mule runtime engine (Mule) app in XML, either from the Anypoint Code
Builder or Studio XML editor, or from a text editor, you can access the connector from your app by
adding reference statements to both your XML Mule flow and the Apache Maven `pom.xml` file.
- If you add the connector in Anypoint Code Builder or Studio, the XML is automatically populated
the code with the connector’s namespace and schema location and it also adds a dependency to the
`pom.xml` file.
## Add a Namespace for the Connector
Paste the following code inside the `mule` tag of the header of your configuration XML:
```xml
http://www.mulesoft.org/schema/mule/ms-agentforce
http://www.mulesoft.org/schema/mule/ms-agentforce/current/mule-ms-agentforce.xsd
```
This example shows how the namespace statements are placed in the `` XML block:
```xml
```
## Add a POM File Dependency
The Apache Maven `pom.xml` file generated by Anypoint Code Builder and Studio contains dependencies
for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to
enable access to this connector:
```xml
com.mulesoft.connectors
mule4-agentforce-connector
x.x.x
mule-plugin
```
Replace `x.x.x` with the version that corresponds to the connector you’re using.
To get the most up-to-date `pom.xml` file information:
1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/).
2. In Exchange, click **Login** and supply your Anypoint Platform username and password.
3. In Exchange, search for `agentforce`.
4. Select the connector.
5. Click **Dependency Snippets** near the upper right of the screen.
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/1.2/)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Agentforce Connector 1.3
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Agentforce Connector provides MuleSoft developers with the ability to seamlessly integrate with AI
agents running in Salesforce’s Agentforce platform.
Agentforce Connector offers a group of capabilities that simplify agent integration in MuleSoft
applications.
Use this connector to:
- Build AI agents in a low-code environment.
- Authenticate with a Salesforce org and discover active agents.
- Start a new session with an AI agent application.
- Extend the power of Agentforce by surfacing prompts from external applications to AI agents
running in Salesforce.
- Orchestrate new, innovative experiences for your customers, partners and employees.
For information about compatibility and fixed issues, see the Agentforce Connector release notes.
## Before You Begin
To use this connector, you must be familiar with:
- Anypoint Connectors
- Mule runtime engine (Mule)
- Elements and global elements in a Mule flow
- How to create a Mule app using Anypoint Code Builder or Anypoint Studio
Before creating an app, you must have:
- Java 8, 11, or 17
- Apache Maven
- Anypoint Platform
- Credentials to connect with your Salesforce org
- The latest versions of Anypoint Code Builder or Anypoint Studio
To configure the connector, you must create a Connected App in Salesforce. For more information, see
[Get Started with the Agent API](https://developer.salesforce.com/docs/ai/agentforce/guide/agent-api-get-started.html)
.
## Common Use Cases for the Connector
These are some common use cases for the connector:
- Customer Service
Increase human agents' productivity by having AI agents complete time-consuming tasks such as
reviewing case history, analyzing reported issues, and looking up other related information.
- Sales
Improve sales team efficacy by accelerating prospect research, generating customized collateral,
and preparing contracts.
- Marketing
Support marketing teams by drafting social media copy, executing market research, and completing
campaign analysis.
## Next Step
After you complete the prerequisites, you are ready to create an app and configure the connector
using [Anypoint Studio](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-studio) or
[Anypoint Code Builder](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-config-acb).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Agentforce Connector 1.3 Reference
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
This connector provides connectivity to the AI agents running in Salesforce’s Agentforce platform.
## Configurations
---
### Config
Default configuration
#### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Name | | Name for this configuration. Connectors reference the configuration with this name. | | |
Connection | | Connection types to provide to this configuration. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Name | | The identifier of this element used to reference it in other components | | |
Expiration Policy | | Configures the minimum amount of time that a dynamic configuration instance can remain idle before Mule considers it eligible for expiration. This does not mean that the instance expires at the exact moment that it becomes eligible. Mule purges the instances as appropriate. | | |
#### Connection Types
##### OAuth Client Credentials
Use OAuth 2.0 to delegate user authentication to the service hosting the user account. For more
information, refer to
[Configuring OAuth 2.0 for Connectors](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2),
[Configuring OAuth 2.0 for Connectors on CloudHub](https://docs.mulesoft.com/connectors/introduction/intro-config-oauth2-cloudhub),
or [OAuth Support in the SDK](https://docs.mulesoft.com/mule-sdk/latest/oauth).
###### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Proxy Configuration | | Configures a proxy for outbound connections. | | |
Max Connections | | Maximum number of outbound connections to keep open at the same time. | | |
Connection Timeout | | Amount of time to wait when initially establishing the TCP connection between the connector and Salesforce Agent before throwing an exception if the connection fails. | | |
Connection Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Timeout field. | | |
Connection Idle Timeout | | Number of units that a connection can remain idle before it is closed | | |
Connection Idle Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Connection Idle Timeout field. | | |
TLS Configuration | | Protocol to use for communication. | | |
Reconnection | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Client Id | | OAuth client ID as registered with the service provider. | | |
Client Secret | | OAuth client secret as registered with the service provider. | | |
Token Url | | The service provider’s token endpoint URL. | https://{salesforceorg}/services/oauth2/token
| |
Scopes | | OAuth scopes to request during the OAuth dance. This value defaults to the scopes in the annotation. | | |
Object Store | | Configures the object store that stores data for each resource owner. If not configured, Mule uses the default object store. | | |
## Supported Operations
- [Continue Agent Conversation (Deprecated)](#ContinueAgentConversation)
- [End Agent Conversation](#EndAgentConversation)
- [Send Message (Sync)](#SendMessageSync)
- [Start Agent Conversation](#StartAgentConversation)
- [Unauthorize](#Unauthorize)
## Operations
## Continue Agent Conversation (Deprecated)
``
Surfaces the message from the MuleSoft application to the agent. The agent maintains the context of
the conversation and provides a relevant response (or actions) according to the user’s input. The
**Continue Agent Conversation** operation is now deprecated. Use the
[**Send Message (Sync)**](#SendMessageSync) operation instead.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Message | | | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Message Sequence Number | | Increase this number for each subsequent message in a session. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_API\_ERROR
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:INVALID\_CONNECTION
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## End Agent Conversation
``
Use the **End agent conversation** operation to close the session after the agent responds.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_API\_ERROR
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:INVALID\_CONNECTION
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Send Message (Sync)
``
Sends a message to the agent and waits for a synchronous response.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Message | | | | |
Session Id | | Session ID returned with the Start agent conversation operation. | | |
Message Sequence Number | | Increase this number for each subsequent message in a session. | | |
Agent Variables | | Array of custom and context agent variables. | | |
Output Mime Type | | The MIME type of the payload that this operation outputs. | | |
Output Encoding | | Encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_API\_ERROR
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:INVALID\_CONNECTION
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Start Agent Conversation
``
Establishes the connection between the app and the agent. This is the first step to enable an
external application to interact with the AI agent.
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Output Mime Type | | MIME type of the payload that this operation outputs. | | |
Output Encoding | | The encoding of the payload that this operation outputs. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
Streaming Strategy | | Configures how Mule processes streams. Repeatable streams are the default behavior. | | |
Agent List | | | | |
Bypass User | | Bypasses current user’s permissions when the agent needs to access Data Cloud assets. | | |
Agent Variables | | Array of custom and context agent variables. | | |
Read Timeout | | | | |
Read Timeout Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| Time unit for the Read Timeout field. | | |
Target Variable | | Name of the variable that stores the operation’s output. | | |
Target Value | | Expression that evaluates the operation’s output. The expression outcome is stored in the target variable. | | |
Error Mappings | | | | |
Reconnection Strategy | | Retry strategy in case of connectivity errors. | | |
### Output
### For Configurations
- [Config](#Config)
### Throws
- MS-AGENTFORCE:AGENT\_API\_ERROR
- MS-AGENTFORCE:AGENT\_METADATA\_FAILURE
- MS-AGENTFORCE:AGENT\_OPERATIONS\_FAILURE
- MS-AGENTFORCE:CONNECTIVITY
- MS-AGENTFORCE:INVALID\_CONNECTION
- MS-AGENTFORCE:RETRY\_EXHAUSTED
## Unauthorize
``
Deletes all the access token information of a given resource owner ID so that it’s impossible to
execute any operation for that user without doing the authorization dance again
### Parameters
| Name | Type | Description | Default Value | Required |
|---|
Configuration | | Name of the configuration to use. | | |
Config Ref | | Name of the configuration to use to execute this component. | | |
### For Configurations
- [Config](#Config)
## Types
### Tls
| Field | Type | Description | Default Value | Required |
|---|
Enabled Protocols | | Comma-separated list of protocols enabled for this context. | | |
Enabled Cipher Suites | | Comma-separated list of cipher suites enabled for this context. | | |
Trust Store | | | | |
Key Store | | | | |
Revocation Check | | | | |
### Trust Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | The location (which will be resolved relative to the current classpath and file system, if possible) of the truststore. | | |
Password | | Password that protects the truststore. | | |
Type | | | | |
Algorithm | | Encryption algorithm that the truststore uses. | | |
Insecure | | If true, Mule stops performing certificate validations. Setting this to true can make connections vulnerable to attacks. | | |
### Key Store
| Field | Type | Description | Default Value | Required |
|---|
Path | | Path to the keystore. Mule resolves the path relative to the current classpath and file system, if possible. | | |
Type | | | | |
Alias | | Alias of the key to use when the keystore contains multiple private keys. By default, Mule uses the first key in the file. | | |
Key Password | | Password used to protect the private key. | | |
Password | | Password used to protect the keystore. | | |
Algorithm | | Encryption algorithm that the keystore uses. | | |
### Standard Revocation Check
Configures standard revocation checks for TLS certificates.
| Field | Type | Description | Default Value | Required |
|---|
Only End Entities | | Which elements to verify in the certificate chain: true
Verify only the last element in the certificate chain. false
Verify all elements in the certificate chain.
| | |
Prefer Crls | | How to check certificate validity: true
Check the Certification Revocation List (CRL) for certificate validity. false
Use the Online Certificate Status Protocol (OCSP) to check certificate validity.
| | |
No Fallback | | Whether to use the secondary method to check certificate validity: true
Use the method that wasn’t specified in the Prefer Crls field (the secondary method) to check certificate validity. false
Do not use the secondary method to check certificate validity.
| | |
Soft Fail | | What to do if the revocation server can’t be reached or is busy: true
Avoid verification failure. false
Allow the verification to fail.
| | |
### Expiration Policy
| Field | Type | Description | Default Value | Required |
|---|
Max Idle Time | | A scalar time value for the maximum amount of time a dynamic configuration instance should be allowed to be idle before it’s considered eligible for expiration | | |
Time Unit | NANOSECONDS MICROSECONDS MILLISECONDS SECONDS MINUTES HOURS DAYS
| A time unit that qualifies the maxIdleTime attribute | | |
### Custom Ocsp Responder
| Field | Type | Description | Default Value | Required |
|---|
Url | | URL of the OCSP responder. | | |
Cert Alias | | Alias of the signing certificate for the OCSP response (must be in the truststore), if present. | | |
### Crl File
| Field | Type | Description | Default Value | Required |
|---|
Path | | | | |
### Reconnection
Configures a reconnection strategy for an operation.
| Field | Type | Description | Default Value | Required |
|---|
Fails Deployment | | When the application is deployed, a connectivity test is performed on all connectors. If set to true, deployment fails if the test doesn’t pass after exhausting the associated reconnection strategy. | | |
Reconnection Strategy | | Reconnection strategy to use. | | |
### Reconnect
Configures a standard reconnection strategy, which specifies how often to reconnect and how many
reconnection attempts the connector source or operation can make.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
Count | | How many reconnection attempts the Mule app can make. | | |
### Reconnect Forever
Configures a forever reconnection strategy by which the connector source or operation attempts to
reconnect at a specified frequency for as long as the Mule app runs.
| Field | Type | Description | Default Value | Required |
|---|
Frequency | | How often to attempt to reconnect, in milliseconds. | | |
Blocking | | If false, the reconnection strategy runs in a separate, non-blocking thread. | | |
### Invoke Agent Response Attributes
| Field | Type | Description | Default Value | Required |
|---|
Messages | | | | |
### Message
| Field | Type | Description | Default Value | Required |
|---|
Collect | | | | |
Content Safe | | | | |
Feedback Id | | | | |
Id | | | | |
Message | | | | |
Plan Id | | | | |
Reason | | | | |
Type | | | | |
### Collect
| Field | Type | Description | Default Value | Required |
|---|
Data | | | | |
Target Property | | | | |
Target Type | | | | |
### Collect Data
| Field | Type | Description | Default Value | Required |
|---|
Property | | | | |
Type | | | | |
Value | | | | |
### Search Result
| Field | Type | Description | Default Value | Required |
|---|
S Object Info | | | | |
Data | | | | |
Id | | | | |
Record Type Id | | | | |
Title | | | | |
### S Object Info
| Field | Type | Description | Default Value | Required |
|---|
Api Name | | | | |
Label | | | | |
### Record Data
| Field | Type | Description | Default Value | Required |
|---|
Id | | | | |
Name | | | | |
Type | | | | |
### Record Field
| Field | Type | Description | Default Value | Required |
|---|
Display Value | | | | |
Value | | | | |
### Repeatable In-Memory Stream
Configures the in-memory streaming strategy by which the request fails if the data exceeds the MAX
buffer size. Always run performance tests to find the optimal buffer size for your specific use
case.
| Field | Type | Description | Default Value | Required |
|---|
Initial Buffer Size | | Initial amount of memory to allocate to the data stream. If the streamed data exceeds this value, the buffer expands by Buffer Size Increment, with an upper limit of Max Buffer Size. | | |
Buffer Size Increment | | This is by how much the buffer size expands if it exceeds its initial size. Setting a value of zero or lower means that the buffer should not expand, meaning that a STREAM_MAXIMUM_SIZE_EXCEEDED error is raised when the buffer gets full. | | |
Max Buffer Size | | Maximum size of the buffer. If the buffer size exceeds this value, Mule raises a STREAM_MAXIMUM_SIZE_EXCEEDED error. A value of less than or equal to 0 means no limit. | | |
Buffer Unit | | Unit for the Initial Buffer Size, Buffer Size Increment, and Max Buffer Size fields. | | |
### Repeatable File Store Stream
Configures the repeatable file-store streaming strategy by which Mule keeps a portion of the stream
content in memory. If the stream content is larger than the configured buffer size, Mule backs up
the buffer’s content to disk and then clears the memory.
| Field | Type | Description | Default Value | Required |
|---|
In Memory Size | | Maximum amount of memory that the stream can use for data. If the amount of memory exceeds this value, Mule buffers the content to disk. To optimize performance: Configure a larger buffer size to avoid the number of times Mule needs to write the buffer on disk. This increases performance, but it also limits the number of concurrent requests your application can process, because it requires additional memory. Configure a smaller buffer size to decrease memory load at the expense of response time.
| | |
Buffer Unit | | Unit for the In Memory Size field. | | |
### Error Mapping
| Field | Type | Description | Default Value | Required |
|---|
Source | ANY REDELIVERY_EXHAUSTED TRANSFORMATION EXPRESSION SECURITY CLIENT_SECURITY SERVER_SECURITY ROUTING CONNECTIVITY RETRY_EXHAUSTED TIMEOUT
| | | |
Target | | | | |
### Agent Response Metadata
| Field | Type | Description | Default Value | Required |
|---|
Links | | | | |
Messages Metadata | | | | |
### Links
| Field | Type | Description | Default Value | Required |
|---|
End | | | | |
Messages | | | | |
Self | | | | |
Session | | | | |
### Link
| Field | Type | Description | Default Value | Required |
|---|
Href | | | | |
### Message Metadata
| Field | Type | Description | Default Value | Required |
|---|
Expected | | | | |
Feedback Id | | | | |
Http Status | | | | |
Id | | | | |
Is Content Safe | | | | |
Metrics | | | | |
Plan Id | | | | |
Timestamp | | | | |
Trace Id | | | | |
Type | | | | |
### Variable
| Field | Type | Description | Default Value | Required |
|---|
Name | | | | |
Value | | | | |
Type | | | | |
### Default Http Proxy Config
| Field | Type | Description | Default Value | Required |
|---|
Host | | | | |
Port | | | | |
Username | | | | |
Password | | | | |
Non Proxy Hosts | | | | |
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/latest/)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Agentforce Connector 1.3 XML and Maven Support
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Although you can manually code a Mule app in XML, it is more efficient to use Anypoint Code Builder
or Studio:
- If you manually code a Mule runtime engine (Mule) app in XML, either from the Anypoint Code
Builder or Studio XML editor, or from a text editor, you can access the connector from your app by
adding reference statements to both your XML Mule flow and the Apache Maven `pom.xml` file.
- If you add the connector in Anypoint Code Builder or Studio, the XML is automatically populated
the code with the connector’s namespace and schema location and it also adds a dependency to the
`pom.xml` file.
## Add a Namespace for the Connector
Paste the following code inside the `mule` tag of the header of your configuration XML:
```xml
http://www.mulesoft.org/schema/mule/ms-agentforce
http://www.mulesoft.org/schema/mule/ms-agentforce/current/mule-ms-agentforce.xsd
```
This example shows how the namespace statements are placed in the `` XML block:
```xml
```
## Add a POM File Dependency
The Apache Maven `pom.xml` file generated by Anypoint Code Builder and Studio contains dependencies
for a Mule app. If you code a Mule app manually, include this XML snippet in your `pom.xml` file to
enable access to this connector:
```xml
com.mulesoft.connectors
mule4-agentforce-connector
x.x.x
mule-plugin
```
Replace `x.x.x` with the version that corresponds to the connector you’re using.
To get the most up-to-date `pom.xml` file information:
1. Go to [Anypoint Exchange](https://www.mulesoft.com/exchange/).
2. In Exchange, click **Login** and supply your Anypoint Platform username and password.
3. In Exchange, search for `agentforce`.
4. Select the connector.
5. Click **Dependency Snippets** near the upper right of the screen.
## See Also
- [Agentforce Connector Overview](https://docs.mulesoft.com/agentforce-connector/latest/)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference)
---
product: Agentforce Connector
version: 1.0
---
# Configuring Agent Operations for Agentforce Connector
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
## Configure the Start Agent Conversation Operation
The **Start agent conversation** operation establishes the connection between the app and the agent.
This is the first step to enable an external application to interact with the AI agent.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Agent list**
Select the agent to invoke. The list shows only agents that are currently active in the org.
The connector filters out any agents that aren’t in the `active` state.
### Output
The operation returns a session ID for the interaction between the app and the agent. The session ID
is used as an input for the **Continue agent conversation** operation.
## Configure the Continue Agent Conversation Operation
The **Continue agent conversation** operation enables the surfacing of the message from the MuleSoft
application to the agent. The agent maintains the context of the conversation and provides a
relevant response (or actions) according to the user’s input.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Message**
Enter plain text instructions to help the agent make decisions for different use cases.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation. This
is required to send the prompt defined in the **Message** field to the agent.
## Configure the End Agent Conversation Operation
Use the **End agent conversation** operation to close the session after the agent responds.
> [!NOTE] Sessions are closed automatically after three days of inactivity.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation.
## See Also
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.1
---
# Configuring Agent Operations for Agentforce Connector 1.1
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
## Configure the Start Agent Conversation Operation
The **Start agent conversation** operation establishes the connection between the app and the agent.
This is the first step to enable an external application to interact with the AI agent.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Agent list**
Select the agent to invoke. The list shows only agents that are currently active in the org.
The connector filters out any agents that aren’t in the `active` state.
### Output
The operation returns a session ID for the interaction between the app and the agent. The session ID
is used as an input for the **Continue agent conversation** operation.
## Configure the Continue Agent Conversation Operation
The **Continue agent conversation** operation surfaces the message from the MuleSoft application to
the agent. The agent maintains the context of the conversation and provides a relevant response (or
actions) according to the user’s input.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Message**
Enter plain text instructions to help the agent make decisions for different use cases.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation. This
is required to send the prompt defined in the **Message** field to the agent.
## Configure the End Agent Conversation Operation
Use the **End agent conversation** operation to close the session after the agent responds.
> [!NOTE] Sessions are closed automatically after three days of inactivity.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation.
## See Also
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.2
---
# Configuring Agent Operations for Agentforce Connector 1.2
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Use these guidelines to configure the **Start agent conversation**, **Continue agent conversation**,
and **End agent conversation** operations for Agentforce Connector.
## Configure the Start Agent Conversation Operation
The **Start agent conversation** operation establishes the connection between the app and the agent.
This is the first step to enable an external application to interact with the AI agent.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Agent list**
Select the agent to invoke. The list shows only agents that are currently active in the org.
The connector filters out any agents that aren’t in the `active` state.
- **Bypass User**
Select whether to use the agent-assigned user instead of the logged-in user. Setting this to
`True` allows the agent to use its own permissions to access the necessary Data Cloud assets.
This enables the agent to answer the user’s query even if you lack direct access.
### Output
The operation returns a session ID for the interaction between the app and the agent. The session ID
is used as an input for the **Continue agent conversation** operation.
## Configure the Continue Agent Conversation Operation
The **Continue agent conversation** operation surfaces the message from the MuleSoft application to
the agent. The agent maintains the context of the conversation and provides a relevant response (or
actions) according to the user’s input.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Message**
Enter plain text instructions to help the agent make decisions for different use cases.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation. This
is required to send the prompt defined in the **Message** field to the agent.
## Configure the End Agent Conversation Operation
Use the **End agent conversation** operation to close the session after the agent responds.
> [!NOTE] Sessions are closed automatically after three days of inactivity.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation.
## See Also
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Configuring Agent Operations for Agentforce Connector 1.3
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Use these guidelines to configure the **Start agent conversation**, **Send Message (Sync)**,
**Continue agent conversation (Deprecated)**, and **End agent conversation** operations for
Agentforce Connector.
## Configure the Start Agent Conversation Operation
The **Start agent conversation** operation establishes the connection between the app and the agent.
This is the first step to enable an external application to interact with the AI agent.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Agent list**
Select the agent to invoke. The list shows only agents that are currently active in the org.
The connector filters out any agents that aren’t in the `active` state.
- **Bypass User**
Select whether to use the agent-assigned user instead of the logged-in user. Setting this to
`True` allows the agent to use its own permissions to access the necessary Data Cloud assets.
This enables the agent to answer the user’s query even if you lack direct access.
- **Agent Variables**
Provide an array of custom or context variables to pass runtime values to the agent. Match
each variable name to the corresponding variable defined in Agent Builder.
### Output
The operation returns a session ID for the interaction between the app and the agent. The session ID
is used as an input for the **Continue agent conversation** operation.
## Configure the Send Message (Sync) Operation
The **Send Message (Sync)** operation sends a message from the MuleSoft application to the agent and
waits for a synchronous response. The agent maintains the context of the conversation and provides a
relevant response using a structured JSON payload that separates business data from metadata. This
operation replaces the deprecated [**Continue agent conversation**](#continue-agent) operation to
provide full access to all elements of the response payload.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Message**
Enter plain text instructions to help the agent make decisions for different use cases.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation. This
is required to send the prompt defined in the **Message** field to the agent.
- **Message Sequence Number**
Enter `1` for the first message in a session, and increment the value by `1` for each
subsequent message to preserve message order.
- **Agent Variables**
Provide an array of custom or context variables to pass runtime values to the agent. Match
each variable name to the corresponding variable defined in Agent Builder.
## Configure the Continue Agent Conversation Operation (Deprecated)
The **Continue agent conversation** operation surfaces the message from the MuleSoft application to
the agent. The agent maintains the context of the conversation and provides a relevant response (or
actions) according to the user’s input. The **Continue Agent Conversation** operation is now
deprecated. Use the [**Send Message (Sync)**](#SendMessageSync) operation instead.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Message**
Enter plain text instructions to help the agent make decisions for different use cases.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation. This
is required to send the prompt defined in the **Message** field to the agent.
## Configure the End Agent Conversation Operation
Use the **End agent conversation** operation to close the session after the agent responds.
> [!NOTE] Sessions are closed automatically after three days of inactivity.
1. Select the operation on the Anypoint Code Builder or Studio canvas.
2. In the **General** properties tab for the operation, enter these values:
- **Display Name**
Display name for the operation.
- **Connector Configuration**
Select the associated configuration for the connector.
- **Session ID**
Enter the session ID that was returned with the **Start agent conversation** operation.
## See Also
- [Using Anypoint Code Builder to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-acb)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.0
---
# Using Anypoint Code Builder to Configure Agentforce Connector
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Cloud IDE (Beta) is scheduled for retirement on August 31, 2026. August 30, 2026 is the last day you
can access Cloud IDE (Beta). Download your projects to work from Desktop IDE. Learn more in
[Migrate a Project from Cloud IDE to Desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/int-import-mule-project#migrate-cloud-to-desktop).
To use Anypoint Code Builder to configure a connector or module, create a basic integration project
in Anypoint Code Builder, add connectors and other components to your Mule application to process
your business logic, and configure the attributes.
## Before You Begin
Before creating an integration project, you must:
- [Set up and access the Anypoint Code Builder web or desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/start-acb)
- Have credentials to access the connector’s API
- Ensure that the Visual Studio Code Extension Pack for Java is installed.
To use this connector, you must be familiar with:
- The connector’s API
- Anypoint Connectors
- Mule runtime engine (Mule)
## Create a New Integration Project
To create a new integration project:
1. In the activity bar of the IDE, click the
 (**Anypoint Code
Builder**) icon.
2. From **Quick Actions**, click **Develop an Integration**:

3. Complete the following in the **Develop an Integration** form:
| Attribute | Value |
|---|
| Unique name for your project. This name is used as the title and name of the integration project file. For example, if the project name is "Salesforce Integration," the project file name is salesforce-integration. |
| Your home directory or another directory you create. Click Browse to select a different directory for the integration project. Don’t create the project within another project directory. |
4. Select the type of project to create by selecting either the **Empty Project** or **Template or
Example** card.
5. Select the **Mule runtime** and **Java Version** for your app.
6. Click **Create Project**.
## Add Components to Your Project
Add components to your integration project to build a flow:
1. In the **Explorer** view, open the XML file for your project, such as `my-project-name.xml`.
2. Select **Build a Flow** from the start card to create an empty flow:

3. Change the name of the flow:
1. Click **Flow**.
2. Click the edit icon.

3. Enter the flow name, and click the checkmark.
4. In the canvas UI, click the
 (**Add component**)
icon.
5. In the **Add Component** panel, search for and select your component from the results. The
following example shows the **Listener** component from the **HTTP** search results:

The configuration XML file now includes the XML for the HTTP Listener into the ``
element, for example:
```XML
```
## Configure the Trigger For the Flow
A trigger (source) starts the flow when specified conditions are met. If a connector has its own
associated sources, you can use a connector-specific trigger to initiate the flow. Each connector
trigger has a unique configuration.
You can configure the following sources for this connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an HTTP Listener trigger, follow these steps:
1. Click the **Listener** component on the canvas UI.
2. (Optional) Click the edit icon to change the name of the **Listener** component.
3. (Optional) If you created a configuration file for the connector, select it.
4. In the **General** tab, in the **Path** field, enter the relative path for the path set in the
HTTP configuration element. See
[Configure Paths](https://docs.mulesoft.com/http-connector/latest/http-listener-ref#configure-paths).
5. Select the **Advanced** tab to configure the following attributes:
| Attribute | Description | Required |
|---|
Allowed methods | To allow all HTTP methods (default), do not define this attribute. To restrict certain methods, specify all allowed HTTP methods, for example, GET, POST, as a comma-separated list. | No |
Response streaming mode | Whether to use streaming when the response is sent. | No |
Output MIME type | MIME type of the payload that this component outputs. | No |
Parameters | Appends a key-value pair for a reader property to the value of the Output MIME attribute. Multiple key-value pairs are allowed. | No |
Output encoding | Encoding of the payload that this component outputs. | No |
Streaming Strategy | Configures the way data streams are consumed in Mule apps. | No |
Primary node only | Select this option to execute the Listener trigger on the primary node only when running in a cluster. | No |
Redelivery policy | Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow. | No |
Reconnection strategy | When an operation in a Mule application fails to connect to an external server, the default behavior is for the operation to fail immediately and return a connectivity error. You can modify the default behavior by configuring the reconnection strategy for the operation. | No |
Response | See HTTP Response Attributes. | No |
Error Response | HTTP error response returns a status code for the error. | No |
Body | Body of the error message. | No |
Headers | Headers to include in the error message. | No |
Status code | Status code of the error response, for example, 500. | No |
Reason phrase | Reason for the error, for example, Gateway Timeout or Internal Server Error. | No |
## Add the Connector to Your Integration Project
1. In the Explorer view, open the configuration XML file for your project, such as
`my-project-name.xml`.
2. Click the
 (**Show
Mule graphical mode**) icon in the activity bar to open the canvas UI if it doesn’t open
automatically.
3. Add the connector the same way you added other components from the canvas UI:
1. In the canvas UI, click the
 (**Add component**)
icon.
2. In the **Add Component** panel, click **Connectors**.
4. Click the

(**Search in Exchange**) toggle:

5. Enter `agentforce` in the search box.
6. Select the connector to add it to your project.
Adding a connector to an integration project doesn’t make that connector available to other projects
in your Anypoint Code Builder workspace.
## Add a Global Configuration
1. In the configuration XML, place your cursor before the `` element and type `agentforce`.
Ensure that the cursor is not inside the `` element.
2. Select the `ms-agentforce:config` snippet:
The snippet adds the following code:
```xml
```
3. Add the attributes to complete the configuration, for example:
```xml
```
This example shows a flow named "Define\_Prompt" with two global elements defined
(`http:listener-config` and `ms-agentforce:config`)
```xml
```
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector actions you use.
For more information about configuring Agentforce Connector actions, see
[Configuring Agent Operations for Agentforce Connector](https://docs.mulesoft.com/agentforce-connector/1.0/configuring-agent-operations).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector](https://docs.mulesoft.com/agentforce-connector/1.0/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.1
---
# Using Anypoint Code Builder to Configure Agentforce Connector 1.1
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Cloud IDE (Beta) is scheduled for retirement on August 31, 2026. August 30, 2026 is the last day you
can access Cloud IDE (Beta). Download your projects to work from Desktop IDE. Learn more in
[Migrate a Project from Cloud IDE to Desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/int-import-mule-project#migrate-cloud-to-desktop).
To use Anypoint Code Builder to configure a connector or module, create a basic integration project
in Anypoint Code Builder, add connectors and other components to your Mule application to process
your business logic, and configure the attributes.
## Before You Begin
Before creating an integration project, you must:
- [Set up and access the Anypoint Code Builder web or desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/start-acb)
- Have credentials to access the connector’s API
- Ensure that the Visual Studio Code Extension Pack for Java is installed.
To use this connector, you must be familiar with:
- The connector’s API
- Anypoint Connectors
- Mule runtime engine (Mule)
## Create a New Integration Project
To create a new integration project:
1. In the activity bar of the IDE, click the
 (**Anypoint Code
Builder**) icon.
2. From **Quick Actions**, click **Develop an Integration**:

3. Complete the following in the **Develop an Integration** form:
| Attribute | Value |
|---|
| Unique name for your project. This name is used as the title and name of the integration project file. For example, if the project name is "Salesforce Integration," the project file name is salesforce-integration. |
| Your home directory or another directory you create. Click Browse to select a different directory for the integration project. Don’t create the project within another project directory. |
4. Select the type of project to create by selecting either the **Empty Project** or **Template or
Example** card.
5. Select the **Mule runtime** and **Java Version** for your app.
6. Click **Create Project**.
## Add Components to Your Project
Add components to your integration project to build a flow:
1. In the **Explorer** view, open the XML file for your project, such as `my-project-name.xml`.
2. Select **Build a Flow** from the start card to create an empty flow:

3. Change the name of the flow:
1. Click **Flow**.
2. Click the edit icon.

3. Enter the flow name, and click the checkmark.
4. In the canvas UI, click the
 (**Add component**)
icon.
5. In the **Add Component** panel, search for and select your component from the results. The
following example shows the **Listener** component from the **HTTP** search results:

The configuration XML file now includes the XML for the HTTP Listener into the ``
element, for example:
```XML
```
## Configure the Trigger For the Flow
A trigger (source) starts the flow when specified conditions are met. If a connector has its own
associated sources, you can use a connector-specific trigger to initiate the flow. Each connector
trigger has a unique configuration.
You can configure the following sources for this connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an HTTP Listener trigger, follow these steps:
1. Click the **Listener** component on the canvas UI.
2. (Optional) Click the edit icon to change the name of the **Listener** component.
3. (Optional) If you created a configuration file for the connector, select it.
4. In the **General** tab, in the **Path** field, enter the relative path for the path set in the
HTTP configuration element. See
[Configure Paths](https://docs.mulesoft.com/http-connector/latest/http-listener-ref#configure-paths).
5. Select the **Advanced** tab to configure the following attributes:
| Attribute | Description | Required |
|---|
Allowed methods | To allow all HTTP methods (default), do not define this attribute. To restrict certain methods, specify all allowed HTTP methods, for example, GET, POST, as a comma-separated list. | No |
Response streaming mode | Whether to use streaming when the response is sent. | No |
Output MIME type | MIME type of the payload that this component outputs. | No |
Parameters | Appends a key-value pair for a reader property to the value of the Output MIME attribute. Multiple key-value pairs are allowed. | No |
Output encoding | Encoding of the payload that this component outputs. | No |
Streaming Strategy | Configures the way data streams are consumed in Mule apps. | No |
Primary node only | Select this option to execute the Listener trigger on the primary node only when running in a cluster. | No |
Redelivery policy | Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow. | No |
Reconnection strategy | When an operation in a Mule application fails to connect to an external server, the default behavior is for the operation to fail immediately and return a connectivity error. You can modify the default behavior by configuring the reconnection strategy for the operation. | No |
Response | See HTTP Response Attributes. | No |
Error Response | HTTP error response returns a status code for the error. | No |
Body | Body of the error message. | No |
Headers | Headers to include in the error message. | No |
Status code | Status code of the error response, for example, 500. | No |
Reason phrase | Reason for the error, for example, Gateway Timeout or Internal Server Error. | No |
## Add the Connector to Your Integration Project
1. In the Explorer view, open the configuration XML file for your project, such as
`my-project-name.xml`.
2. Click the
 (**Show
Mule graphical mode**) icon in the activity bar to open the canvas UI if it doesn’t open
automatically.
3. Add the connector the same way you added other components from the canvas UI:
1. In the canvas UI, click the
 (**Add component**)
icon.
2. In the **Add Component** panel, click **Connectors**.
4. Click the

(**Search in Exchange**) toggle:

5. Enter `agentforce` in the search box.
6. Select the connector to add it to your project.
Adding a connector to an integration project doesn’t make that connector available to other projects
in your Anypoint Code Builder workspace.
## Add a Global Configuration
1. In the configuration XML, place your cursor before the `` element and type `agentforce`.
Ensure that the cursor is not inside the `` element.
2. Select the `ms-agentforce:config` snippet:
The snippet adds the following code:
```xml
```
3. Add the attributes to complete the configuration, for example:
```xml
```
This example shows a flow named "Define\_Prompt" with two global elements defined
(`http:listener-config` and `ms-agentforce:config`)
```xml
```
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector actions you use.
For more information about configuring Agentforce Connector actions, see
[Configuring Agent Operations for Agentforce Connector 1.1](https://docs.mulesoft.com/agentforce-connector/1.1/configuring-agent-operations).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.1](https://docs.mulesoft.com/agentforce-connector/1.1/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.2
---
# Using Anypoint Code Builder to Configure Agentforce Connector 1.2
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Cloud IDE (Beta) is scheduled for retirement on August 31, 2026. August 30, 2026 is the last day you
can access Cloud IDE (Beta). Download your projects to work from Desktop IDE. Learn more in
[Migrate a Project from Cloud IDE to Desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/int-import-mule-project#migrate-cloud-to-desktop).
To use Anypoint Code Builder to configure a connector or module, create a basic integration project
in Anypoint Code Builder, add connectors and other components to your Mule application to process
your business logic, and configure the attributes.
## Before You Begin
Before creating an integration project, you must:
- [Set up and access the Anypoint Code Builder web or desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/start-acb)
- Have credentials to access the connector’s API
- Ensure that the Visual Studio Code Extension Pack for Java is installed.
To use this connector, you must be familiar with:
- The connector’s API
- Anypoint Connectors
- Mule runtime engine (Mule)
## Create a New Integration Project
To create a new integration project:
1. In the activity bar of the IDE, click the
 (**Anypoint Code
Builder**) icon.
2. From **Quick Actions**, click **Develop an Integration**:

3. Complete the following in the **Develop an Integration** form:
| Attribute | Value |
|---|
| Unique name for your project. This name is used as the title and name of the integration project file. For example, if the project name is "Salesforce Integration," the project file name is salesforce-integration. |
| Your home directory or another directory you create. Click Browse to select a different directory for the integration project. Don’t create the project within another project directory. |
4. Select the type of project to create by selecting either the **Empty Project** or **Template or
Example** card.
5. Select the **Mule runtime** and **Java Version** for your app.
6. Click **Create Project**.
## Add Components to Your Project
Add components to your integration project to build a flow:
1. In the **Explorer** view, open the XML file for your project, such as `my-project-name.xml`.
2. Select **Build a Flow** from the start card to create an empty flow:

3. Change the name of the flow:
1. Click **Flow**.
2. Click the edit icon.

3. Enter the flow name, and click the checkmark.
4. In the canvas UI, click the
 (**Add component**)
icon.
5. In the **Add Component** panel, search for and select your component from the results. The
following example shows the **Listener** component from the **HTTP** search results:

The configuration XML file now includes the XML for the HTTP Listener into the ``
element, for example:
```XML
```
## Configure the Trigger For the Flow
A trigger (source) starts the flow when specified conditions are met. If a connector has its own
associated sources, you can use a connector-specific trigger to initiate the flow. Each connector
trigger has a unique configuration.
You can configure the following sources for this connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an HTTP Listener trigger, follow these steps:
1. Click the **Listener** component on the canvas UI.
2. (Optional) Click the edit icon to change the name of the **Listener** component.
3. (Optional) If you created a configuration file for the connector, select it.
4. In the **General** tab, in the **Path** field, enter the relative path for the path set in the
HTTP configuration element. See
[Configure Paths](https://docs.mulesoft.com/http-connector/latest/http-listener-ref#configure-paths).
5. Select the **Advanced** tab to configure the following attributes:
| Attribute | Description | Required |
|---|
Allowed methods | To allow all HTTP methods (default), do not define this attribute. To restrict certain methods, specify all allowed HTTP methods, for example, GET, POST, as a comma-separated list. | No |
Response streaming mode | Whether to use streaming when the response is sent. | No |
Output MIME type | MIME type of the payload that this component outputs. | No |
Parameters | Appends a key-value pair for a reader property to the value of the Output MIME attribute. Multiple key-value pairs are allowed. | No |
Output encoding | Encoding of the payload that this component outputs. | No |
Streaming Strategy | Configures the way data streams are consumed in Mule apps. | No |
Primary node only | Select this option to execute the Listener trigger on the primary node only when running in a cluster. | No |
Redelivery policy | Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow. | No |
Reconnection strategy | When an operation in a Mule application fails to connect to an external server, the default behavior is for the operation to fail immediately and return a connectivity error. You can modify the default behavior by configuring the reconnection strategy for the operation. | No |
Response | See HTTP Response Attributes. | No |
Error Response | HTTP error response returns a status code for the error. | No |
Body | Body of the error message. | No |
Headers | Headers to include in the error message. | No |
Status code | Status code of the error response, for example, 500. | No |
Reason phrase | Reason for the error, for example, Gateway Timeout or Internal Server Error. | No |
## Add the Connector to Your Integration Project
1. In the Explorer view, open the configuration XML file for your project, such as
`my-project-name.xml`.
2. Click the
 (**Show
Mule graphical mode**) icon in the activity bar to open the canvas UI if it doesn’t open
automatically.
3. Add the connector the same way you added other components from the canvas UI:
1. In the canvas UI, click the
 (**Add component**)
icon.
2. In the **Add Component** panel, click **Connectors**.
4. Click the

(**Search in Exchange**) toggle:

5. Enter `agentforce` in the search box.
6. Select the connector to add it to your project.
Adding a connector to an integration project doesn’t make that connector available to other projects
in your Anypoint Code Builder workspace.
## Add a Global Configuration
1. In the configuration XML, place your cursor before the `` element and type `agentforce`.
Ensure that the cursor is not inside the `` element.
2. Select the `ms-agentforce:config` snippet:
The snippet adds the following code:
```xml
```
3. Add the attributes to complete the configuration, for example:
```xml
```
This example shows a flow named "Define\_Prompt" with two global elements defined
(`http:listener-config` and `ms-agentforce:config`)
```xml
```
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector actions you use.
For more information about configuring Agentforce Connector actions, see
[Configuring Agent Operations for Agentforce Connector 1.2](https://docs.mulesoft.com/agentforce-connector/1.2/configuring-agent-operations).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.2](https://docs.mulesoft.com/agentforce-connector/1.2/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Using Anypoint Code Builder to Configure Agentforce Connector 1.3
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Cloud IDE (Beta) is scheduled for retirement on August 31, 2026. August 30, 2026 is the last day you
can access Cloud IDE (Beta). Download your projects to work from Desktop IDE. Learn more in
[Migrate a Project from Cloud IDE to Desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/int-import-mule-project#migrate-cloud-to-desktop).
To use Anypoint Code Builder to configure a connector or module, create a basic integration project
in Anypoint Code Builder, add connectors and other components to your Mule application to process
your business logic, and configure the attributes.
## Before You Begin
Before creating an integration project, you must:
- [Set up and access the Anypoint Code Builder web or desktop IDE](https://docs.mulesoft.com/anypoint-code-builder/start-acb)
- Have credentials to access the connector’s API
- Ensure that the Visual Studio Code Extension Pack for Java is installed.
To use this connector, you must be familiar with:
- The connector’s API
- Anypoint Connectors
- Mule runtime engine (Mule)
## Create a New Integration Project
To create a new integration project:
1. In the activity bar of the IDE, click the
 (**Anypoint Code
Builder**) icon.
2. From **Quick Actions**, click **Develop an Integration**:

3. Complete the following in the **Develop an Integration** form:
| Attribute | Value |
|---|
| Unique name for your project. This name is used as the title and name of the integration project file. For example, if the project name is "Salesforce Integration," the project file name is salesforce-integration. |
| Your home directory or another directory you create. Click Browse to select a different directory for the integration project. Don’t create the project within another project directory. |
4. Select the type of project to create by selecting either the **Empty Project** or **Template or
Example** card.
5. Select the **Mule runtime** and **Java Version** for your app.
6. Click **Create Project**.
## Add Components to Your Project
Add components to your integration project to build a flow:
1. In the **Explorer** view, open the XML file for your project, such as `my-project-name.xml`.
2. Select **Build a Flow** from the start card to create an empty flow:

3. Change the name of the flow:
1. Click **Flow**.
2. Click the edit icon.

3. Enter the flow name, and click the checkmark.
4. In the canvas UI, click the
 (**Add component**)
icon.
5. In the **Add Component** panel, search for and select your component from the results. The
following example shows the **Listener** component from the **HTTP** search results:

The configuration XML file now includes the XML for the HTTP Listener into the ``
element, for example:
```XML
```
## Configure the Trigger For the Flow
A trigger (source) starts the flow when specified conditions are met. If a connector has its own
associated sources, you can use a connector-specific trigger to initiate the flow. Each connector
trigger has a unique configuration.
You can configure the following sources for this connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an HTTP Listener trigger, follow these steps:
1. Click the **Listener** component on the canvas UI.
2. (Optional) Click the edit icon to change the name of the **Listener** component.
3. (Optional) If you created a configuration file for the connector, select it.
4. In the **General** tab, in the **Path** field, enter the relative path for the path set in the
HTTP configuration element. See
[Configure Paths](https://docs.mulesoft.com/http-connector/latest/http-listener-ref#configure-paths).
5. Select the **Advanced** tab to configure the following attributes:
| Attribute | Description | Required |
|---|
Allowed methods | To allow all HTTP methods (default), do not define this attribute. To restrict certain methods, specify all allowed HTTP methods, for example, GET, POST, as a comma-separated list. | No |
Response streaming mode | Whether to use streaming when the response is sent. | No |
Output MIME type | MIME type of the payload that this component outputs. | No |
Parameters | Appends a key-value pair for a reader property to the value of the Output MIME attribute. Multiple key-value pairs are allowed. | No |
Output encoding | Encoding of the payload that this component outputs. | No |
Streaming Strategy | Configures the way data streams are consumed in Mule apps. | No |
Primary node only | Select this option to execute the Listener trigger on the primary node only when running in a cluster. | No |
Redelivery policy | Configures the redelivery policy for executing requests that generate errors. You can add a redelivery policy to any source in a flow. | No |
Reconnection strategy | When an operation in a Mule application fails to connect to an external server, the default behavior is for the operation to fail immediately and return a connectivity error. You can modify the default behavior by configuring the reconnection strategy for the operation. | No |
Response | See HTTP Response Attributes. | No |
Error Response | HTTP error response returns a status code for the error. | No |
Body | Body of the error message. | No |
Headers | Headers to include in the error message. | No |
Status code | Status code of the error response, for example, 500. | No |
Reason phrase | Reason for the error, for example, Gateway Timeout or Internal Server Error. | No |
## Add the Connector to Your Integration Project
1. In the Explorer view, open the configuration XML file for your project, such as
`my-project-name.xml`.
2. Click the
 (**Show
Mule graphical mode**) icon in the activity bar to open the canvas UI if it doesn’t open
automatically.
3. Add the connector the same way you added other components from the canvas UI:
1. In the canvas UI, click the
 (**Add component**)
icon.
2. In the **Add Component** panel, click **Connectors**.
4. Click the

(**Search in Exchange**) toggle:

5. Enter `agentforce` in the search box.
6. Select the connector to add it to your project.
Adding a connector to an integration project doesn’t make that connector available to other projects
in your Anypoint Code Builder workspace.
## Add a Global Configuration
1. In the configuration XML, place your cursor before the `` element and type `agentforce`.
Ensure that the cursor is not inside the `` element.
2. Select the `ms-agentforce:config` snippet:
The snippet adds the following code:
```xml
```
3. Add the attributes to complete the configuration, for example:
```xml
```
This example shows a flow named "Define\_Prompt" with two global elements defined
(`http:listener-config` and `ms-agentforce:config`)
```xml
```
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector actions you use.
For more information about configuring Agentforce Connector actions, see
[Configuring Agent Operations for Agentforce Connector 1.3](https://docs.mulesoft.com/agentforce-connector/latest/configuring-agent-operations).
## See Also
- [Anypoint Connectors Overview](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.3](https://docs.mulesoft.com/agentforce-connector/latest/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.0
---
# Using Anypoint Studio to Configure Agentforce Connector 1.0
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and
configuration files.
To add and configure a connector in Studio:
1. [Create a Mule project](#create-mule-project).
2. [Add the connector to your Mule project](#add-connector-to-project).
3. [Configure a source for the connector’s flow](#configure-source).
4. [Add a connector operation to the flow](#add-connector-operation).
5. [Configure a global element for the connector](#configure-global-element).
6. [Configure the other connector fields](#configure-other-fields).
When you run the connector, you can view the app log to check for problems in real time, as
described in [View the App Log](#view-app-log).
If you are new to configuring connectors in Studio, see
[Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio).
If, after reading this topic, you need additional information about the connector fields, see the
[Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference).
## Create a Mule Project
In Studio, create a new Mule project in which to add and configure Anypoint Connector for Agentforce
(Agentforce Connector):
1. In Studio, select **File > New > Mule Project**.
2. Enter a name for your Mule project and click **Finish**.
## Add the Connector to Your Mule Project
Add Agentforce Connector to your Mule project to automatically populate the XML code with the
connector’s namespace and schema location and add the required dependencies to the project’s
`pom.xml` file:
1. In **Mule Palette**, click **(X) Search in Exchange**.
2. In **Add Dependencies to Project**, type `agentforce` in the search field.
3. Click **Agentforce Connector** in **Available modules**.
4. Click **Add**.
5. Click **Finish**.
Adding a connector to a Mule project in Studio doesn’t make that connector available to other
projects in your Studio workspace.
## Configure a Source
A source initiates a flow when a specified condition is met. You can configure one of these sources
to use with Agentforce Connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an **HTTP > Listener** source, follow these steps:
1. In **Mule Palette**, select **HTTP > Listener**.
2. Drag **Listener** to the Studio canvas.
3. On the **Listener** configuration screen, optionally change the value of the **Display Name**
field.
4. Specify a value for the **Path** field.
5. Click the plus sign (**+**) next to the **Connector configuration** field to configure a global
element that can be used by all instances of the **HTTP > Listener** source in the app.
6. On the **General** tab, specify the connection information for the connector.
7. On the **TLS** tab, optionally specify the TLS information for the connector.
8. On the **Advanced** tab, optionally specify reconnection information, including a reconnection
strategy.
9. Click **Test Connection** to confirm that Mule can connect with the specified server.
10. Click **OK**.
## Add a Connector Operation to the Flow
When you add a connector operation to your flow, you are specifying an action for that connector to
perform.
To add an operation for Agentforce Connector, follow these steps:
1. In **Mule Palette**, select **Agentforce Connector** and then select the operation to add.

2. Drag the operation onto the Studio canvas, next to the source.
## Configure a Global Element for the Connector
When you configure a connector, configure a global element that all instances of that connector in
the app can use. Configuring a global element requires you to provide the authentication credentials
that the connector requires to access the target system.
You can reference a configuration file that contains ANT-style property placeholders (recommended),
or you can enter your authorization credentials in the global configuration properties. For
information about the benefits of using property placeholders and how to configure them, see
[Anypoint Connector Configuration](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview).
To configure the global element for Agentforce Connector, follow these steps:
1. Select the operation in the Studio canvas.
2. On the properties screen for the operation, click the Add (**+**) icon to access the global
element configuration fields.
3. In the **Global Elements Properties > General** tab, enter:
- **Client Id**
The OAuth public client ID as registered with the service provider.
- **Client secret**
The OAuth client secret that corresponds to the client ID.
- **Token URL**
Service provider’s token endpoint URL.
- **Scopes**
The OAuth scopes to request during the OAuth dance.
4. Click **OK**.
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector operation you use.
## View the App Log
To check for problems, you can view the app log as follows:
- If you’re running the app from Anypoint Platform, the app log output is visible on the Anypoint
Studio console window.
- If you’re running the app using Mule from the command line, the app log output is visible in your
operating system console.
Unless the log file path is customized in the app’s log file (`log4j2.xml`), you can also view the
app log in the default location `MULE_HOME/logs/.log`. You can configure the location of
the log path in the app log file `log4j2.xml`.
## See Also
- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.0/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector](https://docs.mulesoft.com/agentforce-connector/1.0/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.1
---
# Using Anypoint Studio to Configure Agentforce Connector 1.1
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and
configuration files.
To add and configure a connector in Studio:
1. [Create a Mule project](#create-mule-project).
2. [Add the connector to your Mule project](#add-connector-to-project).
3. [Configure a source for the connector’s flow](#configure-source).
4. [Add a connector operation to the flow](#add-connector-operation).
5. [Configure a global element for the connector](#configure-global-element).
6. [Configure the other connector fields](#configure-other-fields).
When you run the connector, you can view the app log to check for problems in real time, as
described in [View the App Log](#view-app-log).
If you are new to configuring connectors in Studio, see
[Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio).
If, after reading this topic, you need additional information about the connector fields, see the
[Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference).
## Create a Mule Project
In Studio, create a new Mule project in which to add and configure Anypoint Connector for Agentforce
(Agentforce Connector):
1. In Studio, select **File > New > Mule Project**.
2. Enter a name for your Mule project and click **Finish**.
## Add the Connector to Your Mule Project
Add Agentforce Connector to your Mule project to automatically populate the XML code with the
connector’s namespace and schema location and add the required dependencies to the project’s
`pom.xml` file:
1. In **Mule Palette**, click **(X) Search in Exchange**.
2. In **Add Dependencies to Project**, type `agentforce` in the search field.
3. Click **Agentforce Connector** in **Available modules**.
4. Click **Add**.
5. Click **Finish**.
Adding a connector to a Mule project in Studio doesn’t make that connector available to other
projects in your Studio workspace.
## Configure a Source
A source initiates a flow when a specified condition is met. You can configure one of these sources
to use with Agentforce Connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an **HTTP > Listener** source, follow these steps:
1. In **Mule Palette**, select **HTTP > Listener**.
2. Drag **Listener** to the Studio canvas.
3. On the **Listener** configuration screen, optionally change the value of the **Display Name**
field.
4. Specify a value for the **Path** field.
5. Click the plus sign (**+**) next to the **Connector configuration** field to configure a global
element that can be used by all instances of the **HTTP > Listener** source in the app.
6. On the **General** tab, specify the connection information for the connector.
7. On the **TLS** tab, optionally specify the TLS information for the connector.
8. On the **Advanced** tab, optionally specify reconnection information, including a reconnection
strategy.
9. Click **Test Connection** to confirm that Mule can connect with the specified server.
10. Click **OK**.
## Add a Connector Operation to the Flow
When you add a connector operation to your flow, you are specifying an action for that connector to
perform.
To add an operation for Agentforce Connector, follow these steps:
1. In **Mule Palette**, select **Agentforce Connector** and then select the operation to add.

2. Drag the operation onto the Studio canvas, next to the source.
## Configure a Global Element for the Connector
When you configure a connector, configure a global element that all instances of that connector in
the app can use. Configuring a global element requires you to provide the authentication credentials
that the connector requires to access the target system.
You can reference a configuration file that contains ANT-style property placeholders (recommended),
or you can enter your authorization credentials in the global configuration properties. For
information about the benefits of using property placeholders and how to configure them, see
[Anypoint Connector Configuration](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview).
To configure the global element for Agentforce Connector, follow these steps:
1. Select the operation in the Studio canvas.
2. On the properties screen for the operation, click the Add (**+**) icon to access the global
element configuration fields.
3. In the **Global Elements Properties > General** tab, enter:
- **Client Id**
The OAuth public client ID as registered with the service provider.
- **Client secret**
The OAuth client secret that corresponds to the client ID.
- **Token URL**
Service provider’s token endpoint URL.
- **Scopes**
The OAuth scopes to request during the OAuth dance.
4. Click **OK**.
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector operation you use.
## View the App Log
To check for problems, you can view the app log as follows:
- If you’re running the app from Anypoint Platform, the app log output is visible on the Anypoint
Studio console window.
- If you’re running the app using Mule from the command line, the app log output is visible in your
operating system console.
Unless the log file path is customized in the app’s log file (`log4j2.xml`), you can also view the
app log in the default location `MULE_HOME/logs/.log`. You can configure the location of
the log path in the app log file `log4j2.xml`.
## See Also
- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.1/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.1](https://docs.mulesoft.com/agentforce-connector/1.1/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.2
---
# Using Anypoint Studio to Configure Agentforce Connector 1.2
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and
configuration files.
To add and configure a connector in Studio:
1. [Create a Mule project](#create-mule-project).
2. [Add the connector to your Mule project](#add-connector-to-project).
3. [Configure a source for the connector’s flow](#configure-source).
4. [Add a connector operation to the flow](#add-connector-operation).
5. [Configure a global element for the connector](#configure-global-element).
6. [Configure the other connector fields](#configure-other-fields).
When you run the connector, you can view the app log to check for problems in real time, as
described in [View the App Log](#view-app-log).
If you are new to configuring connectors in Studio, see
[Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio).
If, after reading this topic, you need additional information about the connector fields, see the
[Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference).
## Create a Mule Project
In Studio, create a new Mule project in which to add and configure Anypoint Connector for Agentforce
(Agentforce Connector):
1. In Studio, select **File > New > Mule Project**.
2. Enter a name for your Mule project and click **Finish**.
## Add the Connector to Your Mule Project
Add Agentforce Connector to your Mule project to automatically populate the XML code with the
connector’s namespace and schema location and add the required dependencies to the project’s
`pom.xml` file:
1. In **Mule Palette**, click **(X) Search in Exchange**.
2. In **Add Dependencies to Project**, type `agentforce` in the search field.
3. Click **Agentforce Connector** in **Available modules**.
4. Click **Add**.
5. Click **Finish**.
Adding a connector to a Mule project in Studio doesn’t make that connector available to other
projects in your Studio workspace.
## Configure a Source
A source initiates a flow when a specified condition is met. You can configure one of these sources
to use with Agentforce Connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an **HTTP > Listener** source, follow these steps:
1. In **Mule Palette**, select **HTTP > Listener**.
2. Drag **Listener** to the Studio canvas.
3. On the **Listener** configuration screen, optionally change the value of the **Display Name**
field.
4. Specify a value for the **Path** field.
5. Click the plus sign (**+**) next to the **Connector configuration** field to configure a global
element that can be used by all instances of the **HTTP > Listener** source in the app.
6. On the **General** tab, specify the connection information for the connector.
7. On the **TLS** tab, optionally specify the TLS information for the connector.
8. On the **Advanced** tab, optionally specify reconnection information, including a reconnection
strategy.
9. Click **Test Connection** to confirm that Mule can connect with the specified server.
10. Click **OK**.
## Add a Connector Operation to the Flow
When you add a connector operation to your flow, you are specifying an action for that connector to
perform.
To add an operation for Agentforce Connector, follow these steps:
1. In **Mule Palette**, select **Agentforce Connector** and then select the operation to add.

2. Drag the operation onto the Studio canvas, next to the source.
## Configure a Global Element for the Connector
When you configure a connector, configure a global element that all instances of that connector in
the app can use. Configuring a global element requires you to provide the authentication credentials
that the connector requires to access the target system.
You can reference a configuration file that contains ANT-style property placeholders (recommended),
or you can enter your authorization credentials in the global configuration properties. For
information about the benefits of using property placeholders and how to configure them, see
[Anypoint Connector Configuration](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview).
To configure the global element for Agentforce Connector, follow these steps:
1. Select the operation in the Studio canvas.
2. On the properties screen for the operation, click the Add (**+**) icon to access the global
element configuration fields.
3. In the **Global Elements Properties > General** tab, enter:
- **Client Id**
The OAuth public client ID as registered with the service provider.
- **Client secret**
The OAuth client secret that corresponds to the client ID.
- **Token URL**
Service provider’s token endpoint URL.
- **Scopes**
The OAuth scopes to request during the OAuth dance.
4. Click **OK**.
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector operation you use.
## View the App Log
To check for problems, you can view the app log as follows:
- If you’re running the app from Anypoint Platform, the app log output is visible on the Anypoint
Studio console window.
- If you’re running the app using Mule from the command line, the app log output is visible in your
operating system console.
Unless the log file path is customized in the app’s log file (`log4j2.xml`), you can also view the
app log in the default location `MULE_HOME/logs/.log`. You can configure the location of
the log path in the app log file `log4j2.xml`.
## See Also
- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/1.2/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.2](https://docs.mulesoft.com/agentforce-connector/1.2/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)
---
product: Agentforce Connector
version: 1.3
is-latest-version: true
---
# Using Anypoint Studio to Configure Agentforce Connector 1.3
> For the full documentation index, see: https://docs.mulesoft.com/llms.txt
Anypoint Studio (Studio) editors help you design and update your Mule applications, properties, and
configuration files.
To add and configure a connector in Studio:
1. [Create a Mule project](#create-mule-project).
2. [Add the connector to your Mule project](#add-connector-to-project).
3. [Configure a source for the connector’s flow](#configure-source).
4. [Add a connector operation to the flow](#add-connector-operation).
5. [Configure a global element for the connector](#configure-global-element).
6. [Configure the other connector fields](#configure-other-fields).
When you run the connector, you can view the app log to check for problems in real time, as
described in [View the App Log](#view-app-log).
If you are new to configuring connectors in Studio, see
[Using Anypoint Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio).
If, after reading this topic, you need additional information about the connector fields, see the
[Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference).
## Create a Mule Project
In Studio, create a new Mule project in which to add and configure Anypoint Connector for Agentforce
(Agentforce Connector):
1. In Studio, select **File > New > Mule Project**.
2. Enter a name for your Mule project and click **Finish**.
## Add the Connector to Your Mule Project
Add Agentforce Connector to your Mule project to automatically populate the XML code with the
connector’s namespace and schema location and add the required dependencies to the project’s
`pom.xml` file:
1. In **Mule Palette**, click **(X) Search in Exchange**.
2. In **Add Dependencies to Project**, type `agentforce` in the search field.
3. Click **Agentforce Connector** in **Available modules**.
4. Click **Add**.
5. Click **Finish**.
Adding a connector to a Mule project in Studio doesn’t make that connector available to other
projects in your Studio workspace.
## Configure a Source
A source initiates a flow when a specified condition is met. You can configure one of these sources
to use with Agentforce Connector:
- **HTTP > Listener**
Initiates a flow each time it receives a request on the configured host and port
- **Scheduler**
Initiates a flow when a time-based condition is met
For example, to configure an **HTTP > Listener** source, follow these steps:
1. In **Mule Palette**, select **HTTP > Listener**.
2. Drag **Listener** to the Studio canvas.
3. On the **Listener** configuration screen, optionally change the value of the **Display Name**
field.
4. Specify a value for the **Path** field.
5. Click the plus sign (**+**) next to the **Connector configuration** field to configure a global
element that can be used by all instances of the **HTTP > Listener** source in the app.
6. On the **General** tab, specify the connection information for the connector.
7. On the **TLS** tab, optionally specify the TLS information for the connector.
8. On the **Advanced** tab, optionally specify reconnection information, including a reconnection
strategy.
9. Click **Test Connection** to confirm that Mule can connect with the specified server.
10. Click **OK**.
## Add a Connector Operation to the Flow
When you add a connector operation to your flow, you are specifying an action for that connector to
perform.
To add an operation for Agentforce Connector, follow these steps:
1. In **Mule Palette**, select **Agentforce Connector** and then select the operation to add.

2. Drag the operation onto the Studio canvas, next to the source.
## Configure a Global Element for the Connector
When you configure a connector, configure a global element that all instances of that connector in
the app can use. Configuring a global element requires you to provide the authentication credentials
that the connector requires to access the target system.
You can reference a configuration file that contains ANT-style property placeholders (recommended),
or you can enter your authorization credentials in the global configuration properties. For
information about the benefits of using property placeholders and how to configure them, see
[Anypoint Connector Configuration](https://docs.mulesoft.com/connectors/introduction/intro-connector-configuration-overview).
To configure the global element for Agentforce Connector, follow these steps:
1. Select the operation in the Studio canvas.
2. On the properties screen for the operation, click the Add (**+**) icon to access the global
element configuration fields.
3. In the **Global Elements Properties > General** tab, enter:
- **Client Id**
The OAuth public client ID as registered with the service provider.
- **Client secret**
The OAuth client secret that corresponds to the client ID.
- **Token URL**
Service provider’s token endpoint URL.
- **Scopes**
The OAuth scopes to request during the OAuth dance.
4. Click **OK**.
## Configure Additional Connector Fields
After you configure a global element for the connector, configure the other required fields. The
required fields vary depending on which connector operation you use.
## View the App Log
To check for problems, you can view the app log as follows:
- If you’re running the app from Anypoint Platform, the app log output is visible on the Anypoint
Studio console window.
- If you’re running the app using Mule from the command line, the app log output is visible in your
operating system console.
Unless the log file path is customized in the app’s log file (`log4j2.xml`), you can also view the
app log in the default location `MULE_HOME/logs/.log`. You can configure the location of
the log path in the app log file `log4j2.xml`.
## See Also
- [Introduction to Anypoint Connectors](https://docs.mulesoft.com/connectors/introduction/introduction-to-anypoint-connectors)
- [Using Studio to Configure a Connector](https://docs.mulesoft.com/connectors/introduction/intro-config-use-studio)
- [Agentforce Connector Reference](https://docs.mulesoft.com/agentforce-connector/latest/agentforce-connector-reference)
- [Configuring Agent Operations for Agentforce Connector 1.3](https://docs.mulesoft.com/agentforce-connector/latest/configuring-agent-operations)
- [Salesforce Help](https://help.salesforce.com)