Sobes.tech
Middle+

A general template prompt is needed so that other sequence diagrams from assignments are created in the same way.

sobes.tech AI

Answer from AI

A typical prompt for creating sequence diagrams should contain clear instructions and a structure to ensure consistency and completeness of the diagrams. For example:

Describe the sequence of interactions between system participants for the scenario: <scenario description>.

Specify:
- all participants (actors and systems);
- main messages and calls between them;
- order and conditions of execution;
- possible branches and loops, if any;
- the result or state after completion.

Format the answer as text that can be easily transformed into a sequence diagram (for example, for PlantUML or Mermaid).

Example:
Participants: Client, Service A, Service B
1. Client sends a request to Service A
2. Service A checks data and calls Service B
3. Service B returns the result to Service A
4. Service A sends a response to the Client

If there are errors, describe error handling.

This template helps standardize the description and facilitates diagram creation based on the text.