Appearance
How to Enable the AI Feature
About 372 wordsAbout 1 min
2026-04-27
This guide explains how to enable the AI feature in the Datafor application. The steps vary depending on whether you are using Nginx as a reverse proxy or accessing the AI service directly.
1. Enable the AI Agent in Datafor
In the Datafor console, go to: Settings → System → AI Agent (Preview)
Switch AI Agent Status to On.
Click Save.
2. Without a Proxy
If you are not using a reverse proxy (such as Nginx), you can keep the default configuration.

- The AI Agent Server should be set to the
Fully Qualified Server URL(up to but not including the port) with port 28081 appended.

- If your configuration uses
localhost, replace it with your actual server IP address. - Ensure that port 28081 is open and accessible from client machines. Clients must be able to connect directly to the AI Agent service on this port.
3. Using Nginx as a Reverse Proxy
If you are using Nginx as a reverse proxy, add the following block to your configuration to support AI features:
server {
listen 443 ssl http2;
server_name xxx.xxx.com;
charset utf-8;
ssl_certificate /xxx/xxx.xxx.com.pem;
ssl_certificate_key /xxx/xxx.xxx.com.key;
ssl_session_cache shared:SSL:1m;
#ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location /datafor/ai/mcp_chat/start {
proxy_pass http://localhost:28080/datafor/ai/mcp_chat/start;
proxy_buffering off;
proxy_http_version 1.1;
proxy_cache off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
proxy_set_header X-Accel-Buffering no;
proxy_set_header Connection '';
}
location / {
client_max_body_size 1000m;
client_body_buffer_size 128k;
fastcgi_intercept_errors on;
proxy_pass http://localhost:28080/;
proxy_redirect http:// https://;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Real-PORT $remote_port;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}Notes:
client_max_body_size 1000m;allows large payloads required for AI operations.- The header settings ensure that client and protocol information is correctly forwarded.
Set the AI Agent Server Address . It is recommended to leave this field blank.

4. Completion
After completing these steps, the AI feature in Datafor will be enabled successfully, whether you are accessing the service directly or through Nginx.