> ## Documentation Index
> Fetch the complete documentation index at: https://www.algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Suggested Actions API client

> Retrieve recommended actions that can improve your search with the Suggested Actions API client.

This is a **beta feature** according to [Algolia's Terms of Service ("Beta Services")](https://www.algolia.com/policies/terms/).

The Suggested Actions API client is available for JavaScript.
It's part of the `@algolia/suggested-actions` package.
To install it, run:

```sh Command line icon=square-terminal theme={"system"}
npm install @algolia/suggested-actions
```

To use this client, run:

```js JavaScript icon=code theme={"system"}
import { suggestedActionsClient } from "@algolia/suggested-actions";

const client = suggestedActionsClient(
  "ALGOLIA_APPLICATION_ID",
  "ALGOLIA_API_KEY",
  "ALGOLIA_APPLICATION_REGION",
);
```

Replace `ALGOLIA_APPLICATION_REGION` with the region of your Algolia application: `us` for the United States or `eu` for Europe.
