|

|  How to Integrate Google Dialogflow with Zendesk

How to Integrate Google Dialogflow with Zendesk

January 24, 2025

Discover step-by-step instructions to seamlessly integrate Google Dialogflow with Zendesk, enhancing your customer support with smart AI-driven interactions.

How to Connect Google Dialogflow to Zendesk: a Simple Guide

 

Integrate Google Dialogflow with Zendesk

 

  • Ensure you have an active Dialogflow agent and a Zendesk account. Familiarize yourself with Dialogflow’s console and Zendesk’s admin settings.

 

 

Set Up Google Dialogflow

 

  • Log in to your Dialogflow console and select your agent.
  •  

  • Navigate to the Settings icon and find the General tab. Note down the Project ID.
  •  

  • Proceed to the Service Account section in GCP. Create a service account and download the JSON key file. This will be used for authentication.

 

 

Prepare Your Zendesk Account

 

  • Log in to Zendesk and navigate to the Admin Center.
  •  

  • Under Apps and integrations, go to API and ensure the Zendesk API is enabled. Note down the API token as it will be needed later.
  •  

  • Configure your Zendesk triggers that will notify the bot whenever there's a relevant event to handle.

 

 

Create a Webhook in Dialogflow

 

  • Go to the Fulfillment section in the Dialogflow console and enable webhooks.
  •  

  • Add a new webhook entry with a webhook URL that will point to your integration layer or middleware.

 

 

Set Up a Middleware Service

 

  • Create a server-side application in Python, Node.js, or any other technology that will act as a middleware between Dialogflow and Zendesk.
  •  

  • Use the following Python example to create a basic Flask server that can listen to and process Dialogflow requests:
    from flask import Flask, request, jsonify
    import requests
    
    app = Flask(__name__)
    
    @app.route('/webhook', methods=['POST'])
    def webhook():
        data = request.get_json()
        
        # Process the Dialogflow request and communicate with Zendesk
        response = {
            "fulfillmentText": "This is a response from your server!"
        }
        
        return jsonify(response)
    
    if __name__ == '__main__':
        app.run(port=5000)
    
  •  

  • Ensure this server is publicly accessible to accept webhook calls from Dialogflow. Tools like ngrok can be used for local development.

 

 

Implement Zendesk API Integration in Middleware

 

  • Add code to handle Zendesk ticket creation or updates based on the data received from Dialogflow:
    def create_zendesk_ticket(subject, description):
        url = 'https://{subdomain}.zendesk.com/api/v2/tickets.json'
        data = {
            "ticket": {
                "subject": subject,
                "description": description
            }
        }
        headers = {'Content-Type': 'application/json'}
        auth = ('{email}/token', '{zendesk_api_token}')
        
        response = requests.post(url, json=data, headers=headers, auth=auth)
        return response.status_code
    
  • Replace `{subdomain}`, `{email}`, and `{zendesk_api_token}` with your Zendesk specific details.

 

 

Test the Integration

 

  • Ensure the middleware is running and the webhook URL is correctly configured in Dialogflow.
  •  

  • Use the Dialogflow console to send a test intent that triggers your webhook and verify if a corresponding action or ticket is created in Zendesk.

 

 

Maintain and Monitor the Integration

 

  • Implement logging in your middleware to track requests and responses for troubleshooting.
  •  

  • Regularly test the integration to accommodate any updates in Dialogflow or Zendesk APIs.

 

Omi Necklace

The #1 Open Source AI necklace: Experiment with how you capture and manage conversations.

Build and test with your own Omi Dev Kit 2.

How to Use Google Dialogflow with Zendesk: Usecases

 

Integrating Google Dialogflow with Zendesk: Enhancing Customer Support

 

  • Round-the-Clock Customer Support: Google Dialogflow helps automate customer inquiries through AI-powered chatbots, providing 24/7 help without the need for staff to be constantly online.
  •  

  • Seamless Ticketing System: Integrating Zendesk allows Dialogflow bots to escalate complex customer queries into support tickets, ensuring that issues are tracked and resolved by human agents efficiently.
  •  

  • Personalized Recommendations: With customer data stored in Zendesk, Dialogflow can deliver custom responses, such as order tracking or product recommendations, improving the user experience.
  •  

  • Reduction in Response Time: Dialogflow can quickly sort through FAQs and provide instant answers to common questions, significantly cutting down on the wait time for customer responses.
  •  

  • Streamlined Workflow: The integration allows for automated updates to the Zendesk CRM, enabling a more organized approach to managing customer interactions and follow-ups.

 


