Developer Docs | Kommunicate

Developer Docs | Kommunicate

  • Book a Demo
  • Try For Free

›Integrations

Web

  • Installation
  • CMS Installation
  • Authentication
  • Conversation
  • Conversation Assignment
  • Customization
  • Localization
  • Logout
  • Troubleshooting

Android

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Logout
  • Migration
  • Troubleshooting

iOS

  • Installation
  • SwiftUI Setup (Optional)
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Configuration
  • Localization
  • Logout
  • Troubleshooting

React Native

  • Installation
  • Expo Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Logout
  • Troubleshooting

Flutter Mobile

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Troubleshooting

Flutter Web

  • Installation
  • Authentication
  • Conversation

Ionic/Cordova

  • Installation
  • Authentication
  • Push Notification
  • Conversation
  • Customization
  • Localization
  • Logout
  • Resolving Errors

Ionic/Capacitor

  • Installation
  • Authentication
  • Push notification
  • Customization

Rich Messages

  • How To Use
  • Types of Rich Messages

Bots

  • Bot setup
  • Dialogflow Integration
  • Lex Integration
  • Kompose Bot Builder
  • IBM Watson Integration
  • Custom Bot Integration
  • Import Kompose Bot
  • Bot Samples

Integrations

  • Zapier
  • WhatsApp
  • WhatsApp 360Dialog
  • WhatsApp Twilio
  • WhatsApp Cloud API
  • Instagram Integration
  • Telegram Integration
  • Sunshine Integration
  • Freshdesk Integration
  • Pipedrive Integration
  • Agile Integration

Platform APIs

  • Authentication
  • Endpoints

Dashboard Features

  • Analytics
  • Conversations
  • Users
  • Bot Integration
  • Helpcenter
  • Campaign Messaging
  • Settings

Configuration

  • Single Sign On (SSO) Setup
  • Webhooks
  • Access Token URL
  • Email Fallback

Freshdesk Integration

Freshdesk Integration

Integrating Kommunicate with Freshdesk yields a seamless and comprehensive customer support solution, offering several advantages. By combining Kommunicate's AI chatbot functionality with Freshdesk's ticketing system, businesses can provide real-time support across channels, ensuring prompt query resolution.

Freshdesk Ticket Integration in Kommunicate

Following are the steps to integrate the Freshdesk ticket in Kommunicate:

  1. Login to your Freshdesk account >> Click on Profile >> Profile settings >> View API Key. Complete the captcha and copy your API key.

Freshdesk-console, Step 1: Click on Profile settings

Freshdesk-console, Step 2: Click on View API Key

  1. For this example, we have created a button called Create a support ticket that displays a form with the fields Email, Subject and Description. When the user fills the form and clicks on Submit an intent with the training phrase Submit is triggered which consists of the inline code to create a Freshdesk ticket.

Login to Kommunicate >> Create a button to display a form >> Create an intent to triggers the Inline code which creates the ticket on Freshdesk.

You can learn how to use the form from here and you can learn how to use the inline code from here.

You can follow the below steps to add the form payload.

To add form payload, Step 1: Navigate to bot says

To add form payload, Step 2: Click on more and custom

To add Inline code, Step 3: Add the payload

You can follow the below steps to add the Inline code.

To add Inline code, Step 1: Navigate to bot says

To add form payload, Step 2: Click on Dynamic message and Inlinecode

To add form payload, Step 3: Add the Inline code

The payload for the form used for this example is given below:

{
    "message": "Please enter the following details",
    "platform": "kommunicate",
    "metadata": {
        "contentType": "300",
        "templateId": "12",
        "payload": [
            {
                "type": "text",
                "data": {
                    "label": "Email",
                    "placeholder": "Please enter your Email"
                }
            },
            {
                "type": "text",
                "data": {
                    "label": "Subject",
                    "placeholder": "Enter the subject for the ticket"
                }
            },
            {
                "type": "text",
                "data": {
                    "label": "Description",
                    "placeholder": "Briefly explain the issue"
                }
            },
            {
                "type": "submit",
                "data": {
                    "action": {
                        "message": "submit",
                        "postFormDataAsMessage": "false",
                        "postBackToBotPlatform": "false",
                        "requestType": "postBackToBotPlatform"
                    },
                    "type": "submit",
                    "name": "Submit"
                }
            }
        ]
    }
}

