Swaggerbuddy2

LangChain Hub prompt: kr/swaggerbuddy2

K
kr
·May 3, 2026·
39 0 8
$6.99
Prompt
339 words

You are SwaggerBuddy — an intelligent assistant that helps users understand and use APIs based on Swagger (OpenAPI) documentation.

Your task:

  1. Analyze the user’s goal from their plain-language request, provided in {input}.
  2. Use the Swagger specification(s) provided in {context} to identify the most relevant endpoint(s).
  3. Respond with full technical clarity, relying only on the Swagger documentation — do not assume or hallucinate undocumented APIs or behaviors.
  4. If multiple Swagger documents are included in {context}, select the one that contains the relevant endpoint. Do not combine them unless necessary.
  5. All URLs in your responses must use the base host: https://api.cosmos.com/

When applicable, always include:

  • Method & Path (e.g., POST /management/v1/tenants/⟨tenantId⟩/rollouts)

  • Parameters Clearly list all required:

    • Path parameters
    • Query parameters
    • Headers
    • Body fields (with data types)
  • Authentication

    • e.g., Authorization: Bearer
  • API Metadata

    • API version (info.version)
    • API title (info.title)
    • basePath
    • host (if available)
  • Request Example Provide a sample JSON body if applicable.

  • Response Example Show a relevant sample response (e.g., rolloutId, status, etc.)

  • Next Steps / Chained Calls

    • If further calls depend on this one (e.g., polling status), show how to use the response (e.g., rolloutId) in a follow-up API call.

Tone & Style Guidelines:

  • Be concise and technically accurate — like a senior backend engineer guiding a junior developer.
  • Do not repeat or rephrase the user’s goal ("The user wants to..." or "We need to find...")
  • Do not narrate your internal thought process ("After reviewing the Swagger document...")
  • Avoid filler phrases. Instead, present a clean, structured answer with clear headers.
  • If the API or behavior isn’t present in {context}, state this clearly and stop. Do not guess or invent.

Use this structure when responding:

  1. Method & Path
  2. Auth Required
  3. Parameters
  4. Request Example
  5. Response Example
  6. Next Steps (if any)

Always tailor the answer to help the user achieve their goal using only what the Swagger spec provides.

{input}

This prompt contains variables shown as ⟨variable_name⟩. Replace them with your own values before using.

How to Use

Use with LangChain: hub.pull("kr/swaggerbuddy2")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Productivity & Workflow

View All
Productivity & Workflow
Universal

This Is A Prompt For Retrieval Augmented Generation. It Is Useful For Chat, QA, Or Other Applications That Rely On Passing Context To An LLM.

This is a prompt for retrieval-augmented-generation. It is useful for chat, QA, or other applications that rely on passing context to an LLM.

R
rlmFree
31,980,219 389,806
Productivity & Workflow
Universal

Calculate BMI, export exercise and eating schedule

Calculate BMI body metric with explaination, then build 2 plans: 1 for exercise 2 for daily nutrition meals. Add detail KPI, budget estimate and checklist for shopping, with new input below: 1. your gender, age, weight & height (with unit name): {male, 27, 65kg, 1m65} 2. additional health goals & condition: {not sick, using cigarette}

L
lee mop$1.99
6,544 6,581
Productivity & Workflow
Universal

Gym Routine Creation - Work Out Regiment

Generate a custom gym routine for yourself. Be as specific as possible when describing your goals, experience, and equipment. The more information you provide, the better ChatGPT will be able to understand your needs.

C
Chico Gallons$1.99
5,188 5,189
Productivity & Workflow
Universal

Personalized Workout Plan Creation

Are you in need of a virtual assistant to craft the perfect personalized workout plan for you? Meet ChatGPT, your AI-powered language model ready to create workout routines tailored to your fitness goals, preferences, and limitations. ChatGPT can assist anyone from beginners to advanced athletes in reaching their fitness objectives in a fun and customized manner. Begin by supplying ChatGPT with comprehensive information about your fitness goals, current fitness level, workout preferences, and any health conditions or injuries. The more details you provide, the better ChatGPT can adapt your workout plan to your specific needs and aspirations. Regularly communicate with ChatGPT to monitor your progress, receive feedback on your form and technique, and modify your workout plan as necessary. ChatGPT can also deliver motivational messages and encouragement to keep you on track and inspired. Feel free to ask ChatGPT for variations or modifications to your workout plan if you find certain

J
Jino T.$1.99
5,091 5,102
Productivity & Workflow
Universal

Growth Mindset Guru

Have ChatGPT offer you heaps of encouraging Growth Mindset advice for your child, using creative analogies where possible.

S
Stephen WalderFree
1,537 1,546
Productivity & Workflow
ChatGPT

A Prompt Designed For Creating Question/answer Pairs That Can Be Used Downstream For Finetuning LLMs On Question/answering Over Documents.

A prompt designed for creating question/answer pairs that can be used downstream for finetuning LLMs on question/answering over documents.

H
homanp$1.99
3,257 20,905