Getting application error details in Logic Apps using Chat GPT in exception handling

 Problem Statement:

      if you are using any API and Azure logic app if it got failed we will get an error message. Sometimes In order to understand the errors we will copy and paste the error into google and we will search for the error.

By following the below method we can print the summary of the error and suggestions to fix the issue.


services used:

1) Azure Logic App

2)Chat GPT connector


Step 1:  I have used an HTTP trigger here I am not passing anybody to trigger this URL the logic will execute.


Step 2: Here I am using the exception handling concept here I have taken the scope in scope I have taken HTTP action(NOTE: for sample test case I have taken HTTP  based on your requirement you can add action)

Step 3: After HTTP I have taken response Action it will give the response when HTTP action gets successful.


Step 4: if Scope1 got failed Scope 2 will be triggered in scope to I am using this chat GPT activity.
 the input for chat GPT failure body of the scope 1 activity example if scope1 got failed and given 404 error here I am passing this 404 error message to chat GPT.

Step 5: In the failure response I am passing an error message and details of the error.




input:
I have taken the  HTTP URL from the logic app and I am testing in post man

output with any comments of error : 


we will get these kinds of errors if any activity failed here it is not showing what kind of error summary.

Output after adding comments of Error:

















Comments

Popular posts from this blog

Loading Multiple JSON Files Into Different Tables Using AZURE DATA FACTORY

Converting XML Format data to JSON Format and performing data Operations using Azure Logic app