---
schema_version: "1"
id: c5ddbe6ad9b90325e8e68000846fc09dc86bb2ac1f9f3931e42ace93ea50aded
title: Configuring Agent Operations for Agentforce Connector
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/agentforce-connector/1.0/configuring-agent-operations.md
canonical_url: https://docs.mulesoft.com/agentforce-connector/1.0/configuring-agent-operations
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 991aa83912a0ce3c0dcbf6e7214aacd9cf2065e4a6e896b1e031d7b170fd2c7b
description: MuleSoft Documentation Site
release: "1.0"
latest: false
---
---
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)
