Simple Application to summarize data using GPT-3 Openai model

Published Jan 04 2022 09:00 AM 3,618 Views

Let's build a Power App to summarize data using GPT-3 openai model

What's needed

  • First go to - https://beta.openai.com/ and sign up for an trial account
  • If you organization has an account then register with that account
  • Create a new API key
  • Go to Right top in the above web site and click your name and then click on the API key
  • then create a new key to use
  • please make sure delete the key after completing the tutorial
  • Go to documentation and take a look at completions
  • we are going to use completion api
  • Also need Azure account and power platform license

Create a Power App

  • To create a power app first need to create a power flow
  • Flow is invoked by a powerapp trigger
  • Text information will be passed to the flow

Power Flow

  • Let's create a power flow
  • On the left menu in power apps click on flows
  • https://make.preview.powerapps.com/
  • Click on flows
  • Click New Flow
  • Name it as getsummary
  • here is the entire flow

BalamuruganBalakreshnan_0-1640876843711.png

  • First add trigger as Power Apps
  • then Initialize a variable

BalamuruganBalakreshnan_1-1640876944077.png

 

  • for value assign from Power apps
  • that will take the input value and assign to the variable called prompt
  • Now lets send the data to openai API to use davinci model using GPT-3
  • First bring HTTP action
  • Then select the action as POST
  • here is the URL
https://api.openai.com/v1/engines/davinci-msft/completions
  • Note we need content-type as application/json
  • also need Authorization as Bearer <your_api_key>
  • here is the body
{
  "prompt": @{triggerBody()['Initializevariable_Value']},
  "temperature": 0.5,
  "max_tokens": 100,
  "top_p": 1,
  "frequency_penalty": 0.2,
  "presence_penalty": 0,
  "stop": [
    "\"\"\""
  ]
}

BalamuruganBalakreshnan_2-1640877009713.png

 

  • make sure the prompt property is substituted with the value of the variable prompt as shown above
  • Next we need to parse the response from above HTTP output

BalamuruganBalakreshnan_3-1640877038617.png

  • Now we need to provide a sample document to parse the JSON schema
{
  "id": "cmpl-xxxxxxxxxxx",
  "object": "text_completion",
  "created": 1640707195,
  "model": "davinci:2020-05-03",
  "choices": [
    {
      "text": " really bright. You can see it in the sky at night.\nJupiter is the third brightest thing in the sky, after the Moon and Venus.\n",
      "index": 0,
      "logprobs": null,
      "finish_reason": "stop"
    }
  ]
}
  • Schema generated from sample
{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "object": {
            "type": "string"
        },
        "created": {
            "type": "integer"
        },
        "model": {
            "type": "string"
        },
        "choices": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "text": {
                        "type": "string"
                    },
                    "index": {
                        "type": "integer"
                    },
                    "logprobs": {},
                    "finish_reason": {
                        "type": "string"
                    }
                },
                "required": [
                    "text",
                    "index",
                    "logprobs",
                    "finish_reason"
                ]
            }
        }
    }
}
  • initialize a variable called outsummary

BalamuruganBalakreshnan_4-1640877073629.png

 

 

  • select the Type as String

  • After parsing we need to loop the array and assign the text to the variable

  • Bring Apply to each action

  • Select Choices as the array property

  • now bring Set variable action

  • Assign the currentitem to the variable outsummary

BalamuruganBalakreshnan_5-1640877103849.png

 

  • Next add Respond to Power Apps
  • Sent the outsummary as response back to Power Apps

BalamuruganBalakreshnan_6-1640877134205.png

 

  • Save the flow
  • Do a manual test run by passing sample text
  • If successful then you are set with flow

Power Apps

  • Now lets create a Power App
  • This is only a simple app
  • i am creating a canvas app
  • Name the app as: OpenAPITest
Note: this process can be applied to any HTTP REST enabled actions needed to be invoked by Power Apps
  • Now we need to create a canvas
  • Bring Text Input Box
  • Add default text as prompt
