Running an AI Model
Last updated
Was this helpful?
Last updated
Was this helpful?
Aicado AI offers more than 25 models. Each of these models inside of AI connector action. Therefore, you can use this action for choosing the model you want at any time on your development flow.
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.
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:
text1, text2: For models that require text data.
image1, image2: For models that require image data.
video1, video2: For models that require video data.
audio1, audio2: For models that require audio data.
For required parameters for each model, check the AI models page.
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:
Go to Settings > API.
At the API page, append the event name you previously created in Backend Workflows to the root URL.
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.