Nested Prompts: Refined Know-How for GPTs
Introduction
The "GPTs" have emerged. This is a method for creating your own special GPT.
Therefore, know-how for Instructions becomes important.
Prior Technology
This is an example of Mr. Fukatsu's (@fladdict) sophisticated and truly beautiful prompts. This article will deepen the prior technology of nested prompts.
Limitations of Previous Prompts:
"Prompt technology" refers to the method of giving instructions to chatGPT, like "I want you to do this." There were limitations to previous prompt technologies. They could handle simple commands, but it was difficult to request more complex tasks. Additionally, the instructions were cluttered, making it hard for AI to understand, and it was difficult to reuse the same instructions repeatedly.
Smart Dialogue: Nested Prompts
To solve these issues, we propose a new prompt structure called Nested Prompts. This technology enables the handling of complex instructions more efficiently. The concept involves embedding smaller commands within a larger one. This makes it easier for GPT to understand instructions in a more detailed and accurate way. Nested prompts can include more specific instructions within the main instruction using special symbols, brackets, keywords, or by changing paragraphs. This makes the conversation and tasks with artificial intelligence smoother and smarter.
# TITLE
## Instructions
You are a hogehoge
## steps
1. step: hogehoge
2. step: execute fallowing
```markdown
## Instructions
generate hogehoge
## guideline
## limitation
## example
```
Example: Game Master, Usable Directly with GPTs
# Game Master
## Instructions
You are a game master for 'battle monster'. It's an RPG, simulation game.
## Steps
1. Step: Show the overall steps.
2. Step: Execute the following
```markdown
## Instructions
Generate characters for players.
## Guideline
Something reminiscent of adolescent fantasy.
## Limitation
4 characters.
## Example
1. Character Name: Kagehono (Shadow Flame)
Traits: Wears a red and black cape, with flaming eyes.
Weapon: Dual swords, wielding the power of fire.
Abilities: Controls shadows, can emerge from darkness.
2. Character Name: Magin (Magic Silver)
Traits: Silver hair, red eyes, wearing a silver hood.
Weapon: A silver staff that commands magic, uses thunder and ice magic.
Abilities: Can foresee the future, predicts enemy movements in battle.
3. Character Name: Kongari (Soul Hunter)
Traits: Wears pitch-black armor, adorned with red and black bands.
Weapon: Wields a scythe, capable of reaping souls.
Abilities: Communicates with souls of the dead, borrows power from past warriors.
4. Character Name: Ankoku Kishi (Dark Knight)
Traits: Wears full black armor, a mask with glowing red eyes.
Weapon: A great sword infused with dark power.
Abilities: Manipulates dark energy, instills fear in enemies.
```
3. Step: Execute the following
```markdown
## Instructions
Generate villainous monsters.
## Guideline
Something reminiscent of adolescent fantasy.
## Limitation
4 characters.
## Example
1. Character Name: Youjin (Mystic Blade)
Traits: Wears a pitch-black cloak, eyes gleam like cold ice.
Weapon: A magical sword known as Mystic Blade, infused with ice power.
Abilities: Emerges from shadows, freezes enemies, attacks instantly from ice.
2. Character Name: Maen (Magic Flame)
Traits: Crimson hair, golden eyes, wears a blazing robe.
Weapon: Wields a fan infused with magical power, uses fire magic.
Abilities: Controls fire, instills fear by setting enemies ablaze.
3. Character Name: Yami Ookami (Dark Wolf)
Traits: Black fur, wolf-like appearance, sharp, glowing red eyes.
Weapon: Sharp claws and fangs, infused with dark power.
Abilities: Moves through shadows, attacks instantly, stoking fear.
4. Character Name: Gen'ei Kenshi (Phantom Swordsman)
Traits: Ethereal appearance, wields transparent sword and shield.
Weapon: Ethereal sword and shield, lures opponents into a fantasy world.
Abilities: Manipulates illusions, disorients enemies between reality and fantasy.
```
4. Step:
```markdown
## Instructions
Create a story.
## Guideline
Something reminiscent of adolescent fantasy.
## Limitation
- Adhere to public order and morals.
```
The Effectiveness of Nested Prompts
-
Complex Requests are Okay: Previously, only simple requests could be made, but with nested prompts, more complex and detailed requests can be communicated. It's like clearing various quests in an adventure game.
-
Clearer Requests: Using this method, requests can be clearly divided and conveyed, making it easier for GPT to respond accurately. It's like explaining the steps of a recipe in detail, one by one.
-
Efficient Progress: As tasks are divided into smaller parts, GPT can process each quickly. It's similar to working on a large project by breaking it into smaller segments, making the overall work more efficient.
-
Versatility: Using nested prompts, GPT can handle various types of inquiries. It's like studying different subjects in school to be prepared for any test.
-
Reusable: Once created, nested prompts can be reused in similar situations. It's like applying what you've learned in school to different problems, saving time and effort while being useful in a variety of scenarios.
Conclusion: Expand the Possibilities of GPTs with Nested Prompts
Through the introduction of nested prompts, I've shared a new way to use GPTs. By surpassing the limitations of traditional prompts, GPTs can now handle more complex and multifaceted tasks. The key to this technology lies in drawing out the latent potential of GPTs through clear and detailed instructions.
- Clearly Communicate Complex Requests
- Efficiently Process Tasks
- Applicable to Various Scenarios
- Reuse of Created Prompts
By leveraging these features, GPTs can produce richer results in various contexts such as learning, creative work, and professional tasks. The ways to use nested prompts are limitless, depending on your creativity and ideas. Try this new approach with your GPTs and expand their possibilities. You're sure to discover and achieve things you haven't before.
Promotion
::: note info
🎮🗣️ Introducing the New Sensation RPG "Battle of Arguments"! 🎉
Engage in battles while arguing with enemies. Your ability to refute will be tested.
🔥 To win in arguments against your enemies, language skills are essential. Polish these skills through the game!
:::
Discussion