Introduction
This SOP describes how to generate a dad joke for team morale based on a supplied topic. If no topic is provided, the process selects an appropriate topic automatically. The result is a light‑hearted joke that is suitable for a workplace environment.
Process
- Receive Input
- Accept the field topic (optional). It may contain a short description of the desired subject for the joke.
- Determine Topic
- If topic is non‑empty, set used_topic to the provided value.
- If topic is empty or missing, randomly select a topic from a predefined safe list (e.g., "technology", "food", "animals", "sports", "office life"). Set used_topic to the selected value.
- Generate Joke
- Create a dad‑style joke that:
- References used_topic.
- Uses a simple pun or wordplay.
- Is appropriate for a professional setting (no profanity, offensive content, or sensitive subjects).
- Ensure the joke is concise (one or two sentences) and ends with a light punchline.
- Create a dad‑style joke that:
- Return Results
- Output the generated joke as joke.
- Output the topic that was used as used_topic.
Input
- topic: Optional text – The subject or theme for the dad joke. If omitted or empty, the process will choose a topic automatically.
Output
- joke: Text – The generated dad joke.
- used_topic: Text – The topic that was used to create the joke (either the provided topic or the automatically selected one).

