> For the complete documentation index, see [llms.txt](https://docs.frontnow.com/advise/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frontnow.com/advise/2/integration/methods.md).

# Methods

## open()

Opens the Frontnow Advisor widget.

**Example usage:**

```javascript
advisor.open();
```

## close()

Closes the Frontnow Advisor widget.

**Example usage:**

```javascript
advisor.close();
```

## hideLauncher()

Hides the Frontnow Advisor launcher icon.

**Example usage:**

```javascript
advisor.hideLauncher();
```

## showLauncher()

Shows the Frontnow Advisor launcher icon.

**Example usage:**

```javascript
advisor.showLauncher();
```

## goto(*path*)

Changes the page of the Frontnow Advisor to a cached page.

**Example usage:**

```javascript
advisor.goto("path/to/page");
```

## prompt(*prompt*)

Fills the input field of the Frontnow Advisor with the provided question and requests the answer. This question will be run dynamically, so it will take longer than providing the cached path to a page with the [`goto`](#goto-path) method.

**Example usage:**

```javascript
advisor.prompt("This question will be answered dynamically?");
```

## destroy()

Removes all instances and elements of the Frontnow Advisor on the website.

**Example usage:**

```javascript
advisor.destroy()
```

These Actions provide developers with fine-grained control over the functionality and appearance of Frontnow Advisor. By using these Actions, you can create a custom experience for your website visitors that is tailored to your specific needs and requirements.


---

# 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://docs.frontnow.com/advise/2/integration/methods.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.
