# X-Callback-URL

You can run any X-Callback-URL by creating a [terminal-command](../actions/custom-actions/terminal-command "mention") action like the one below.

<figure><img src="https://2980396867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkm2shtnhVydyNEDdxbX1%2Fuploads%2Fq2rFDFZymfaOxW7CHyOP%2FCleanShot%202024-10-15%20at%2013.35.55%402x.png?alt=media&#x26;token=fb32631e-799b-47b2-aa47-5ebfa9cffe8d" alt=""><figcaption><p>A very basic Terminal Command</p></figcaption></figure>

The command above uses the `open` Terminal Command to open a URL. Use [action-variables](../actions/action-variables "mention") to customize the url and give your AI more options.

### Controlling Inbox AI through x-callback-urls

Each action has a url assocoated with it. Right click the action to copy the url:

<figure><img src="https://2980396867-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fkm2shtnhVydyNEDdxbX1%2Fuploads%2Fr8Qoq9lJvCRVsjYyAwCY%2FCleanShot%202024-11-05%20at%2011.42.50%402x.png?alt=media&#x26;token=3d34f9d9-3937-4a53-9e0e-a059b0b5b1b9" alt=""><figcaption><p>Right click to get the x-callback-url of any action</p></figcaption></figure>

The URL looks like this:

```
inboxai://execute?action=STRING&xxx=STRING&originalInput=STRING
```

Where `action` is the id of the action, `originalInput` is the original import, and a set of variables (the AI variables defined for your action under "Edit variables").

Additionally, you can also trigger any assigned hotkey using one of these URLs:

```
inboxai://audio
inboxai://screenshot
inboxai://audio?action=STRING&originalInput=STRING
inboxai://screenshot?action=STRING
```

These will trigger a screenshot or audio action, including the associated UI. Note that you need to have a hotkey setup for each action you control this way (i.e. else you cannot stop/start recording)

{% hint style="info" %}
The screenshot and audio x-callback action do not support sending any ai variables.
{% endhint %}

