Deploy to a Workflow via Dify
Dify is an open-source LLM application development platform with AI workflows, RAG pipelines, agents and model management. You can connect your WeClone clone to Dify and use it in workflows.
Deploy Dify: Install and configure it following the Dify documentation, or use the cloud service.
Start the WeClone server and generate a token: Follow Server and Bot Token. If Dify runs in Docker on Linux, add
--host 172.17.0.1:bashweclone-cli server --inference --port 8005 --host 172.17.0.1Configure the model provider: In Dify, go to Settings → Model Providers → OpenAI → Add Model and fill in:
- Model name:
gpt-3.5-turboor another GPT model name - API key: the generated token
- API base:
- Dify in Docker on Linux:
http://172.17.0.1:8005 - Dify on Docker Desktop (macOS, Windows):
http://host.docker.internal:8005 - Dify Cloud needs the local server exposed to the internet:
http://<public IP>:8005
- Dify in Docker on Linux:
WARNING
Exposing the local server to the internet is not recommended. The token decrypts all data. See Data Security.

- Model name:
Add a WeClone model node to a workflow: In the Dify workflow editor, add an LLM node, bind it to the model you just added (such as
gpt-3.5-turbo), and set its SYSTEM prompt to thedefault_systemused for fine-tuning. With the default configuration, enter:text请你扮演一名人类,不要说自己是人工智能
Your clone should now be connected to Dify. Chat with it to see how it does.