← 返回
未分类 Key 中文

Risha.ai Content Generation

Discover, prepare, and execute any Risha.ai capability available to the authenticated account. Use when Codex needs to authenticate to a Risha workspace, loa...
发现、准备并执行已认证账户可用的任何 Risha.ai 功能。当 Codex 需要向 Risha 工作区进行身份验证时使用...
aimedialab aimedialab 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 240
下载
💾 0
安装
1
版本
#latest

概述

Risha Content Generator

Use this skill to drive Risha's capability workflow from discovery through final output retrieval. Prefer the bundled helper script for repeated API work so the request flow stays consistent and the payload shape remains inspectable.

Workflow

  1. Gather credentials and decide the auth mode.
  2. Load the bundled capability catalog or refresh it from the live account.
  3. Inspect the chosen capability's manual fields to build valid prompt_data.
  4. Optionally inspect creator choices for creator-backed text workflows.
  5. Estimate credits before submitting.
  6. Submit a generation request and poll until it finishes.
  7. Return the final generated content or explain the failure clearly.

Choose Auth Mode

Prefer one of these auth approaches:

  • RISHA_AUTH_HEADER when the caller already has a working header such as Bearer ... or Basic ....
  • RISHA_EMAIL and RISHA_PASSWORD when the skill can log in directly through /api/auth/login/.

Set RISHA_API_BASE_URL only if the host changes. The default is https://adminxcore-api.risha.ai/api.

Before doing generation work, validate auth with the helper:

python3 scripts/risha_api.py me

If login succeeds but the script cannot derive a reusable auth token/header from the response, stop guessing and ask the user for the exact header format that works in their environment.

Load The Capability Catalog First

Never hardcode prompt_data blindly. The valid keys come from each capability's linked manual definition.

This skill now ships with a current account snapshot:

Refresh that snapshot in one step when needed:

python3 scripts/risha_api.py catalog \
  --quiet \
  --write-json references/current-capabilities.json \
  --write-markdown references/current-capabilities.md

Use the catalog for:

  • capability IDs
  • category and output type
  • async vs sync behavior
  • required inputs
  • field choice sources
  • current input and output schemas

When you need one capability in full detail, inspect it directly:

python3 scripts/risha_api.py capability 123

Use the capability manual to inspect:

  • manual.fields
  • each field's field_path
  • json_type
  • is_required
  • choice_model
  • enum_values
  • credit rules when present

Build prompt_data from those manual fields. Use the field path exactly as Risha expects. For nested paths such as input.text, create nested JSON objects.

The current account snapshot includes 17 accessible capabilities across:

  • multimodal
  • text_generation
  • tts

Treat the snapshot as the fast path and the live catalog command as the refresh path.

Inspect Creator Choices When Needed

For creator-backed writing flows, inspect available creators before choosing one:

python3 scripts/risha_api.py creators

If the relevant manual field uses choice_model: creators, pass the creator's field_value, not just its label.

Use the same pattern for dialects and voices when the manual points to those choice models.

Generate Content

The helper now includes credit preview by default. Before every generate request, it fetches:

  • current available credits
  • estimated cost for the selected capability and prompt_data
  • projected remaining credits after submission

If you want the preview without creating anything, use:

python3 scripts/risha_api.py estimate \
  --capability-id 123 \
  --prompt-data-file /absolute/path/prompt-data.json

Pass either inline JSON or a JSON file:

python3 scripts/risha_api.py generate \
  --capability-id 123 \
  --title "LinkedIn post draft" \
  --prompt-data '{"input":{"topic":"AI adoption","tone":"confident"}}'

Or:

python3 scripts/risha_api.py generate \
  --capability-id 123 \
  --prompt-data-file /absolute/path/prompt-data.json \
  --wait

Use --wait to poll until the request reaches a terminal state. Terminal states are:

  • completed
  • failed
  • cancelled

When completed, prefer returning:

  • generated_content.content for text
  • generated_content.asset or thumbnail URLs for media
  • generated_content.content_metadata when it contains useful structured extras

The generate response now includes a credit_preview block alongside the request or final generation result.

Chat Endpoint

Risha also exposes /api/chat/ and /api/chat/stream/, but the schema does not currently describe their request bodies. Treat those endpoints as exploratory only unless the user provides working payload examples. Prefer the capability plus generation-request flow for reliable automation.

Troubleshooting

  • If /auth/login/ returns 400 with Invalid email or password, confirm credentials before retrying.
  • If a generation request fails, inspect error_message on the request record.
  • If a capability detail lacks enough manual information, read references/risha-api.md and inspect the live capability JSON with the helper before constructing payloads.
  • If the API host returns intermittent 502 Bad Gateway, retry with backoff instead of rewriting the workflow.

Resources

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 15:04 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

content-creation

文章去AI味工具

user_ab5ae6ee
去除文本中的AI写作痕迹,让文字读起来更像人类写作。当用户要求'去AI味'、'降AI味'、'让回复更像人话'、'润色'、'改写得更自然'时使用。检测并修复:AI高频词汇、过度结构化、虚假客观性、机械化连接词、完美主义陷阱、公式化结尾、过度修
★ 177 📥 26,565
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 940 📥 212,704
content-creation

humanizer-zh

liuxy951129-cpu
去除文本中的 AI 生成痕迹。适用于编辑或审阅文本,使其听起来更自然、更像人类书写。 基于维基百科的"AI 写作特征"综合指南。检测并修复以下模式:夸大的象征意义、 宣传性语言、以 -ing 结尾的肤浅分析、模糊的归因、破折号过度使用、三段
★ 64 📥 31,068