My second grader asked me what this passage means:\n\"\"\"\nJupiter is the fifth planet from the Sun and the largest in the Solar System. It is a gas giant with a mass one-thousandth that of the Sun, but two-and-a-half times that of all the other planets in the Solar System combined. Jupiter is one of the brightest objects visible to the naked eye in the night sky, and has been known to ancient civilizations since before recorded history. It is named after the Roman god Jupiter.[19] When viewed from Earth, Jupiter can be bright enough for its reflected light to cast visible shadows,[20] and is on average the third-brightest natural object in the night sky after the Moon and Venus.\n\"\"\"\nI rephrased it for him, in plain language a second grader can understand:\n\"\"\"\nJupiter is the fifth planet from the Sun. It is a big ball of gas. It is really bright, and you can see it in the sky at night. The ancient people named it after the Roman god Jupiter.\nJupiter is really big. It is bigger than all of the other planets in the Solar System combined. Jupiter is so big that if you could fit all of the other planets inside of Jupiter, you could still see Jupiter shining in the night sky!\nJupiter is

BalamuruganBalakreshnan_5-1640877472516.png

 

  • Now add a button
  • Call the flow and assign the return value to the variable
Set(summarytext,getsummary.Run(TextInput1.Text))
  • in OnSelect apply the above formulat.
  • getsummary is the name of the flow and we are passing parameters as textinput1.text
  • Now lets add a Text lable as label1
  • Assign the text property to summarytext.summarytext
  • summarytext is the output property set in the flow
summarytext.summarytext
 

BalamuruganBalakreshnan_6-1640877525890.png

 
 
  • Save the canvas app
  • Run the app and test it
  • below should be the output

BalamuruganBalakreshnan_4-1640877414822.png

 
 
  • The above flow can be used to access most API's in open AI.
  • So does we can use this for other Cognitive services

Samples2022/openaigpt3.md at main · balakreshnan/Samples2022 (github.com)

 