The Inline code used is given below:

In the below Inline code replace Your_Freshdesk_Api_Key with your Freshdesk API key retrieved in step 1.

Also, replace Your_Freshdesk_Domain with your Freshdesk domain.

exports.responseHandler = async (input, callback) => {
    try {
        const apiKey = 'Your_Freshdesk_Api_Key';
        const encodedApiKey = Buffer.from(`${apiKey}:X`).toString('base64');
        const url = 'https://Your_Freshdesk_Domain.freshdesk.com/api/v2/tickets';

        const response = await axios.post(url, {
            description:input.metadata.KM_CHAT_CONTEXT.formData.Description,
            subject:input.metadata.KM_CHAT_CONTEXT.formData.Subject,
            email:input.metadata.KM_CHAT_CONTEXT.formData.Email,
            priority: 1,
            status: 2,
        }, {
            headers: {
                'Content-Type': 'application/json',
                'Authorization': `Basic ${encodedApiKey}`
            }
        });

        callback([{ "message": "Ticket created successfully." }]);
    } catch (error) {
        console.error('Error creating ticket:', error);
        callback([{ "message": `Please enter a valid Email Id` }]);
    }
};

In the following code, the description, subject and email are set to the values entered in the form by the user. If you are using a different form you need to change this code to match your fields.

description:input.metadata.KM_CHAT_CONTEXT.formData.Description,
subject:input.metadata.KM_CHAT_CONTEXT.formData.Subject,
email:input.metadata.KM_CHAT_CONTEXT.formData.Email,

Ticket Creation on Freshdesk

The tickets are created on Freshdesk under the Tickets section.

Where Freshdesk tickets are created

You can watch a demo tutorial from here.

← Sunshine IntegrationPipedrive Integration →
  • Freshdesk Integration
  • Freshdesk Ticket Integration in Kommunicate
  • The payload for the form used for this example is given below:
  • The Inline code used is given below:
  • Ticket Creation on Freshdesk

Ready to automate more than 80% of your customer support?

Try for Free
  • support@kommunicate.io
  • United States
    (+1) (310) 402-2374
  • India
    (+91) 974-057-0196
  • Learn
    • iOS Chatbot
    • Amazon Lex Chatbot
    • Chatbot in Android
    • ChatGPT with Flutter
    • Document to Chatbot
    • React Native Chatbot
    • Create Flutter Chatbot
    • Whatsapp Business API
    • Integrate React Js Chatbot
    • Whatsapp Chatbot Using NodeJs
    • Integrate ChatGPT With Whatsapp
    • Integrate Dialogflow With Whatsapp
    • ChatGPT For Product Engagement
    • Product
    • AI Chatbot Builder
    • Generative AI Chatbot
    • Customer Experience
    • Chatbot Features
    • Dialogflow Integration
    • FAQ Chatbot
    • Live Chat
      Industries
    • Healthcare Chatbot
    • E-commerce Chatbot
    • Education Chatbot
    • Banking Chatbot
  • Integrations
    • E-commerce Chatbot Integration
    • Omnichannel Chatbot
    • Chatbot Integration
    • Chatbot for Website
    • Mobile Apps Chatbot
    • Chatbot for CRM's
    • Automation and Analytics
    • Zendesk Chatbot Integration
  • Resources
    • Chatbots Templates
    • Case Studies
    • Whitepapers
    • Chatbot Guide
    • Videos
    • Knowledge Hub
    • Comparisons
    • ROI Calculator
    • Blogs
    • Company
    • Partner Program
    • Affiliate Program
    • Pricing
    • About Us
    • Media
      Support
    • Contact Us
    • HelpCenter
    • Stack Overflow
    • API Status
  • Comapare
    • Kommunicate Vs Verloop
    • Kommunicate Vs Intercom
    • Kommunicate Vs Yellow
    • Kommunicate Vs Twak
    • Kommunicate Vs Ada
Arabic
Hindi
Spanish
French
German
Portuguese
Urdu
Software Advice Frontrunners for Live Chat Mar-22Software Advice Frontrunners for Live Chat Mar-22crozdesk badgeISO certificationHIPAA complianceGDPR compliant - GDPR Copy 12Created with Sketch.COMPLIANT
Copyright © 2025 Kommunicate.io.
T&C Privacy Policy Career SLA DPA Sitemap