Skip to content

openserviceprotocol/demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSP Demo Agent

An interactive demo that shows how AI agents use the Open Service Protocol to discover, evaluate, and compare service providers.

Try it live: demo.openserviceprotocol.org

What This Does

Describe what you need in plain language. The agent reads structured OSP service manifests from 9 providers across 3 industries and gives you a ranked comparison — with specific numbers, not vague assessments.

The agent runs on Meta's Llama 4 Scout via Cloudflare Workers AI. OSP is model-agnostic — it works because the format is structured, not because any particular model is used.

Sample Scenarios

Logistics: "8 pallets of pharmaceutical products, temperature-controlled at 5°C, from Basel to Rotterdam, within 3 days"

Consulting: "We're a CHF 120M industrial company and want to expand into the US market"

IT Infrastructure: "We need managed hosting for our web app, 10 containers on GCP, with 24/7 monitoring"

Run Locally

git clone https://github.com/openserviceprotocol/demo.git
cd demo
npm install
cp .env.example .env
# Edit .env with your Cloudflare credentials
npm run dev

You need a free Cloudflare account with Workers AI enabled. See Setup below.

Setup

  1. Create a free Cloudflare account at dash.cloudflare.com
  2. Go to AIWorkers AI (available on the free plan)
  3. Go to My ProfileAPI TokensCreate Token with Workers AI permission
  4. Copy your Account ID (found under Workers & Pages → right sidebar)
  5. Add both to your .env file

The free tier gives you 10,000 Neurons/day — enough for 25-50 demo interactions.

How It Works

Each provider publishes two files:

  • osp.md — a compact summary of what they offer and don't offer (< 500 tokens)
  • service manifest — detailed YAML with pricing, SLAs, certifications, capacity, and more

The agent loads all provider files on startup, receives your request, and matches it against the structured data. Because the format is standardized, the comparison is systematic — not a guess based on marketing copy.

Project Structure

/data
  /scenario-logistics     — 3 transport providers (osp.md + manifests)
  /scenario-consulting    — 3 strategy firms (osp.md + manifests)
  /scenario-it            — 3 hosting providers (osp.md + manifests)
  /fallback               — pre-computed responses for starter prompts
  /prompts                — system prompt template
/src
  /frontend               — React chat interface
  /backend                — API server calling Cloudflare Workers AI

Learn More

License

Apache 2.0

About

Stuff to demonstrate the capabilities and benefits of the open service protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors