Dify Integration
Give your Dify agent the knowledge of a whole website
Overview
Dify is a platform for building AI apps and agents. The Asyntai plugin gives those agents a website to draw on.
Point Asyntai at a domain. Asyntai crawls the site, reads the product feed, and keeps both fresh. Your Dify agent then asks that website a question and gets the answer a visitor would get, built from the real pages and the real prices.
The same plugin opens the other side of the website: the chats visitors had, and the email addresses and phone numbers they left.
Tools
The plugin adds six tools to Dify:
- Ask the website — answers a question from the website's pages, products and knowledge base.
- Add a page to the knowledge base — reads a URL and stores its content.
- Add a note to the knowledge base — stores a title and a text you write.
- List leads — returns visitors who left an email address or a phone number, newest first.
- Read a chat — returns every message of one website chat, in order.
- List websites — returns each website on the account with its ID and domain.
Requirements
- A Dify workspace, on Dify Cloud or self-hosted
- An Asyntai account on the Starter plan or higher, because the plugin uses the Asyntai API
Installation
Follow these steps to add Asyntai to Dify:
Get Your API Key
Sign in to Asyntai, open Settings, then API, and copy your API key.
Install the Plugin
In Dify, open Plugins, go to the Marketplace, search for Asyntai, and press Install.
Paste the API Key
Open Tools, choose Asyntai, and press To authorize. Paste your key and save. Dify checks the key against your account at once.
Add a Tool to an Agent
Open an agent or a workflow, add a Tool node, and choose Asyntai. Start with Ask the website.
Working With Several Websites
Every tool takes an optional Website ID. Leave it empty and the tool uses the primary website on the account.
Run List websites once to see the ID of each website, then set the ID on the tool. One Asyntai account holds many websites, so one Dify workspace can serve many clients.
Keeping the Conversation
Ask the website takes a Session ID. Send the same value on every turn and Asyntai keeps the history of that conversation, so the agent can answer a follow-up question.
Tip: Chain the tools. List leads gives you a session ID, Read a chat shows what that visitor asked, and your workflow writes a reply that continues the conversation.
Removing It
In Dify, open Plugins, choose Asyntai, and press Uninstall. Every tool node that used it stops at once, so remove those nodes as well.
Plans & Pricing
The plugin is free. It uses the Asyntai API, which needs the Starter plan or higher. View pricing.
Need Help?
If you have any questions or run into issues, contact us at [email protected].