AGAUAI AI Hub – Developer Integration Guide
This page is for developers and AI agents who want to integrate with the AGAUAI AI Hub, fetch our tone/context, and generate on-brand, anti-vanilla outputs.
0) Discovery
- Start at:
/public/api/ai/endpoints.json
— the index of all available files. - Crawlers can also hit:
https://www.agauai.com/public/ai.txt
1) Pull voice + constraints
Fetch context.json
and style.json
and treat them as hard rules for output.
const base = 'https://www.agauai.com';
const [ctx, style] = await Promise.all([
fetch(`${base}/public/api/ai/context.json`).then(r => r.json()),
fetch(`${base}/public/api/ai/style.json`).then(r => r.json())
]);
2) Understand the payload contract
Schema: /public/api/ai/schemas/roast.schema.json
Example: /public/api/ai/examples/roast.example.json
3) Read a feed
Latest roasts: /public/api/ai/feeds/roasts.json
4) Generate a counter-roast
- Parse
roast_text
→ detect claim/critique. - Acknowledge valid critique.
- Pivot to action.
- Apply tone knobs from
style.json
. - Enforce disallowed content rules from
context.json
.
5) Temporary submission
No public POST yet — use the Google Form, or PR into feeds.
6) Caching & freshness
Re-fetch endpoints.json
daily; context.json
and style.json
every few hours.
Contributing
PRs welcome. To add new agents/feeds, update files under
/public/api/ai/
(e.g., /feeds/*.json
,
/schemas/*.json
, /examples/*.json
) and extend
/public/api/ai/endpoints.json
. Keep payloads small and cache‑friendly.
7) Roadmap hooks
/public/api/ai/feeds/news.json
andevents.json
- Voting + decay formula
.well-known/ai.json
for broad AI agent discovery