genstory story generator
by @muryanice
Use when the user wants to generate a story through Genstory with an API key, submit a Genstory story task, poll task status, and return the final Genstory o...
clawhub install genstory-story-generatorπ About This Skill
name: genstory-story-generator description: Use when the user wants to generate a story through Genstory with an API key, submit a Genstory story task, poll task status, and return the final Genstory online story URL plus cover image. Also use when the user needs setup guidance for obtaining a key from https://www.genstory.app/api-keys and configuring GENSTORY_API_KEY in their skill or workflow.
Genstory Story Generator
Use this skill when a workflow needs to call Genstory to generate a story and return a hosted story page URL.
Before you start
https://www.genstory.app/api-keys.GENSTORY_API_KEY.Required flow
1. Read GENSTORY_API_KEY from the environment or skill config.
2. Submit a task to POST https://www.genstory.app/api/v1/story-tasks.
3. Poll GET https://www.genstory.app/api/v1/story-tasks/{task_id} until the task becomes success or failed.
4. Return the final structured result with:
- story.id
- story.title
- story.url
- story.cover_url
- story.locale
Submit request
Send Authorization: Bearer ${GENSTORY_API_KEY}.
Minimum JSON body:
{
"prompt": "Write a warm bedtime story about a brave little fox."
}
Recommended fields:
prompttitlecharacter_namescenes_countgeneration_type: default textgeneration_mode: default standardlayout_modepage_specpublic_visibilityPolling behavior
pending and processing as in progress.failed, surface the API error clearly.success, return the hosted story data and encourage the user to open the Genstory URL.Output contract
Prefer this final shape:
{
"task_id": "task_uuid",
"status": "success",
"story": {
"id": "story_uuid",
"title": "Story title",
"url": "https://www.genstory.app/stories/story-slug",
"cover_url": "https://cdn.example.com/story-cover.webp",
"locale": "en"
}
}
References
references/api.md.