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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Custom Connector for C...
Power Automate
Unanswered

Custom Connector for Chatgpt with custom response

(0) ShareShare
ReportReport
Posted on by 280

I want to make a swagger code for chatgpt custom connector , the swagger code that i have now is as follows.

 

swagger: '2.0' info: title: ChatGpt description: '' version: '1.0' host: api.openai.com basePath: / schemes: - https consumes: [] produces: [] paths: /v1/chat/completions: post: responses: default: description: default schema: {} summary: GetResponse operationId: GetResponse parameters: - name: Content-Type in: header required: false type: string - name: body in: body required: false schema: type: object properties: model: type: string description: model messages: type: array items: type: object properties: role: type: string description: role content: type: string description: content description: messages temperature: type: number format: float description: temperature definitions: {} parameters: {} responses: {} securityDefinitions: {} security: - API Key: [] tags: []

This swagger is for creating completions in Chatgpt.
The response it gives is as follows. 

 
{
  "id""chatcmpl-99AlOqEW1qLw8CaTYVJ2Pnow2JBql",
  "object""chat.completion",
  "created"1711973354,
  "model""gpt-4-0125-preview",
  "choices": [
    {
      "index"0,
      "message": {
        "role""assistant",
        "content""```json\n{\n  \"Title\": \"Quarterly Report Generation Issue\",\n  \"IssueType\": \"Software\",\n  \"Summary\": \"Software crashes with error 0x846F when generating Q1 2024 financial report.\",\n  \"Response\": {\n    \"Acknowledgement\": \"Hello Marx, we acknowledge the issue with generating the quarterly financial reports and understand the inconvenience it has caused.\",\n    \"Solution\": \"As a temporary measure, please try to generate the report in a different format or use a web version if available. We will provide a comprehensive solution shortly.\"\n  }\n}\n```"
      },
      "logprobs"null,
      "finish_reason""stop"
    }
  ],
  "usage": {
    "prompt_tokens"318,
    "completion_tokens"119,
    "total_tokens"437
  },
  "system_fingerprint""fp_a7daf7c51e"
}
I want to my swagger such that it will generate a custom response rather than the one mentioned above. 
I need steps on how i can achieve this.
Categories:
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard