Dify chat and agent apps
BotChap connects your website chat widget to a Dify app via the Dify chat-messages API. The BotChap server proxy handles authentication, your Dify API key stays on the server and is never exposed to the browser.
Use this integration when your chatbot already runs on Dify and you need a more branded, customizable widget than the default Dify embed, with animated triggers, custom colors, voice input, and GDPR consent.
BotChap sends a POST to your Dify chat-messages (or completion-messages) endpoint:
{
"inputs": {},
"query": "<visitor message>",
"response_mode": "blocking",
"user": "<user identifier or sessionId>",
"conversation_id": "<sessionId>"
}POST https://api.dify.ai/v1/chat-messages
Authorization: Bearer <your-dify-api-key>
Content-Type: application/json
{
"inputs": {},
"query": "How do I connect BotChap to Shopify?",
"response_mode": "blocking",
"user": "visitor_42",
"conversation_id": "bc_7f3a9d"
}{
"answer": "Use the Shopify integration in BotChap to search products from your storefront.",
"conversation_id": "bc_7f3a9d"
}Create a free widget, configure the integration, and embed it on your site in minutes.