Best extension for Craft CMS: an AI chatbot
Asyntai adds an AI customer support chat to your Craft CMS website. It answers visitor questions around the clock from your own pages, documents and FAQs. Start with 50 free AI replies per month.
- Answers from your content
- One script in your Twig layout
- No credit card required
How the Craft CMS extension goes live
You paste one script into your layout template. Everything else you set in the Asyntai dashboard.
- 01
Get your code
Create a free account. Your dashboard shows the embed code with your own widget ID.
- 02
Open your layout
In your Craft project, open the main layout file in
templates/, for example_layouts/main.twig. - 03
Paste and save
Paste the code just before the closing
</body>tag and save the file. - 04
Check your site
Open your site in a private window. The chat button shows in the bottom right corner.
Not seeing the widget? Make sure you edited the layout your pages use. If you use template caching, clear the cache in the Control Panel under Utilities, Clear Caches.
Three ways to place it in your Twig templates
Pick the one that fits how your project is built. All of them work on every Craft CMS edition.
Main layout
The chat shows on every page that uses this layout.- Open your project files with FTP, SSH or your code editor
- Find your main layout, such as
templates/_layout.twigor a file intemplates/_layouts/ - Paste the embed code just before the closing
</body>tag and save
<script>(function(){var l=function(){var s=document.createElement("script");s.src="https://widget.asyntai.com/static/js/chat-widget.js";s.async=true;s.setAttribute("data-asyntai-id","YOUR_WIDGET_ID");document.head.appendChild(s)};if(document.readyState==="complete"){l()}else{window.addEventListener("load",l)}})();</script>
Include file
Keep the code in its own file. Comment out one line to turn the chat off.- Create
templates/_includes/chatbot.twigand paste your embed code into it - In your main layout, include the file before
</body>and save both files
{% include '_includes/chatbot' %}
Only some pages
Use a Twig condition to load the chat on the pages or sections you pick.- Wrap the embed code in a Twig condition in your layout or page template
- Use an entry field, or check the URL segment of a section
{% if entry.showChatbot ?? true %}
{# your Asyntai embed code #}
{% endif %}
Every snippet with your own widget ID is in the Craft CMS installation guide.
Why choose the Asyntai extension for Craft CMS
An AI assistant that knows your Craft CMS site and follows your rules.
Answers from your content
It reads your Craft CMS pages, plus any PDF or text documents and Q&A pairs you add, and answers from them.
Always on
Visitors get an answer at any time of day or night, also when your team is offline.
Multilingual replies
The AI replies in the language the visitor writes in, which suits multi-site Craft projects.
Your tone and rules
Write custom instructions for your brand voice. The AI stays on your topics and declines unrelated questions.
No template changes later
Update colors, position, greeting and behavior in the dashboard. Your Twig code stays the same.
Chat logs and analytics
Read every conversation in your dashboard. See which questions visitors ask most.
Analytics on Starter and upOn the Standard and Pro plans you can also watch chats live and take over a conversation yourself.
Start free on your Craft CMS site
Every plan works on Craft CMS. Upgrade at any time as your site grows.
Pro also removes the Asyntai branding. Enterprise plans are sized to your needs. See all plans and prices
Questions about the Craft CMS extension
Need the full steps? Read the Craft CMS installation guide or email [email protected].
How do I add the extension to my Craft CMS website?
Create a free account and copy your embed code from the dashboard. Open your main layout template in the templates/ folder of your Craft project, paste the code just before the closing </body> tag and save the file.
Does it work on all Craft CMS editions?
Yes. You add the script to your own Twig layout template, and every Craft CMS edition uses Twig templates.
Where is my layout template?
It depends on your project. Common places are templates/_layout.twig, templates/_layouts/main.twig and templates/_base.twig. Look for the file that holds the closing </body> tag.
Can I customize the extension for my Craft CMS site?
Yes. You set the colors, position, greeting message and behavior in the Asyntai dashboard. Changes show on your site without editing your templates again.
How does the extension learn about my Craft CMS business?
You give it your site address and it reads your pages. You can also upload PDF or text documents, write custom instructions and add your own questions and answers. The AI answers from this content.
Will the extension slow down my Craft CMS site?
The embed code waits until your page has finished loading. Then it loads the chat widget in the background, so your page content shows first.
What happens when I reach my monthly limit?
We send you an email as you get close to your monthly AI reply limit. You can upgrade at any time from the dashboard, and the count starts again each month.
Can I use the extension on more than one Craft CMS website?
Yes. Free includes 1 website, Starter 2 websites, Standard 3 websites and Pro 20 websites. See the pricing page for details.
Ready to install the best Craft CMS extension?
Start free with 50 AI replies per month. No credit card required.