Contao Integration
Add the chat to every page of your Contao website
Yleiskatsaus
The Asyntai extension adds two fields to your Contao settings. Paste your widget ID into the first one and the chat bubble appears on every front end page of the site. You do not edit a template, a layout or an article, and nothing is added to the Contao back end.
Asennus
Installing takes about five minutes and needs someone who can install extensions on the site.
Create your assistant
Open a free Asyntai account, add your website address and let it read your pages. Upload price lists, terms or manuals as well if the answers live in documents.
Install the extension
Open the Contao Manager, search for Asyntai and install the package. If you deploy from the command line, use Composer instead:
composer require asyntai/contao-chatbot-bundle
Then run the usual database update, as you would after any other extension.
Paste your widget ID
In the Contao back end go to System, then Settings. You will find a section called Asyntai AI chatbot. Paste the snippet from your Asyntai dashboard into the Asyntai widget ID field and save.
Open your website
Load any front end page. The chat bubble appears in the corner. Ask it a question about your business to see the answer it gives.
Vinkki: You can paste the whole snippet from the dashboard. The extension takes the widget ID out of it and stores only that.
Where the Script Goes
The extension uses Contao's generatePage hook and adds one small script at the end of the body on front end pages. Your templates stay untouched, so a Contao update can never overwrite the change. The script waits for the page load event before it fetches anything, so your own content is always drawn first.
The Settings Fields
Asyntai widget ID: the ID of the website you want to answer with. Leave it empty to switch the chat off again.
Script address: leave this empty. It exists only for the rare case where you serve the widget from your own address.
Käytöstä poistaminen
Clear the widget ID field and save. The script stops appearing on the next page load. There is no cache to clear and no markup left behind. You can also uninstall the extension in the Contao Manager; it creates no database tables, so nothing is left over.
Several Client Sites
The setting belongs to the Contao installation, so each site has its own widget ID. Give every client their own website in Asyntai and each site answers from its own content, with its own chat history and its own leads.
Vaatimukset
- Contao 5.3 or later
- PHP 8.2 or later
- An Asyntai account with your content added
Huomautus: The extension is free and open source under the MIT licence. You pay only for your Asyntai plan, where each answer counts as one message.
Older Contao Versions
On Contao 4 the extension is not supported. You can still use Asyntai there: copy the snippet from your dashboard and paste it into your page layout, in the field for scripts before the end of the body.
Tarvitsetko apua?
Write to us at [email protected] and we will help you get it running.