Yükleniyor...
Yükleniyor...
Chatbot widget integration, REST API reference, webhook setup and code examples.
Embed an AI chatbot on any site with a single script tag. No framework dependency, <10KB vanilla JS.
Paste it right before the closing </body> tag.
The data-sector attribute activates a sector-trained chatbot.
Choose dark, light or brand theme with data-theme.
<script
src="https://duzenal.com/widget/cortex-chat.js"
data-sector="plastic-surgery"
data-theme="dark"
data-position="right">
</script>| Attribute | Type | Default | Description |
|---|---|---|---|
| data-sector | string | "general" | Sector slug (e.g. plastic-surgery, dental-clinic) |
| data-theme | "dark" | "light" | "brand" | "dark" | Widget color theme |
| data-position | "right" | "left" | "right" | Screen position |
| data-host | string | "https://duzenal.com" | API host (for self-hosted) |
<!-- All configuration options -->
<script
src="https://duzenal.com/widget/cortex-chat.js"
data-sector="plastic-surgery"
data-theme="dark"
data-position="right"
data-host="https://duzenal.com">
</script>Widget CSS is sandboxed and won't affect your site's styles.
Dark
For dark interfaces
Light
For light themes
Brand
Cortex brand colors
Programmatic access to the Cortex platform. All endpoints return JSON.
| Method | Endpoint | Description | Try it |
|---|---|---|---|
| GET | /api/pdf/{slug} | Download sector presentation PDF | |
| GET | /api/video/{slug} | Stream sector demo video | |
| POST | /api/chatbot/message | Send message to chatbot | |
| POST | /api/chatbot/webhook | Register webhook URL | |
| GET | /api/chatbot/sessions/{id} | Session history | |
| GET | /api/sectors | List all sectors | |
| GET | /api/sectors/{slug} | Sector details |
# PDF Download
GET /api/pdf/{slug}
# Example
curl -O https://duzenal.com/api/pdf/plastic-surgery
# Response: application/pdf binary streamSupports partial download with Range header.
# Video Streaming
GET /api/video/{slug}
# Example
curl https://duzenal.com/api/video/dental-clinic -o demo.mp4
# Response: video/mp4 stream, Range header supportedIntegrate the chatbot into your own application. Send messages, receive notifications via webhooks.
POST /api/chatbot/message
Content-Type: application/json
{
"sector": "plastic-surgery",
"message": "What are rhinoplasty prices?",
"session_id": "optional-session-id",
"metadata": {
"user_name": "John",
"source": "website"
}
}
# Response
{
"reply": "Rhinoplasty prices vary ...",
"session_id": "ses_abc123",
"confidence": 0.94,
"suggested_actions": [
{ "type": "appointment", "label": "Book Appointment" },
{ "type": "link", "label": "Price List", "url": "/pricing" }
]
}Register webhooks for lead capture, appointment creation and message events.
POST /api/chatbot/webhook
Content-Type: application/json
{
"url": "https://yoursite.com/api/cortex-webhook",
"events": ["message.received", "appointment.created", "lead.captured"],
"secret": "wh_sec_your_signing_secret"
}
# Webhook Payload Example
{
"event": "lead.captured",
"timestamp": "2026-05-27T14:30:00Z",
"data": {
"name": "John Smith",
"phone": "+15551234567",
"sector": "plastic-surgery",
"interest": "Rhinoplasty",
"session_id": "ses_abc123"
},
"signature": "sha256=..."
}Security: Every webhook request includes an X-Cortex-Signature header with an HMAC-SHA256 signature.
Integrate Düzenal into your application with the official SDK. TypeScript/JavaScript support.
npm install @cortex-ai/sdkimport { CortexClient } from "@cortex-ai/sdk";
const client = new CortexClient({
apiKey: "YOUR_API_KEY",
});
// Send a message
const response = await client.chat("Hello");
console.log(response.reply);
// Send with sector context
const sectorResponse = await client.chat("I want to book an appointment", {
sector: "plastic-surgery",
sessionId: "optional-session-id",
});
console.log(sectorResponse.reply);
console.log(sectorResponse.confidence);API Key: Get your API key from the Settings > API Keys page.
Ready-to-use integration examples for different frameworks.
Simplest integration. Paste into any HTML page.
<script
src="https://duzenal.com/widget/cortex-chat.js"
data-sector="plastic-surgery"
data-theme="dark"
data-position="right">
</script>Use as a component. Cleanup is automatic.
import { useEffect } from "react";
export function CortexWidget({ sector = "general", theme = "dark" }) {
useEffect(() => {
if (document.getElementById("cortex-chat-widget")) return;
const script = document.createElement("script");
script.src = "https://duzenal.com/widget/cortex-chat.js";
script.setAttribute("data-sector", sector);
script.setAttribute("data-theme", theme);
document.body.appendChild(script);
return () => {
const el = document.getElementById("cortex-chat-widget");
if (el) el.remove();
};
}, [sector, theme]);
return null;
}Composition API integration.
<script setup>
import { onMounted, onUnmounted } from "vue";
const props = defineProps({
sector: { type: String, default: "general" },
theme: { type: String, default: "dark" },
});
onMounted(() => {
if (document.getElementById("cortex-chat-widget")) return;
const script = document.createElement("script");
script.src = "https://duzenal.com/widget/cortex-chat.js";
script.setAttribute("data-sector", props.sector);
script.setAttribute("data-theme", props.theme);
document.body.appendChild(script);
});
onUnmounted(() => {
const el = document.getElementById("cortex-chat-widget");
if (el) el.remove();
});
</script>Set up the Düzenal platform in 5 steps and greet your first customer with AI.
Select from 20 sectors and let AI models auto-configure for your industry.
View SectorsBuild a sector-trained AI chatbot in a few clicks and customize it to your brand.
Setup ChatbotAdd a single script tag to connect the chatbot to your website, WhatsApp, or Instagram.
Integration CodeMonitor customer interactions and conversions with real-time analytics dashboard.
Analytics DemoMeta Business Manager account, a verified business, and a phone number not registered with WhatsApp.
Create an account at business.facebook.com and verify your business.
Meta Business Manager > All Tools > WhatsApp > Get Started. Add and verify your phone number.
System Users > New user > WhatsApp permissions > Generate Permanent Token.
Admin panel > Settings > Integrations > WhatsApp. Enter your API Token and Phone Number ID.
Send "hello" to your number via WhatsApp. The AI chatbot should respond.
From the AI Agents page: choose a name, role (Support/Sales/Custom), model (Claude Haiku/Sonnet/Deepseek), tone and language.
Use Q&A (frequently asked questions), text (services, prices, location), or URL (crawl your website) options.
Define rules to transfer to a human operator for specific keywords or low confidence scores.
Test with live chat on the AI Agents page.
WhatsApp chatbot, 1 flow, 100-contact CRM, email support.
WhatsApp + Instagram, 10 flows, 1,000-contact CRM, AI Agent, priority support.
All channels, unlimited flows/CRM, 5 AI Agents, dedicated manager, custom integrations.
Credit card (iyzico), wire transfer. 20% discount on annual billing.
Hosted in Turkey, SSL/TLS encryption, daily automatic backups, Docker isolation.
Explicit consent mechanism, data subject request (DSR) support, PII masking (local AI). Sensitive data never leaves Turkey.
Daily DB dump (04:00), 7-day retention, offsite backup (VPS). 99.95% uptime target.
Düzenal'yi ücretsiz deneyin —Demo Al
14 gün, kredi kartı yok