Conditional Branching

Conditional Branching

Gives a staged prompt template that analyses a problem, branches to a math, logic or data approach, verifies the result and states a final answer.

Conditional Branching Template

Task: Analyze and solve the following problem using the appropriate approach based on problem characteristics.

Problem: {{problem}}

Stage 1: Problem Analysis

{{understanding_template}}

Stage 2: Approach Selection

Based on your analysis, determine which of the following approaches is most appropriate:

A) If this is primarily a mathematical calculation problem:
{{mathematical_reasoning_template}}

B) If this is primarily a logical reasoning problem:
{{logical_reasoning_template}}

C) If this is primarily a data analysis problem:
{{data_analysis_template}}

Stage 3: Solution Verification

{{verification_template}}

Stage 4: Final Answer

Provide your final answer to the original problem.

© davidkimai · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,042 prompts

More by @OpenSourceBuffGuy

See all
Pop Fashion Editorial with Retro TV prompt image

Pop Fashion Editorial with Retro TV

Creates a pastel studio fashion editorial of a woman blowing a bubblegum bubble while leaning on a retro CRT TV that shows her mirrored image.

image-prompt, nano-banana, json-prompt, fashion, editorial, fashion-shoot, photorealistic, pastel, vibrant-colors, studio-lighting, woman, portrait, cinematic, y2k, vintage, surreal, still-life, medium-shot, for-photographers, structured-output, concept-art

Flipkart campaign poster with walking model and products prompt image

Flipkart campaign poster with walking model and products

Makes a bold collage-style e-commerce campaign poster of a walking streetwear model with floating product cutouts, graphics and tilted headline.

image-prompt, act-as, poster, collage, ecommerce, advertising, social-media-graphic, fashion, editorial, typography, text-rendering, india, vibrant-colors, instagram, social-media, guardrails, long-form, nano-banana, for-marketers, for-designers

Adaptyv Foundry API prompt image

Adaptyv Foundry API

Teaches an AI agent to use the Adaptyv Foundry API and SDK to design protein assays, estimate costs, submit sequences, track lab progress and fetch results.

agent-skill, python, api, biotechnology, protein-engineering, biology, drug-discovery, estimation, planner, code-generation, for-researchers, for-developers, long-form, advanced, authentication, tool-use, documentation, code, best-practices, scientific-computing

Reviews

Loading reviews…

Discussion

Loading comments…