# URL action

The URL action takes an URL of a website. Keep in mind that if the URL has a different domain of the URL of the current page, it will open a new window/tab; otherwise, it will just replace the current page.

#### Custom Variables

You can use custom variables inside the URL. For example, you can add `company_id` into the URL like this: `https://{{company_id}}.mydomain.com/dash` .&#x20;

However, for this to work, you need to set the variable first. For example, to use `{{company_id}}` in the URL, you need to call&#x20;

```javascript
window.Alvis("update", {
  company_id: "ACMEINC"
}
```

in your code. The URL will become `https://ACMEINC.mydomain.com/dash` when the end-user clicks it.

You can add the code right after the company information is present.

#### Intercom Product Tour Link

You can also use an [Intercom Product Tour link here](https://www.intercom.com/help/en/articles/2901144-share-your-product-tours#h_993fa3d9b0). Make sure it is published and the “Use tour everywhere” section must be turned on.

#### Calendly URL

We integrate with Calendly, so if you put a Calendly booking URL here, when a user clicks "Start", the user will see a popup showing the Calendly booking page.\
![](/files/b5CTDsDlrGQVAX7jEsw4)

#### Image URL

If you put an image URL here (ends with `jpeg|jpg|gif|png`), the image will be shown right away under description.


---

# Agent Instructions: 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:

```
GET https://docs.checklist.getalvis.com/checklist-item-actions/url-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
