# Action Usage

**Adding an Action to the Workflow**

* Open the workflow screen of the button you previously created.
* Click the “Click here to add an action” link and select the Aicado  AI Connector action from the list.

<figure><img src="/files/UHXMqqo8faxX9DOZtYq5" alt=""><figcaption></figcaption></figure>

### **Properties Area and Usage**

This section contains the essential information needed for the application to operate. You can select your desired AI model from the “AI Model” tab and enter the appropriate data. The fields designated for different data types are as follows:

1. **text1, text2:** For models that require text data.
2. **image1, image2:** For models that require image data.
3. **video1, video2:** For models that require video data.
4. **audio1, audio2:** For models that require audio data.

<figure><img src="/files/wGTqS7O35ziWdFKeUlju" alt=""><figcaption></figcaption></figure>

**For required inputs for each model, check the below page**

{% content-ref url="/pages/qgjJcl9ECofxUBdR2I1T" %}
[Available AI Models](/aicado-ai-connector-bubble.io/introduction/available-ai-models.md)
{% endcontent-ref %}

### **Your Webhook URL**

To process responses coming from the AI model, you need to define a “webhook response.” This requires the root URL of the Workflow API. To obtain the URL, follow these steps:

1. Go to **Settings > API**.
2. At the API page, append the event name you previously created in Backend Workflows to the root URL.
3. For example, if your event name is “get-response,” the URL might be formatted as `https://your-bubble-app-id.bubbleapps.io/api/1.1/wf/get-response`.

This way, the data coming from the AI model will be sent to your backend workflow via the defined webhook, and your application can perform the necessary operations based on it.

<figure><img src="/files/fzoLrzj588H3miYCI2yA" alt=""><figcaption><p>Sample webhook URL</p></figcaption></figure>

If you haven’t set up your webhook configuration yet, go to the page below:

{% content-ref url="/pages/YFHDCgqpmAsjHrCmvyBG" %}
[Webhook Configuration](/aicado-ai-connector-bubble.io/get-started/webhook-configuration.md)
{% endcontent-ref %}


---

# 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.aicado.ai/aicado-ai-connector-bubble.io/get-started/action-usage.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.
