Skip to main content
This page covers the Azure Logic Apps integration from langchain_azure_ai.tools. Azure Logic Apps is a cloud service that helps you automate workflows and business processes. You can use the AzureLogicAppTool to invoke pre-configured Logic App workflows from your LangChain agents, enabling automation, notifications, data synchronization, and orchestration of multi-step processes.

Overview

The AzureLogicAppTool allows agents to trigger Azure Logic Apps workflows by sending JSON payloads to named triggers. This is useful for automating tasks like sending emails, processing data, calling APIs, or integrating with other Azure and third-party services. Common use cases:
  1. Email notifications - Send alerts and notifications via Logic App
  2. Data synchronization - Sync data between systems
  3. Order processing - Trigger order fulfillment workflows
  4. API integrations - Call external APIs through Logic Apps
  5. Approval workflows - Start approval processes
  6. Data transformation - Process and transform data
  7. Multi-step automation - Orchestrate complex business processes

Setup

Install the integration package and configure your Azure credentials.

Installation

Install the package with the tools extra:
This extra installs the required azure-mgmt-logic dependency.

Prerequisites

Before using this tool, you need:
  1. An Azure subscription
  2. An Azure Logic App with at least one HTTP request trigger
  3. The subscription ID, resource group name, Logic App name, and trigger name

Credentials

The tool uses DefaultAzureCredential() by default, which supports various authentication methods including environment variables, managed identity, and interactive login.
Initialize credential
You can also pass a specific credential explicitly:

Basic usage

Instantiate the tool

Initialize tool

Invoke the tool

Use with an agent

Pass the tool to create_agent.
Agent with Logic Apps

Configuration

Parameters

subscription_id
str
required
Your Azure subscription ID where the Logic Apps are hosted.
resource_group
str
required
The Azure Resource Group name where the Logic App is deployed.
logic_app_name
str
required
The name of the Logic App workflow to invoke.
trigger_name
str
required
The name of the trigger in the Logic App to invoke. Typically this is manual_trigger or http_request for HTTP request-based triggers.
credential
TokenCredential | None
default:"None"
Optional Azure credential for authentication. If None, DefaultAzureCredential() is used. Can be any Azure SDK credential such as ManagedIdentityCredential, ClientSecretCredential, etc.
name
str
default:"azure_logic_app_tool"
The name of the tool. Customize this for different Logic Apps or use cases.
description
str
A description of the tool’s purpose. Customize this to help the agent understand when to use this specific Logic App.

Input format

The tool accepts input as either:
  1. Plain text - Automatically converted to JSON with an input key
  2. JSON string - Parsed and sent as-is to the Logic App trigger

Examples

Response format

The tool returns a JSON response indicating success or failure:
Or on error:

API reference