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.

📄 Quickstart Image

0) Discovery

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

  1. Parse roast_text → detect claim/critique.
  2. Acknowledge valid critique.
  3. Pivot to action.
  4. Apply tone knobs from style.json.
  5. 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