%3CLINGO-SUB%20id%3D%22%5C%26quot%3Blingo-sub-3047978%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3ESimple%20Application%20to%20summarize%20data%20using%20GPT-3%20Openai%20model%26lt%3B%5C%2Flingo-sub%26gt%3B%3CLINGO-BODY%20id%3D%22%5C%26quot%3Blingo-body-3047978%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CH2%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%20id%3D%22%5C%26quot%3Btoc-hId-333823322%5C%26quot%3B%22%20id%3D%22toc-hId-362416815%22%3ELet's%20build%20a%20Power%20App%20to%20summarize%20data%20using%20GPT-3%20openai%20model%26lt%3B%5C%2FH2%26gt%3B%5Cn%3C%2FH2%3E%3CH2%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%20id%3D%22%5C%26quot%3Btoc-hId--1473631141%5C%26quot%3B%22%20id%3D%22toc-hId--1445037648%22%3E%3CA%20id%3D%22%5C%26quot%3Buser-content-whats-needed%5C%26quot%3B%22%20class%3D%22%5C%26quot%3Banchor%5C%26quot%3B%22%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fgithub.com%2Fbalakreshnan%2FSamples2022%2Fblob%2Fmain%2FPowerPlatform%2Fopenaigpt3.md%23whats-needed%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3E%26lt%3B%5C%2FA%26gt%3BWhat's%20needed%26lt%3B%5C%2FH2%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3EFirst%20go%20to%20-%3CSPAN%3E%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3B%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fbeta.openai.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3Ehttps%3A%2F%2Fbeta.openai.com%2F%26lt%3B%5C%2FA%26gt%3B%3CSPAN%3E%26nbsp%3B%26lt%3B%5C%2FSPAN%26gt%3Band%20sign%20up%20for%20an%20trial%20account%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EIf%20you%20organization%20has%20an%20account%20then%20register%20with%20that%20account%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ECreate%20a%20new%20API%20key%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EGo%20to%20Right%20top%20in%20the%20above%20web%20site%20and%20click%20your%20name%20and%20then%20click%20on%20the%20API%20key%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ethen%20create%20a%20new%20key%20to%20use%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Eplease%20make%20sure%20delete%20the%20key%20after%20completing%20the%20tutorial%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EGo%20to%20documentation%20and%20take%20a%20look%20at%20completions%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ewe%20are%20going%20to%20use%20completion%20api%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EAlso%20need%20Azure%20account%20and%20power%20platform%20license%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CH2%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%20id%3D%22%5C%26quot%3Btoc-hId-1013881692%5C%26quot%3B%22%20id%3D%22toc-hId--1445037648%22%3E%3CA%20id%3D%22%5C%26quot%3Buser-content-create-a-power-app%5C%26quot%3B%22%20class%3D%22%5C%26quot%3Banchor%5C%26quot%3B%22%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fgithub.com%2Fbalakreshnan%2FSamples2022%2Fblob%2Fmain%2FPowerPlatform%2Fopenaigpt3.md%23create-a-power-app%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3E%26lt%3B%5C%2FA%26gt%3BCreate%20a%20Power%20App%26lt%3B%5C%2FH2%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ETo%20create%20a%20power%20app%20first%20need%20to%20create%20a%20power%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EFlow%20is%20invoked%20by%20a%20powerapp%20trigger%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EText%20information%20will%20be%20passed%20to%20the%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CH2%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%20id%3D%22%5C%26quot%3Btoc-hId--793572771%5C%26quot%3B%22%20id%3D%22toc-hId--1445037648%22%3E%3CA%20id%3D%22%5C%26quot%3Buser-content-power-flow%5C%26quot%3B%22%20class%3D%22%5C%26quot%3Banchor%5C%26quot%3B%22%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fgithub.com%2Fbalakreshnan%2FSamples2022%2Fblob%2Fmain%2FPowerPlatform%2Fopenaigpt3.md%23power-flow%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3E%26lt%3B%5C%2FA%26gt%3BPower%20Flow%26lt%3B%5C%2FH2%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ELet's%20create%20a%20power%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EOn%20the%20left%20menu%20in%20power%20apps%20click%20on%20flows%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmake.preview.powerapps.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3Ehttps%3A%2F%2Fmake.preview.powerapps.com%2F%26lt%3B%5C%2FA%26gt%3B%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmake.preview.powerapps.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3EClick%20on%20flows%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmake.preview.powerapps.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3EClick%20New%20Flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmake.preview.powerapps.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3EName%20it%20as%20getsummary%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FA%3E%3C%2FLI%3E%3CLI%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fmake.preview.powerapps.com%2F%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnofollow%20nofollow%20noopener%20noreferrer%22%20noopener%3D%22%22%20noreferrer%3D%22%22%3Ehere%20is%20the%20entire%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336558iD7C5FF4C300B97B8%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_0-1640876843711.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_0-1640876843711.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3EFirst%20add%20trigger%20as%20Power%20Apps%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ethen%20Initialize%20a%20variable%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336560i503D436A47838FC0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_1-1640876944077.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_1-1640876944077.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3Efor%20value%20assign%20from%20Power%20apps%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ethat%20will%20take%20the%20input%20value%20and%20assign%20to%20the%20variable%20called%20prompt%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ENow%20lets%20send%20the%20data%20to%20openai%20API%20to%20use%20davinci%20model%20using%20GPT-3%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EFirst%20bring%20HTTP%20action%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EThen%20select%20the%20action%20as%20POST%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ehere%20is%20the%20URL%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3Ehttps%3A%2F%2Fapi.openai.com%2Fv1%2Fengines%2Fdavinci-msft%2Fcompletions%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENote%20we%20need%20content-type%20as%20application%2Fjson%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ealso%20need%20Authorization%20as%20Bearer%20%3CYOUR_API_KEY%3E%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FYOUR_API_KEY%3E%3C%2FLI%3E%3CLI%3Ehere%20is%20the%20body%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3E%7B%5Cn%20%20%5C%22prompt%5C%22%3A%20%40%7BtriggerBody()%5B%5C'Initializevariable_Value%5C'%5D%7D%2C%5Cn%20%20%5C%22temperature%5C%22%3A%200.5%2C%5Cn%20%20%5C%22max_tokens%5C%22%3A%20100%2C%5Cn%20%20%5C%22top_p%5C%22%3A%201%2C%5Cn%20%20%5C%22frequency_penalty%5C%22%3A%200.2%2C%5Cn%20%20%5C%22presence_penalty%5C%22%3A%200%2C%5Cn%20%20%5C%22stop%5C%22%3A%20%5B%5Cn%20%20%20%20%5C%22%5C%5C%5C%22%5C%5C%5C%22%5C%5C%5C%22%5C%22%5Cn%20%20%5D%5Cn%7D%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336561i67B8BF7A69ED2603%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_2-1640877009713.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_2-1640877009713.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3Emake%20sure%20the%20prompt%20property%20is%20substituted%20with%20the%20value%20of%20the%20variable%20prompt%20as%20shown%20above%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ENext%20we%20need%20to%20parse%20the%20response%20from%20above%20HTTP%20output%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336562iD109FFDAE68B5721%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_3-1640877038617.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_3-1640877038617.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%E2%80%83%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENow%20we%20need%20to%20provide%20a%20sample%20document%20to%20parse%20the%20JSON%20schema%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3E%7B%5Cn%20%20%5C%22id%5C%22%3A%20%5C%22cmpl-xxxxxxxxxxx%5C%22%2C%5Cn%20%20%5C%22object%5C%22%3A%20%5C%22text_completion%5C%22%2C%5Cn%20%20%5C%22created%5C%22%3A%201640707195%2C%5Cn%20%20%5C%22model%5C%22%3A%20%5C%22davinci%3A2020-05-03%5C%22%2C%5Cn%20%20%5C%22choices%5C%22%3A%20%5B%5Cn%20%20%20%20%7B%5Cn%20%20%20%20%20%20%5C%22text%5C%22%3A%20%5C%22%20really%20bright.%20You%20can%20see%20it%20in%20the%20sky%20at%20night.%5C%5CnJupiter%20is%20the%20third%20brightest%20thing%20in%20the%20sky%2C%20after%20the%20Moon%20and%20Venus.%5C%5Cn%5C%22%2C%5Cn%20%20%20%20%20%20%5C%22index%5C%22%3A%200%2C%5Cn%20%20%20%20%20%20%5C%22logprobs%5C%22%3A%20null%2C%5Cn%20%20%20%20%20%20%5C%22finish_reason%5C%22%3A%20%5C%22stop%5C%22%5Cn%20%20%20%20%7D%5Cn%20%20%5D%5Cn%7D%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ESchema%20generated%20from%20sample%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3E%7B%5Cn%20%20%20%20%5C%22type%5C%22%3A%20%5C%22object%5C%22%2C%5Cn%20%20%20%20%5C%22properties%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%5C%22id%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22string%5C%22%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%5C%22object%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22string%5C%22%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%5C%22created%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22integer%5C%22%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%5C%22model%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22string%5C%22%5Cn%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%5C%22choices%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22array%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%5C%22items%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22object%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22properties%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22string%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22index%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22integer%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22logprobs%5C%22%3A%20%7B%7D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22finish_reason%5C%22%3A%20%7B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22type%5C%22%3A%20%5C%22string%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22required%5C%22%3A%20%5B%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22text%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22index%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22logprobs%5C%22%2C%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5C%22finish_reason%5C%22%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%5D%5Cn%20%20%20%20%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%20%20%20%20%7D%5Cn%20%20%20%20%7D%5Cn%7D%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3Einitialize%20a%20variable%20called%20outsummary%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336563i947D0D9097CE5F21%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_4-1640877073629.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_4-1640877073629.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3E%3CP%3Eselect%20the%20Type%20as%20String%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAfter%20parsing%20we%20need%20to%20loop%20the%20array%20and%20assign%20the%20text%20to%20the%20variable%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EBring%20Apply%20to%20each%20action%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3ESelect%20Choices%20as%20the%20array%20property%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3Enow%20bring%20Set%20variable%20action%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EAssign%20the%20currentitem%20to%20the%20variable%20outsummary%26lt%3B%5C%2FP%26gt%3B%5Cn%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336564i334A13CFF526544C%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_5-1640877103849.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_5-1640877103849.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENext%20add%20Respond%20to%20Power%20Apps%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ESent%20the%20outsummary%20as%20response%20back%20to%20Power%20Apps%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336565i98848BA1F4F46D01%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_6-1640877134205.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_6-1640877134205.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ESave%20the%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EDo%20a%20manual%20test%20run%20by%20passing%20sample%20text%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EIf%20successful%20then%20you%20are%20set%20with%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CH2%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%20id%3D%22%5C%26quot%3Btoc-hId-1693940062%5C%26quot%3B%22%20id%3D%22toc-hId--1445037648%22%3E%3CA%20id%3D%22%5C%26quot%3Buser-content-power-apps%5C%26quot%3B%22%20class%3D%22%5C%26quot%3Banchor%5C%26quot%3B%22%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fgithub.com%2Fbalakreshnan%2FSamples2022%2Fblob%2Fmain%2FPowerPlatform%2Fopenaigpt3.md%23power-apps%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3E%26lt%3B%5C%2FA%26gt%3BPower%20Apps%26lt%3B%5C%2FH2%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENow%20lets%20create%20a%20Power%20App%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EThis%20is%20only%20a%20simple%20app%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ei%20am%20creating%20a%20canvas%20app%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EName%20the%20app%20as%3A%20OpenAPITest%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3ENote%3A%20this%20process%20can%20be%20applied%20to%20any%20HTTP%20REST%20enabled%20actions%20needed%20to%20be%20invoked%20by%20Power%20Apps%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENow%20we%20need%20to%20create%20a%20canvas%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EBring%20Text%20Input%20Box%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EAdd%20default%20text%20as%20prompt%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3EMy%20second%20grader%20asked%20me%20what%20this%20passage%20means%3A%5C%5Cn%5C%5C%5C%22%5C%5C%5C%22%5C%5C%5C%22%5C%5CnJupiter%20is%20the%20fifth%20planet%20from%20the%20Sun%20and%20the%20largest%20in%20the%20Solar%20System.%20It%20is%20a%20gas%20giant%20with%20a%20mass%20one-thousandth%20that%20of%20the%20Sun%2C%20but%20two-and-a-half%20times%20that%20of%20all%20the%20other%20planets%20in%20the%20Solar%20System%20combined.%20Jupiter%20is%20one%20of%20the%20brightest%20objects%20visible%20to%20the%20naked%20eye%20in%20the%20night%20sky%2C%20and%20has%20been%20known%20to%20ancient%20civilizations%20since%20before%20recorded%20history.%20It%20is%20named%20after%20the%20Roman%20god%20Jupiter.%5B19%5D%20When%20viewed%20from%20Earth%2C%20Jupiter%20can%20be%20bright%20enough%20for%20its%20reflected%20light%20to%20cast%20visible%20shadows%2C%5B20%5D%20and%20is%20on%20average%20the%20third-brightest%20natural%20object%20in%20the%20night%20sky%20after%20the%20Moon%20and%20Venus.%5C%5Cn%5C%5C%5C%22%5C%5C%5C%22%5C%5C%5C%22%5C%5CnI%20rephrased%20it%20for%20him%2C%20in%20plain%20language%20a%20second%20grader%20can%20understand%3A%5C%5Cn%5C%5C%5C%22%5C%5C%5C%22%5C%5C%5C%22%5C%5CnJupiter%20is%20the%20fifth%20planet%20from%20the%20Sun.%20It%20is%20a%20big%20ball%20of%20gas.%20It%20is%20really%20bright%2C%20and%20you%20can%20see%20it%20in%20the%20sky%20at%20night.%20The%20ancient%20people%20named%20it%20after%20the%20Roman%20god%20Jupiter.%5C%5CnJupiter%20is%20really%20big.%20It%20is%20bigger%20than%20all%20of%20the%20other%20planets%20in%20the%20Solar%20System%20combined.%20Jupiter%20is%20so%20big%20that%20if%20you%20could%20fit%20all%20of%20the%20other%20planets%20inside%20of%20Jupiter%2C%20you%20could%20still%20see%20Jupiter%20shining%20in%20the%20night%20sky!%5C%5CnJupiter%20is%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_7%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_5%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336572i0F25584C43F5D6C7%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_5-1640877472516.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_5-1640877472516.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_0%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_1%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ENow%20add%20a%20button%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ECall%20the%20flow%20and%20assign%20the%20return%20value%20to%20the%20variable%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3ESet(summarytext%2Cgetsummary.Run(TextInput1.Text))%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3Ein%20OnSelect%20apply%20the%20above%20formulat.%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Egetsummary%20is%20the%20name%20of%20the%20flow%20and%20we%20are%20passing%20parameters%20as%20textinput1.text%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ENow%20lets%20add%20a%20Text%20lable%20as%20label1%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3EAssign%20the%20text%20property%20to%20summarytext.summarytext%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Esummarytext%20is%20the%20output%20property%20set%20in%20the%20flow%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CDIV%20class%3D%22%5C%26quot%3Bsnippet-clipboard-content%22%20position-relative%3D%22%22%20overflow-auto%3D%22%22%3E%5Cn%3CPRE%3E%3CCODE%3Esummarytext.summarytext%5Cn%26lt%3B%5C%2FCODE%26gt%3B%26lt%3B%5C%2FPRE%26gt%3B%5Cn%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_8%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336573iE3A773363054F72F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_6-1640877525890.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_6-1640877525890.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_3%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_6%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3ESave%20the%20canvas%20app%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ERun%20the%20app%20and%20test%20it%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3Ebelow%20should%20be%20the%20output%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CSPAN%20class%3D%22%5C%26quot%3Blia-inline-image-display-wrapper%22%20lia-image-align-inline%3D%22%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fgxcuf89792%2F%5C%26quot%3Bhttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F336571i91247D5923B75A44%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%5C%26quot%3B%22%20role%3D%22%5C%26quot%3Bbutton%5C%26quot%3B%22%20title%3D%22BalamuruganBalakreshnan_4-1640877414822.png%22%20alt%3D%22%5C%26quot%3BBalamuruganBalakreshnan_4-1640877414822.png%5C%26quot%3B%22%20%2F%3E%26lt%3B%5C%2Fspan%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_9%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CDIV%20id%3D%22%5C%26quot%3BtinyMceEditorBalamuruganBalakreshnan_2%5C%26quot%3B%22%20class%3D%22%5C%26quot%3BmceNonEditable%22%20lia-copypaste-placeholder%3D%22%22%3E%26nbsp%3B%26lt%3B%5C%2FDIV%26gt%3B%5Cn%3CUL%20dir%3D%22%5C%26quot%3Bauto%5C%26quot%3B%22%3E%5Cn%3CLI%3EThe%20above%20flow%20can%20be%20used%20to%20access%20most%20API's%20in%20open%20AI.%26lt%3B%5C%2FLI%26gt%3B%5Cn%3C%2FLI%3E%3CLI%3ESo%20does%20we%20can%20use%20this%20for%20other%20Cognitive%20services%26lt%3B%5C%2FLI%26gt%3B%5Cn%26lt%3B%5C%2FUL%26gt%3B%5Cn%3CP%3E%3CA%20href%3D%22%5C%26quot%3Bhttps%3A%2F%2Fgithub.com%2Fbalakreshnan%2FSamples2022%2Fblob%2Fmain%2FPowerPlatform%2Fopenaigpt3.md%5C%26quot%3B%22%20target%3D%22%5C%26quot%3B_blank%5C%26quot%3B%22%20rel%3D%22%5C%26quot%3Bnoopener%20nofollow%20noopener%20noreferrer%22%20noreferrer%3D%22%22%3ESamples2022%2Fopenaigpt3.md%20at%20main%20%C2%B7%20balakreshnan%2FSamples2022%20(github.com)%26lt%3B%5C%2FA%26gt%3B%26lt%3B%5C%2FP%26gt%3B%5Cn%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26lt%3B%5C%2FP%26gt%3B%26lt%3B%5C%2Flingo-body%26gt%3B%3CLINGO-LABS%20id%3D%22%5C%26quot%3Blingo-labs-3047978%5C%26quot%3B%22%20slang%3D%22%5C%26quot%3Ben-US%5C%26quot%3B%22%3E%3CLINGO-LABEL%3EAzure%20Machine%20Learning%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3ECognitive%20Services%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EMachine%20Learning%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EResponsible%20ML%26lt%3B%5C%2Flingo-label%26gt%3B%3CLINGO-LABEL%3EText%20Analytics%26lt%3B%5C%2Flingo-label%26gt%3B%26lt%3B%5C%2Flingo-labs%26gt%3B%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FA%3E%3C%2FH2%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FA%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FA%3E%3C%2FH2%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FA%3E%3C%2FH2%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FA%3E%3C%2FH2%3E%3C%2FLINGO-BODY%3E%3C%2FLINGO-SUB%3E
Version history
Last update:
‎Jan 06 2022 05:43 AM
Updated by: