Generate

Generate personalized onchain stories about market activity, significant bets, and price movements.

This endpoint creates narrative-driven content about Polymarket activity tailored to a specific user's wallet and interests. Stories are generated from multiple data sources:

Story Types:

  • New Markets (new_market): Recently created prediction markets relevant to the user
  • Significant Bets (user_markets_bets, relevant_markets_bets, bet): Large bets on markets the user participates in or related markets discovered via graph analysis
  • Price Changes (price_change): Markets experiencing significant price movements, with optional AI-generated commentary explaining the change
  • Relevant Markets (relevant_market): Markets related to user's activity without recent bet or price activity

Engines:

  • polymarket_v1: Multi-source, modular story generation with granular control over each story type. Configure time windows, minimum bet amounts, and result counts independently for each source.
  • polymarket_v2: Simplified, unified approach combining all signals into a single ranked story feed. Just specify num_stories and new_market_hours.

Data Sources:

  • Elasticsearch: Market metadata, price changes, new markets
  • Neo4j: Bet graph, user relationships, market connections
  • DynamoDB: Market details, bet history, price change events
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
enum
required

Story generation engine to use.

  • polymarket_v1: Multi-source modular generation with granular control over each story type
  • polymarket_v2: Simplified unified approach combining all signals into a single ranked feed
Allowed:
params
required

Engine-specific parameters. Use StoriesV1Params for polymarket_v1 or StoriesV2Params for polymarket_v2.

Responses

Language
Credentials
Bearer
API Key
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json