Request Random Jokes for Openclaw

A versatile Python-based skill for AI agents to fetch random jokes, funny stories, or cynical quotes from public APIs.

aolinlu
v1.0.0
Mar 31, 2026
0
755
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install request-random-jokes

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install request-random-jokes using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Request Random Jokes?

Request Random Jokes is a specialized utility designed to add personality and engagement to AI agents by tapping into live humor APIs. By integrating this into your collection of Openclaw Skills, you enable your agent to move beyond dry task execution and provide interactive, light-hearted content ranging from classic jokes to contemporary social commentary found in dujitang.

This skill is particularly useful for developers building conversational interfaces or social bots that require a human-like touch. It handles the API handshake and response parsing, returning clean, plain-text content that an AI agent can easily digest and present to the end user.

Request Random Jokes Use Cases

  • Providing entertainment when a user explicitly asks for a joke or funny story.
  • Adding a touch of humor to long-running automated workflows to improve user experience.
  • Generating random daily quotes or cynical 'poisonous chicken soup' for social media bots.
  • Testing the multi-modal interaction capabilities of an AI agent within the Openclaw Skills ecosystem.

How Request Random Jokes Works

  1. The user or parent agent triggers the request_random_jokes.py script, optionally passing a specific content category.
  2. The script evaluates the input: if no type is specified, it randomly selects one of the three supported API endpoints.
  3. A network request is dispatched to the corresponding public API (xiaohua, duanzi, or dujitang).
  4. The script parses the raw API response and extracts the primary text content.
  5. The final content is output as a clean string to the standard output for the AI agent to utilize.

Request Random Jokes Setup

To integrate this into your environment, ensure you have Python installed and the script available in your agent's execution path. No external API keys are required for these public endpoints.

# Navigate to your skills directory
cd path/to/openclaw-skills/request-random-jokes

# Test a basic joke request
python request_random_jokes.py

# Request a specific content type (e.g., funny stories)
python request_random_jokes.py duanzi

Request Random Jokes Data Schema & Taxonomy

The skill operates on a simple input-output model, ensuring high compatibility with various AI agent architectures.

Parameter Type Description Values
Content Type String Optional argument to filter the source API. xiaohua, duanzi, dujitang
Output Plain Text The raw content returned from the API. String

Files Included:

  • request_random_jokes.py: The logic core for API interaction.
  • SKILL.md: Technical documentation for Openclaw Skills integration.

Request Random Jokes Advanced Features

  • Dynamic API Selection: Automatically cycles through endpoints to prevent repetitive content if no specific type is requested.
  • Low Overhead: Uses standard libraries to ensure the script executes rapidly within any Openclaw Skills workflow.
  • Extensible Content Types: Easily adaptable to include additional Chinese or English humor APIs by modifying the endpoint mapping in the Python script.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*