{
  "intent": {
    "name": "Track Order",
    "responses": [
      {
        "text": "Let me check the status of your order. Please hold on a moment."
      }
    ]
  },
  "trigger": "Zendesk",
  "action": "create_ticket"
}

 

  • Improved Analytics: The data from both Dialogflow interactions and Zendesk tickets can be analyzed to identify trends in customer issues, guiding businesses in improving their products and services.
  •  

  • Cross-Platform Consistency: With Dialogflow designed to work across multiple platforms (website, app, social media), Zendesk ensures all interactions are captured and centralized for a consistent support experience.

 

 

Boosting Customer Engagement: Google Dialogflow and Zendesk Integration

 

  • Enhanced Customer Interaction: Google Dialogflow, by powering intelligent virtual assistants, interacts with customers on diverse platforms, providing sophisticated conversational experiences.
  •  

  • Optimized Support Ticket Management: By linking Dialogflow with Zendesk, when a query requires human intervention, chatbots can automatically log a detailed support ticket, ensuring seamless communication between customer and agent.
  •  

  • Context-Aware Assistance: Utilizing data access from Zendesk, Dialogflow can offer tailored assistance, addressing user-specific issues or providing product information as per historical data.
  •  

  • Decreased Wait Times: Quickly handling and resolving repetitive inquiries via Dialogflow ensures customers receive faster responses, improving overall satisfaction.
  •  

  • Automated Data Synchronization: The integration guarantees real-time updates to CRM systems in Zendesk, facilitating efficient team collaborations and follow-up actions.

 


{
  "intent": {
    "name": "Payment Issue",
    "responses": [
      {
        "text": "I'm sorry to hear you're having trouble with your payment. Let me assist you with that."
      }
    ]
  },
  "trigger": "Zendesk",
  "action": "create_ticket"
}

 

  • Powerful Insights: Analyze interaction metrics from Dialogflow and ticket data from Zendesk to recognize patterns, developing strategies to leverage insights for improved support operations and product enhancements.
  •  

  • Consistent User Experience: With Dialogflow's capability to function across multiple channels, the integration with Zendesk ensures all customer interactions converge in a uniform support environment, promoting reliability.

 

Omi App

Fully Open-Source AI wearable app: build and use reminders, meeting summaries, task suggestions and more. All in one simple app.

Github →

Order Friend Dev Kit

Open-source AI wearable
Build using the power of recall

Order Now

Troubleshooting Google Dialogflow and Zendesk Integration

How do I connect Google Dialogflow to Zendesk?

 

Set Up Dialogflow

 

  • Create a project in Dialogflow and configure your intents to process user input.
  •  

  • Enable fulfillment and provide a webhook URL to handle responses.

 

Prepare Zendesk

 

  • Access your Zendesk admin panel and create a new webhook in the "Webhooks" section.
  •  

  • Obtain your Zendesk API credentials, ensuring you have necessary permissions.

 

Create Middleware

 

  • Use a serverless function or Express.js app to mediate between Dialogflow and Zendesk.
  •  

  • Parse JSON data from Dialogflow and make API calls to Zendesk.

 

const express = require('express');
const app = express();
app.use(express.json());

app.post('/webhook', (req, res) => {
  let data = req.body;
  // Process data here and interact with Zendesk API
  res.send('Webhook received');
});

app.listen(3000, () => console.log('Server running'));

 

Connect the Systems

 

  • Configure Dialogflow to use your middleware's URL for fulfillment.
  •  

  • Ensure Zendesk webhook points to the middleware to complete the loop.

 

Why is my Google Dialogflow bot not appearing in Zendesk?

 

Check Integration Settings

 

  • Verify that the Dialogflow-Zendesk integration is properly configured. Access the Zendesk admin panel and ensure the integration is enabled.
  •  

  • Check API credentials: Ensure API keys from Dialogflow are correctly inputted into Zendesk's configuration settings.

 

Verify Agent Status

 

  • Ensure your Google Dialogflow agent is published and active. If it's in draft mode, publish it to make it accessible for Zendesk.
  •  

  • Test the agent in Dialogflow's simulator to verify it is functioning correctly before deploying to Zendesk.

 

