Webhook & Automation Integrations

Overview

klink.cloud provides real-time webhook events that allow external systems to receive inbound and outbound chat messages from your workspace.

Using webhooks, you can:

  • Send chat notifications to Slack or Microsoft Teams

  • Trigger workflows in Zapier, Make.com, or n8n

  • Sync chat data with CRMs, ticketing systems, or internal tools

  • Build custom automation or AI workflows


Supported Automation Platforms

klink.cloud webhooks can be consumed by any HTTPS endpoint, including:

  • Zapier

  • Make.com

  • n8n (Cloud or Self-Hosted)

  • Custom backends (Node.js, Python, Go, PHP, etc.)


Creating a Webhook in klink.cloud

  1. Log in to klink.cloud Admin Panel

  2. Navigate to Settings β†’ Developer Tools

  3. Click Create App

  4. Configure:

    • Webhook URL (Zapier / Make / n8n endpoint)

    • Webhook Events (e.g. message.inbound, message.outbound)

  5. Save the App

Once saved, klink.cloud will immediately start sending webhook events to the configured URL.


Webhook Events

Event
Description

message.inbound

Triggered when a customer sends a message

message.outbound

Triggered when an agent or AI sends a message


Webhook Request Specification

  • Method: POST

  • Content-Type: application/json

  • Payload Encoding: UTF-8

Headers

Header Description

Header
Purpose

x-signature

Webhook signature for request validation

x-real-ip

Origin IP address

content-type

Always application/json


Webhook Payload Example

Inbound Message (message.inbound)


Key Payload Fields

Message Object (data)

Field
Description

id

Unique message ID

type

Message type (text, image, file, etc.)

direction

incoming / outgoing

message

Message content

contactId

Customer contact ID

roomId

Conversation ID

platformId

Messaging platform identifier

Room Object (data.room)

Field
Description

isGroup

Group or 1-on-1 chat

isAiAgentRoom

Chat handled by AI Agent

channel.type

whatsapp, livechat, telegram, etc.

lastMessage

Latest message

unreadCount

Number of unread messages


Microsoft Teams Integration

klink.cloud webhook notifications can be sent to Microsoft Teams using Zapier, Make.com, or n8n.

Authentication Options

Zapier and Make.com provide built-in Microsoft authentication.

βœ” Users can authenticate using their Microsoft Admin account βœ” No Azure app setup required βœ” Fastest and easiest option


Option B: n8n Self-Hosted (Azure App Required)

For n8n self-hosted, users must register their own Microsoft OAuth application in Microsoft Azure / Entra ID.


Microsoft Azure App Registration (n8n Self-Hosted)

Step 1: Register Application

  1. Open Microsoft Application Registration Portal

  2. Select Register an application

  3. Enter an Application Name Example: klink-cloud-n8n-integration

Step 2: Supported Account Types

Select:

Accounts in any organizational directory (Any Azure AD directory – Multi-tenant) and personal Microsoft accounts (e.g. Skype, Xbox)


Step 3: Configure Redirect URI

  1. In n8n, open Microsoft credential settings

  2. Copy the OAuth Callback URL

  3. In Azure:

    • Redirect URI β†’ Select a platform

    • Choose Web

    • Paste the OAuth Callback URL

  4. Click Register


Step 4: Configure Client ID in n8n

  1. Copy the Application (client) ID

  2. Paste it into n8n as the Client ID

Your n8n instance is now connected to Microsoft OAuth.


Microsoft Permissions (Typical)

Depending on the workflow, admin consent may be required for:

  • Microsoft Teams message posting

  • Channel access

  • User profile read access

Permission requirements depend on the n8n node and action used.


Example Use Cases

  • πŸ”” Notify Sales team on new WhatsApp leads

  • πŸ§‘β€πŸ’Ό Alert Support team on VIP messages

  • πŸ€– Trigger AI workflows on inbound messages

  • πŸ“Š Sync chat data to CRM or analytics tools


Best Practices

  • Always return HTTP 200 OK to acknowledge webhook receipt

  • Process webhooks asynchronously

  • Validate x-signature for security

  • Use filters (channel, keyword, unread count) to reduce noise


Supported Channels

  • WhatsApp

  • Live Chat

  • Telegram

  • Social Messaging

  • Email (if enabled)


Support

For integration help or questions:

Last updated