Azure Logic Apps & AI - Building Integration & AI Solutions

dtoomey 224 views 36 slides May 18, 2024
Slide 1
Slide 1 of 36
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36

About This Presentation

Presentation delivered at the Brisbane Data & AI Bootcamp on Saturday, 18 May 2024. Covers Workflow Assistant and new Azure OpenAI and AI Search connectors.


Slide Content

Logic Apps and AI Dan Toomey @daniel2me

THANK YOU TO  OUR  SPONSORS BRISBANE DATA  ANALYTICS   &   AI   BOOTCAMP

Who am I? Senior Integration Specialist, Deloitte Microsoft Azure MVP MCSE, MCT, MCPD, MCTS BizTalk & Azure Pluralsight Author www.mindovermessaging.com @daniel2me

Agenda What are Logic Apps? How does AI help to build Logic Apps How do Logic Apps help to build AI solutions?

What are Logic Apps?

Azure Integration Services (AIS) These are the core integration services in Azure. Extract, Load, Transform data with Data Factory Create, access control, usage analysis, and management of APIs thanks to API Management Serverless compute execution with Functions Microservice and API orchestration with Logic Apps Event Grid for raising and delivering events Enterprise messaging with Service Bus

What are Logic Apps? Azure Logic App is an Azure service that simplifies how you build automated scalable workflows that integrate apps and data across cloud services and on-premises systems .

Logic Apps >1000 Connectors!! Azure Connectors Azure AD Azure API Management Azure App Services Azure Application Insights Azure Automation Azure Blob Storage Azure Container Instance Azure Data Lake Azure Data Factory Azure Event Grid Azure File Storage Azure Functions Azure Kusto Azure Logic Apps Azure ML Azure Resource Manager Azure Security Center Azure SQL Data Warehouse Azure Storage Queues Azure Table Storage Computer Vision API Common Data Service Content Moderator Cosmos DB Custom Vision Event Hubs Face API LUIS QnA Maker Service Bus SQL Server Text Analytics Video Indexer Other Microsoft Connectors Bing Maps Bing Search Dynamics 365 Dynamics 365 for Financials Dynamics Nav Microsoft Forms Microsoft Kaizala Microsoft StaffHub Microsoft Teams Microsoft To-Do Microsoft Translator MSN Weather Office 365 Excel Office 365 Groups Office 365 Outlook Office 365 Video OneDrive OneDrive for Business OneNote Outlook Customer Manager Outlook Tasks Outlook.com Project Online Power BI SharePoint Skype for Business VSTS Yammer 3rd-Party SaaS Connectors 10to8 Adobe Creative Cloud Apache Impala Appfigures Asana Aweber Basecamp3 Benchmark Email Bitbucket Bitly Blogger Box Buffer Calendly Campfire Capsule CRM Chatter Cognito Forms D&B Optimizer Derdack Signl4 DocFusion Docparser DocuSign Dropbox Easy Redmine Elastic Forms Enadoc Eventbrite Facebook FlowForma FreshBooks Freshdesk Freshservice GitHub Gmail Google Calendar Google Drive Google Sheets Google Tasks GoToMeeting GoToTraining GoToWebinar Harvest HelloSign HipChat iAuditor Infobip Infusionsoft Inoreader insightly Instagram Instapaper Intercom Jira JotForm Kintone LeanKit LiveChat Lithium MailChimp Mandrill Marketing Content Hub Metatask Muhimbi PDF MySQL Nexmo Oracle Database Pager Duty Parserr Paylocity Pinterest Pipedrive Pitney Bowes Data Validation Pivotal Tracker Planner Plivo Plumsail Documents Plumsail Forms Plumsail SP PostgreSQL Redmine Salesforce SendGrid ServiceNow Slack Smartsheet SparkPost Stripe SurveyMonkey Tago Teamwork Projects Teradata Todoist Toodledo Trello Twilio Twitter Typeform UserVoice Vimeo WebMerge WordPress Workday HCM Workday Finance Wunderlist YouTube Zendesk Zoho Protocol Connectors FTP HTTP / HTTP with Swagger HTTP with Azure AD RSS SFTP SMTP SOAP-to-REST SOAP pass-through Webhook Hybrid & Enterprise Connectors BizTalk DB2 File System Informix MQ MySQL Oracle DB PostgreSQL REST SAP SharePoint SOAP SQL Server Teradata XML, Text, EDI, and AS2 Connectors AS2 EDIFACT Flat File Liquid Templates X12 XML Validation and Transform https://docs.microsoft.com/en-us/connectors/connector-reference/connector-reference-logicapps-connectors

