📗API [v4.0]
This page describes LIQA integration and API functions. Simply copy-paste code snippets into your application.
Quick start (Default integration)
Receive from Haut.AI URL for your LIQA integration:
"SOURCE_URL_PROVIDED_BY_HAUT.AI"
. It should always start fromhttps://
Embed the following lines into your application for default LIQA integration.
Change size of iframe window
By default, LIQA will create iframe
that takes all available window size. You can change the size of iframe
tag that LIQA uses by adjusting it in <style>
tag:
Change LIQA start properties
By default, LIQA uses predefined user flow and user interface (UI). You can redefine the properties by adjusting it in data-liqa-config
parameter of <script>
tag:
Supported start parameters
Change LIQA texts
By default, LIQA uses predefined texts to communicate with user on English language. You can redefine all the texts by passing new texts via Liqa.fn.setI18n()
method:
Supported text parameters
Catch events [under development]
This functionality is currently under development
By default, LIQA returns multiple events during its work to help your page to understand what is happening. You can subscribe to these events by using Liqa.fn.onEvent()
method:
Supported events
To be defined in the nearest updates.
Get image
LIQA returns as output a final approved user image, that passed through AI model quality criteria and was confirmed by the user. The image is encoded as base64
(a common image to bytes encoding method). You can collect image by using Liqa.fn.onImage()
method:
Full options example code
This example shows the most verbose version of LIQA integration:
Help needed?
We are continuously improving our product and we are happy to listen to your voice.
Last updated