> For the complete documentation index, see [llms.txt](https://developer.acquire.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.acquire.io/master/js-api/quick-link-support/one-click-button.md).

# One Click Button

{% hint style="info" %}
Start video, audio and chat support with one click of button.
{% endhint %}

Copy the code on the right inside the body tag to customize a quick connection to support.

## Methods

| Method | Parameters | Type       | Description                               |
| ------ | ---------- | ---------- | ----------------------------------------- |
| max()  | video      | *`String`* | Starts a video call with widget maximized |
|        | audio      | *`String`* | Starts a audio call with widget maximized |
|        | text       | *`String`* | Starts a text chat with widget maximized  |

### Sample Code to embedd ( for video call )

```javascript
<a href="javascript:acquireIO.max('video')"> Start Video Call Now </a>
```

### Sample Code to embedd ( for audio call )

```javascript
<a href="javascript:acquireIO.max('audio')"> Start Audio Call Now </a>
```

### Sample Code to embedd ( for text chat )

```javascript
<a href="javascript:acquireIO.max('text')"> Start Text Chat Now </a>
```

## Quick Chat Link for Specific Agent

&#x20;To make a custom link to initiate chat with specific agent, use the following code to generate link.

### Embedd Code For Text Chat

```javascript
<a href="javascript:acquireIO.max('text',AGENT_ID)">Start the Chat</a>
```

#### &#x20;**Get AGENT\_ID**

&#x20;First login [Acquire dashboard](https://app.acquire.io/)  and open **Agents** and copy specific **`agent ID`**.

![Get Agent\_ID](/files/-LMlSP-UUCizUaNnI1IF)

#### Example:

```javascript
<a href="javascript:acquireIO.max('text',12823)">Start the Chat With Som</a>
```

### Embedd Code For Video Call

```javascript
<a href="javascript:acquireIO.max('video',AGENT_ID)"> Start Video Call Now </a>
```

#### Example:

```javascript
<a href="javascript:acquireIO.max('video',12823)"> Start Video Call Now </a>
```

### Embedd Code For Audio Call

```javascript
<a href="javascript:acquireIO.max('audio',AGENT_ID)"> Start Audio Call Now </a>
```

#### Example:

```javascript
<a href="javascript:acquireIO.max('audio',12823)"> Start Audio Call Now </a>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://developer.acquire.io/master/js-api/quick-link-support/one-click-button.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
