web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

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

Copilot Studio 配置 HTTP 请求 azure openai

Like (0) ShareShare
ReportReport
Posted on 28 Apr 2024 11:33:38 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

           

           

           

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2