Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio - General / Copilot Studio 配置 HTTP...
Copilot Studio - General
Unanswered

Copilot Studio 配置 HTTP 请求 azure openai

(0) ShareShare
ReportReport
Posted on by

Copilot Studio 配置HTTP请求

  1. 添加http请求模块:
     

    _4-1714303822311.png

     

     

    1. 配置URL方法选POST
       

      _5-1714303830860.png

       

       

      1. 配置页眉和正文,添加键api-key,值azure opeinai key和Content-type 值application/json。粘贴json内容后选择编辑公式,将用户响应变量写在 content中   {

        角色:"用户",

        内容:Global.ceshi

            }

         

         

        _6-1714303840834.png

         

         

        1. 数据响应类型选择Record,编辑架构输入以下内容:
        kind: Record
        properties:
          choices:
            type:
              kind: Table
              properties:
                content_filter_results:
                  type:
                    kind: Record
                    properties:
                      hate:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      self_harm:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      sexual:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      violence:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                finish_reason: String
                index: Number
                logprobs: Blank
                message:
                  type:
                    kind: Record
                    properties:
                      content: String
                      role: String

          created: Number
          id: String
          model: String
          object: String
          prompt_filter_results:
            type:
              kind: Table
              properties:
                content_filter_results:
                  type:
                    kind: Record
                    properties:
                      hate:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      self_harm:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      sexual:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                      violence:
                        type:
                          kind: Record
                          properties:
                            filtered: Boolean
                            severity: String

                prompt_index: Number

          system_fingerprint: String
          usage:
            type:
              kind: Record
              properties:
                completion_tokens: Number
                prompt_tokens: Number
                total_tokens: Number
        1. 添加输出消息:选则FX公式输入以下内容:

          上一页(Topic._respones.choices).message.content

           

          _7-1714303859123.png

          结果:

          _8-1714303897776.png

           

           

           

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75