360 Secure SkillHub
360 安全技能中心

Content Creator Workflow

面向自由职业创作者的端到端内容创作流水线:用 wacli 读取 WhatsApp 文本或语音请求,用 OpenAI Whisper API 转写音频,用 DALL-E 3 生成图像并回复客户。脚本含类型化错误处理、大文件分块与网络超时,生成文件默认写入本地输出目录。

terrycarter1985
terrycarter1985
热度 23.86
最近更新 2026-06-19 08:21:47
分类:创作依赖:代码执行 / 第三方 API / 读写文件应用场景:图像生成 / 工作流 / API 集成 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add content-creator-workflow
Metadata
name
content-creator-workflow
description
Multi-modal content creation workflow for freelance creators. Receives customer requests via WhatsApp (text or voice note), transcribes audio with the OpenAI Whisper API, generates images with DALL-E 3, and replies to the customer with the result. Use to automate end-to-end request-to-image delivery.
homepage
https://platform.openai.com/docs/api-reference
tags
["content-creation","whatsapp","whisper","dall-e","automation","workflow"]
metadata
{"openclaw":{"emoji":"🎨","requires":{"bins":["python3"],"env":["OPENAI_API_KEY"]},"primaryEnv":"OPENAI_API_KEY","install":[{"id":"python-brew","kind":"brew","formula":"python","bins":["python3"],"label":"Install Python (brew)"}]}}

Content Creator Workflow

Automates the full freelance content-creation loop: a customer sends a request over WhatsApp (text or voice note), the workflow transcribes any audio, turns the prompt into an image, and sends the result back.

Pipeline

  1. wacli — list/send WhatsApp messages (mock CLI; swap in a real backend).
  2. transcribe — OpenAI Whisper API, with large-file chunking.
  3. generate_images — DALL-E 3 image generation with safe filenames.
  4. workflow — ties the steps together and replies to the customer.

Setup

pip install -r {baseDir}/requirements.txt
export OPENAI_API_KEY="your-api-key"
python3 {baseDir}/scripts/wacli.py login <your-wacli-token>

Generated files default to ./generated. Override with CONTENT_CREATOR_OUTPUT_DIR.

Run

Note: Image generation and transcription can exceed common exec timeouts. When invoking via OpenClaw's exec tool, set a higher timeout (e.g. 300s).

# Process all unread requests end to end
python3 {baseDir}/scripts/workflow.py process-all

# Individual tools
python3 {baseDir}/scripts/transcribe.py path/to/request.mp3
python3 {baseDir}/scripts/generate_images.py "A cute cat wearing a hat"
python3 {baseDir}/scripts/generate_images.py prompts.txt   # one prompt per line
python3 {baseDir}/scripts/wacli.py list

Notes

  • All scripts raise typed errors (TranscriptionError, ImageGenerationError) and catch specific exceptions, so a single bad request never crashes a batch.
  • Network downloads use timeouts and raise_for_status().
  • wacli.py ships with mock messages; replace list_messages / send_message with calls to your real WhatsApp provider before production use.