|

|  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.

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 →

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