Member-only story

Ultimate Guide to Utilizing Azure Logic Apps to Analyze Customer Reviews Using Azure Open AI

Wael Kdouh
9 min readNov 8, 2024

Introduction

In today’s customer-centric world, understanding customer sentiments from reviews is crucial for businesses to improve their services and build brand loyalty. Azure Logic Apps, combined with Azure OpenAI, provides a powerful, low-code approach to analyzing customer feedback efficiently. This guide will demonstrate how to build an Azure Logic App workflow to fetch Yelp reviews, process them using Azure OpenAI, and extract valuable insights.

Workflow Overview

The workflow consists of the following steps:

  1. Trigger: The process starts when an HTTP request is received, containing the location and business term (e.g., “restaurants”) and location.
  2. Fetch Yelp Businesses: The app calls the Yelp API to find businesses matching the provided criteria.
  3. Conditional Logic: If businesses are found, it retrieves reviews for the top result. If no businesses are found, it returns an error response.
  4. Analyze Reviews: Using Azure OpenAI, the workflow extracts key insights from the reviews.
  5. Output Results: The insights are either returned via an HTTP response or sent in an email.

Below is a step-by-step breakdown of how this workflow is implemented.

Step 1: HTTP Trigger

The workflow begins with an HTTP request containing the location and term as input. This trigger is configured to accept JSON input with the following schema:

{
"type": "object",
"properties": {
"location": { "type": "string" },
"term": { "type": "string" }
}
}

Step 2: Fetch Businesses Using Yelp API

The app sends a GET request to the Yelp API to search for businesses in the specified location. Below is an example API call configuration:

Step 3: Check for Available Businesses

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Wael Kdouh
Wael Kdouh

Written by Wael Kdouh

Principal Cloud Solution Architect at Microsoft. I assist enterprise customers in crafting exceptional architectures for success.

No responses yet

Write a response