Review Permissions

 

  • Check that your API project has the appropriate permissions. Ensure the Dialogflow API is enabled in Google Cloud Console.
  •  

 

Examine Connection Logs

 

  • Look at the Zendesk's and Dialogflow's logs for potential error messages that might indicate misconfigurations.
  •  

How can I pass Zendesk ticket information to Dialogflow?

 

Integrate Zendesk with Dialogflow

 

  • Utilize Zendesk APIs to fetch ticket data. Register an app in your Zendesk account to get API credentials.
  •  

  • Enable Dialogflow's Webhook to process incoming data. Ensure your Dialogflow agent is set up to accept JSON input.

 

Fetch Zendesk Ticket Data

 

import requests

def get_ticket_info(ticket_id):
    url = f"https://yoursubdomain.zendesk.com/api/v2/tickets/{ticket_id}.json"
    response = requests.get(url, auth=('email@example.com', 'password/token'))
    return response.json()

 

Send Data to Dialogflow

 

data = get_ticket_info(ticket_id)
dialogflow_url = "https://dialogflow.googleapis.com/v2/projects/project-id/agent/sessions/session-id:detectIntent"
headers = {'Content-Type': 'application/json'}

response = requests.post(dialogflow_url, headers=headers, json={"queryInput": {"text": {"text": "Your message"}}})

 

  • Ensure both Zendesk and Dialogflow JSON formats align. Implement error handling to manage API call failures.
  •  

  • Test the integration thoroughly to ensure ticket details are correctly processed by Dialogflow intents.

 

Don’t let questions slow you down—experience true productivity with the AI Necklace. With Omi, you can have the power of AI wherever you go—summarize ideas, get reminders, and prep for your next project effortlessly.

Order Now

Join the #1 open-source AI wearable community

Build faster and better with 3900+ community members on Omi Discord

Participate in hackathons to expand the Omi platform and win prizes

Participate in hackathons to expand the Omi platform and win prizes

Get cash bounties, free Omi devices and priority access by taking part in community activities

Join our Discord → 

OMI NECKLACE + OMI APP
First & only open-source AI wearable platform

a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded
a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded a person looks into the phone with an app for AI Necklace, looking at notes Friend AI Wearable recorded
online meeting with AI Wearable, showcasing how it works and helps online meeting with AI Wearable, showcasing how it works and helps
online meeting with AI Wearable, showcasing how it works and helps online meeting with AI Wearable, showcasing how it works and helps
App for Friend AI Necklace, showing notes and topics AI Necklace recorded App for Friend AI Necklace, showing notes and topics AI Necklace recorded
App for Friend AI Necklace, showing notes and topics AI Necklace recorded App for Friend AI Necklace, showing notes and topics AI Necklace recorded

OMI NECKLACE: DEV KIT
Order your Omi Dev Kit 2 now and create your use cases

Omi Dev Kit 2

Endless customization

OMI DEV KIT 2

$69.99

Make your life more fun with your AI wearable clone. It gives you thoughts, personalized feedback and becomes your second brain to discuss your thoughts and feelings. Available on iOS and Android.

Your Omi will seamlessly sync with your existing omi persona, giving you a full clone of yourself – with limitless potential for use cases:

  • Real-time conversation transcription and processing;
  • Develop your own use cases for fun and productivity;
  • Hundreds of community apps to make use of your Omi Persona and conversations.

Learn more

Omi Dev Kit 2: build at a new level

Key Specs

OMI DEV KIT

OMI DEV KIT 2

Microphone

Yes

Yes

Battery

4 days (250mAH)

2 days (250mAH)

On-board memory (works without phone)

No

Yes

Speaker

No

Yes

Programmable button

No

Yes

Estimated Delivery 

-

1 week

What people say

“Helping with MEMORY,

COMMUNICATION

with business/life partner,

capturing IDEAS, and solving for

a hearing CHALLENGE."

Nathan Sudds

“I wish I had this device

last summer

to RECORD

A CONVERSATION."

Chris Y.

“Fixed my ADHD and

helped me stay

organized."

David Nigh

OMI NECKLACE: DEV KIT
Take your brain to the next level

LATEST NEWS
Follow and be first in the know

Latest news
FOLLOW AND BE FIRST IN THE KNOW

thought to action

team@basedhardware.com

company

careers

events

invest

privacy

products

omi

omi dev kit

personas

resources

apps

bounties

affiliate

docs

github

help