Publishing
Publish your agents for external consumption. Generate embed codes, configure chat widgets, and share agents with your users or customers.
What is Publishing?
Publishing makes your agent available outside of the Fluxgate dashboard. You can embed a chat widget on any website, generate shareable links, or create API endpoints for integration.
Publish an Agent
Publish Agentbash
curl -X POST http://localhost:8000/api/v1/publish/agents/AGENT_ID \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"visibility": "public",
"allowed_domains": ["example.com", "app.example.com"],
"rate_limit": { "max_messages": 100, "period": "hour" },
"branding": {
"title": "Support Assistant",
"welcome_message": "Hi! How can I help you?",
"theme_color": "#6366f1"
}
}'Get Embed Code
Get Embed Codebash
curl http://localhost:8000/api/v1/publish/agents/AGENT_ID/embed \
-H "Authorization: Bearer YOUR_API_KEY"Domain Restrictions
Use allowed_domains to restrict where your widget can be embedded. This prevents unauthorized use on third-party websites.