[GH-ISSUE #4959] [feature]: Custom AI Prompt Macros for Request Body Generation #1877

Open
opened 2026-03-16 22:12:41 +03:00 by kerem · 0 comments
Owner

Originally created by @balub on GitHub (Apr 4, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4959

Is there an existing issue for this?

  • I have searched the existing issues

Summary

I’d like to propose a feature that allows users to write and save custom prompts for modifying the request body using AI, and then trigger these prompts via keyboard shortcuts.

Use Case

One of the most common use cases for modifying a request body is using AI to randomly populate the fields with sample or test data.

In most scenarios, the prompt used for AI generation doesn’t change much. It’s often a simple instruction like:

"Randomly populate the fields with info."

Because of this simplicity and repetitive nature, it would be very useful to treat it like a reusable macro.

Proposed Functionality

  • Allow users to define custom prompts for AI-based request body generation.
  • Enable saving these prompts under a name or shortcut label.
  • Allow triggering the saved prompt via a keyboard shortcut.
  • (Optional) Provide a modal preview before applying the changes, or allow silent replacement for faster workflows.

Why should this be worked on?

Benefits

  • Significantly improves developer productivity by removing repetitive steps.
  • Makes AI-based workflows faster and more seamless.
  • Encourages more usage of the AI features by making them accessible through repeatable, user-defined actions.
  • Reduces the need to rewrite the same prompt multiple times—write once, reuse whenever needed.
Originally created by @balub on GitHub (Apr 4, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/4959 ### Is there an existing issue for this? - [x] I have searched the existing issues ### Summary I’d like to propose a feature that allows users to write and save custom prompts for modifying the request body using AI, and then trigger these prompts via keyboard shortcuts. **Use Case** One of the most common use cases for modifying a request body is using AI to randomly populate the fields with sample or test data. In most scenarios, the prompt used for AI generation doesn’t change much. It’s often a simple instruction like: > "Randomly populate the fields with info." Because of this simplicity and repetitive nature, it would be very useful to treat it like a reusable macro. **Proposed Functionality** - Allow users to define custom prompts for AI-based request body generation. - Enable saving these prompts under a name or shortcut label. - Allow triggering the saved prompt via a keyboard shortcut. - (Optional) Provide a modal preview before applying the changes, or allow silent replacement for faster workflows. ### Why should this be worked on? **Benefits** - Significantly improves developer productivity by removing repetitive steps. - Makes AI-based workflows faster and more seamless. - Encourages more usage of the AI features by making them accessible through repeatable, user-defined actions. - Reduces the need to rewrite the same prompt multiple times—write once, reuse whenever needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1877
No description provided.