---
schema_version: "1"
id: 28432ca1e20fb9928e8efaf59a47577fb6731919eca8b0662de8327cca1b2dcc
title: Agentforce Conversation Client API
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/lwc/components/lightning/accApi/lightning-acc-api.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/lightning-acc-api.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9cbde5ed0beb60220a0cb0c9d5c817ab4333adce8cb5b750aad7995fba5627ac
products:
  - Lightning Component Reference
---
# Agentforce Conversation Client API

**`lightning/accApi`**

Manages the state of the Agentforce side panel. The `lightning/accApi` module requires API version 59.0 or later.

**For Use In**

Lightning Experience

::::::tabset{tabs='[ "Develop", "Specifications" ]'}

:::::tab
The `lightning/accApi` module includes methods to work with the Agentforce panel in Lightning Experience.

To use the Agentforce Conversation Client API in your component, import the module in your component's JavaScript file.

```js
import {
  open,
  close,
  execute
  ...
} from "lightning/accApi";
```

For this module's specification and examples, see the [Agentforce Conversation Client Developer Guide](https://developer.salesforce.com/docs/platform/accsdk/guide/).

:::::

:::::tab
::component-specification{component="accApi" model="lwc" namespace="lightning"}

:::::

::::::
