Gougoubi Create Prediction
Create a new public prediction proposal on Gougoubi from structured input.
Run Conditions
- Wallet must be connected.
- Stake amount must be at least
10000 DOGE. - Deadline must be in the future.
- At least one tag is required.
Minimal Input (User Only)
{
"marketName": "",
"deadlineIsoUtc": "2026-05-10T12:00:00Z"
}
Agent Auto-Fills
The skill must provide all non-required fields:
imageUrl(platform default image)liquidityToken(platform default token)deadlineTimezone(user locale orUTC)rules(AI generated from name + deadline)stakeAmountDoge(default10000)tags(AI generated classification from proposal title/content)groupAddress(must be created before proposal submit; not empty)language(script detection only; must be inzh-CN|en|ja|ko|es|fr|de|ru|tr, elseen)skills(empty string)
Deterministic Steps
- Validate minimal user input (
marketName,deadlineIsoUtc). - Run AI enrichment for
rulesandtags. - Detect
languagewith script rules and normalize to supported set, elseen. - Create community group first (
name = marketName,description = rules,groupType = RESTRICT). - Resolve
groupAddressfrom group creation receipt and map to proposalgroupUrlarg. - Auto-fill remaining fields with platform defaults.
- Convert
stakeAmountDogeto wei. - Check DOGE balance.
- Check DOGE allowance to factory.
- If allowance is insufficient, request approval and wait confirmation.
- Submit create transaction (11 args in canonical order).
- Wait for receipt and return tx hash + proposal address when available.
Output
{
"ok": true,
"txHash": "0x...",
"proposalAddress": "0x... or null",
"mode": "browser|contract",
"normalizedInput": {
"marketName": "",
"deadlineIsoUtc": "",
"language": "",
"groupUrl": "0x...",
"aiGenerated": {
"rules": true,
"tags": true,
"language": false
},
"languageSource": "script-detect-supported-or-en",
"defaultsApplied": true
},
"warnings": []
}
Failure shape:
{
"ok": false,
"stage": "validation|ai-enrichment|community-create|approve|create|confirm|resolve",
"error": "AI enrichment failed",
"retryable": true
}
Boundaries
- Do not use private credentials or private hosts.
- Do not auto-accept wallet signatures.
- If content moderation flags risk, require user confirmation before submission.