Logic Apps connect everything Cognitive services Service bus Machine learning Azure Functions Logic Apps On-premises data gateway BizTalkserver

Logic Apps Workflows Graphically Designed & Monitored Workflow & Orchestration engine Triggers: Connectors and Recurrent Actions: Connector & Workflow JSON Code Behind (Workflow Definition Language)

Logic Apps Workflows (Flow Control) Conditions & Switch Statements Action Run-After (Status) For-Each & Do-Until Loops Fan-out & Fan-in (parallel branches and loops) Retries (Fixed & Exponential) Scopes Exception Handling Correlation & Sequential Convoys

Trigger Task Service Bus Workflow Orchestrator On new message ForEach SQL Insert Workflow Complete Workflow Definition Save Run Complete Message

Task Resiliency Transient failures invoke retry-policies (DNS issues, throttles, or 5xx responses) If the task doesn’t respond, workflow orchestrator will assign a new task (at least once guarantee)

Workflow Definition Language Functions Collection contains, length, empty, intersection, union, first, last, take, skip, join String concat , substring, replace, guid , toLower , toUpper , indexof , lastindexof , startswith , endswith , split Logical equals, less, lessOrEquals , greater, greaterOrEquals , and, or, not, if Conversion int, string {}, json , float, bool, base64 , base64ToString, binary, dataUriToString , dataUri , uriComponent , triggerFormDataValue , formDataValue , xml , array , etc.  Manipulation coalesce, addProperty , setProperty , removeProperty , xpath Math add, sub, mul , div, mod, min, max, range, rand Date utcnow , addseconds , addminutes , addhours , adddays , formatDateTime , startOfDay , dayOfYear , etc.  https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

Logic Apps Standard Stateless & Stateful flows Functions Runtime Runs in containers Visual Studio designer Local debugging

Using AI to build Logic Apps

Workflow Assistant Chat-based “Copilot” type interface Powered by Azure OpenAI and ChatGPT Context-aware

Demo

Workflow Assistant Limitations Only available in the Azure Portal Only in Standard Logic Apps Closing the chat loses conversation history

Using Logic Apps to build AI

RAG : Retrieval-Augmented Generation Source: https://aws.amazon.com/what-is/retrieval-augmented-generation/

ChatGPT + Enterprise Data w/Azure OpenAI & AI Search Free sample that you can clone, build & deploy Includes sample data https://github.com/Azure-Samples/azure-search-openai-demo

Azure OpenAI and AI Search Connectors Currently in preview mode:

Create a Chat with Your Data (Logic App Project) Sample workflows and tokenization function Wraps the other sample project https://github.com/Azure/logicapps/tree/master/ai-sample

Ingestion Workflow Chat Workflow

Ingestion Workflow Chat Workflow Data acquisition Data tokenization Embedding generation Document indexing

Ingestion Workflow Chat Workflow

Ingestion Workflow Chat Workflow Prompt capture Model training Query generation Embedding conversion Vector search operation Prompt creation Chat completion

Summary AI can be helpful for integration solutions AI helps to build applications with Logic Apps Logic Apps helps to build AI applications Logic Apps

Resources Public preview announcement: https://aka.ms/LogicAppsCopilot Official documentation on Workflow Assistant: https://learn.microsoft.com/en-us/azure/logic-apps/workflow-assistant-standard Using Logic Apps to build intelligent OpenAI applications: https://techcommunity.microsoft.com/t5/azure-integration-services-blog/use-logic-apps-to-build-intelligent-openai-applications/ba-p/4014121 Azure OpenAI : https://learn.microsoft.com/en-us/azure/ai-services/openai/overview

Resources Learn How to Build AI Applications with Logic Apps: https://www.youtube.com/watch?v=tiU5yCvMW9o

LEVELUPYOURDATA.CO M

SPECIAL DISCOUNT LEVEL UP YOUR DATA WORKSHOPS & CONFERENCE Workshop AND Conference: SAVE $200 Workshop OR Conference: SAVE $100 DISCOUNT CODE: BRISBANEBOOTCAMP www.LevelUpYourData.com CODE VALID UNTIL MAY 31, 2024

https://www.integrationdownunder.com/

Thank you!! Keep in touch! @daniel2me /in/ danieltoomey mindovermessaging.com