Platform
Pulse
Overview

Pulse (PBCP Pulse)

App URL: https://pulse.pcampus.co
Context API: https://pbcp-api.pcampus.co/context

Overview

PBCP Pulse คือ reference application ของ Pcampus Business Context Platform (PBCP) ทำหน้าที่แปลง Business Context ให้กลายเป็น Business Story ที่เจ้าของธุรกิจอ่านเข้าใจได้โดยไม่ต้องรู้ infrastructure

Every screen answers: What happened? · Why? · What next?

Pulse ไม่ได้เป็น ops dashboard — มันเป็น Story Explorer ที่ทำให้ธุรกิจเห็นตัวเองผ่านสายตาของ data

Who uses this

Personaใช้ทำอะไร
Business owner / Stakeholderดู Business Story — ลูกค้าทำอะไร, ยอดขายเป็นอย่างไร, โปรโมชั่นได้ผลไหม
Product Managerตรวจสอบความถูกต้องของ Business Context
Platform Engineerใช้ Developer Mode — Event Timeline, Pipeline, Health
Sales / DemoShow PBCP value ให้ prospective customers ใน 60 วินาที

Two modes

Story View — default experience สำหรับ business stakeholders: เห็น story ของแต่ละ entity ผ่าน timeline
Developer Mode — secondary, สำหรับ engineer ที่ต้องการดู raw events และ pipeline

Story View — how it works

Story types

Story คือ evolution ของ business entity ที่ reconstruct จาก Business Context — ไม่ใช่ log ของ raw events

Storyตอบคำถาม
Customer Storyลูกค้าคนนี้เป็นใคร ทำอะไรบ้าง มูลค่ารวมเท่าไหร่
Order Storyorder นี้เดินทางอย่างไร ติดขัดตรงไหน
Product Storyสินค้านี้ขายดีแค่ไหน ใครซื้อ ช่วงไหน
Campaign Storycampaign นี้ได้ผลไหม ใครตอบสนอง
Promotion Storyโปรโมชั่นนี้คุ้มค่าไหม เทียบกับยอดขาย

1 engine หลาย domain — pharmacy ใช้ Customer Story, Order Story ได้เลย domain อื่น (retail, school, factory) ใช้ engine เดียวกัน

Data flow

Story Timeline UX

Three-panel layout — เลือก entity → เห็น timeline → drill down รายละเอียด + recommended actions

Pilot — Pharmacy

Pharmacy Platform คือ first production implementation ของ PBCP

ร้านยาส่ง Business Events ผ่าน Event SDK:

  • customer.visited — คนไข้มาร้าน
  • prescription.dispensed — จ่ายยา
  • product.sold — ขายสินค้า
  • payment.completed — ชำระเงิน

Pulse แสดง Customer Story: คนไข้คนนี้มาร้านบ่อยแค่ไหน ซื้ออะไรบ้าง ใช้ยาต่อเนื่องไหม — โดยไม่ต้องเปิด database เอง

Technical overview

AreaChoice
FrameworkNext.js, React, TypeScript
UITailwind CSS, shadcn/ui
AnimationMotion (motion.dev) — timeline transitions
ChartsApache ECharts — funnel, sankey, time series
Story TimelineCustom StoryTimeline component (ไม่ใช้ chart library)
Context APIPBCP Context API v1 (required)
IntelligencePBCP Intelligence API v1 (optional enrich)
Deploymentcockpit.pcampus.local · demo env: COCKPIT_DEMO_MODE

Integration

Pulse อ่านข้อมูลผ่าน Context API เท่านั้น — ไม่เคย query Event Store โดยตรง ไม่ส่ง LINE/email/push เอง

Context API overview

MethodEndpointDescription
GET/context/pulseToday's business summary
GET/context/customersList customers with context
GET/context/customers/:idFull Customer Context + story
GET/context/ordersList orders with context
GET/context/orders/:idFull Order Story
GET/context/products/:idProduct Story
GET/context/campaigns/:idCampaign Story

Full PBCP Core API reference → API Reference →

Pulse (PBCP Pulse)

App URL: https://pulse.pcampus.co
Context API: https://pbcp-api.pcampus.co/context

Overview

PBCP Pulse is the reference application of the Pcampus Business Context Platform (PBCP). It transforms Business Context into Business Stories that business owners can understand without needing to know the underlying infrastructure.

Every screen answers: What happened? · Why? · What next?

Pulse is not an ops dashboard — it is a Story Explorer that lets businesses see themselves through the lens of their data.

Who uses this

PersonaWhat they do
Business owner / StakeholderView Business Stories — what customers are doing, how sales are trending, whether promotions are working
Product ManagerVerify the accuracy of Business Context
Platform EngineerUse Developer Mode — Event Timeline, Pipeline, Health
Sales / DemoDemonstrate PBCP value to prospective customers in 60 seconds

Two modes

Story View — the default experience for business stakeholders: see each entity's story through a timeline
Developer Mode — secondary mode for engineers who need to inspect raw events and the pipeline

Story View — how it works

Story types

A Story is the evolution of a business entity reconstructed from Business Context — not a log of raw events.

StoryQuestion it answers
Customer StoryWho is this customer, what have they done, what is their total value?
Order StoryHow did this order travel through the system, where did it get stuck?
Product StoryHow well does this product sell, who buys it, and when?
Campaign StoryDid this campaign work, who responded?
Promotion StoryWas this promotion worth it compared to the revenue it drove?

One engine, many domains — a pharmacy uses Customer Story and Order Story out of the box; other domains (retail, school, factory) use the same engine.

Data flow

Story Timeline UX

Three-panel layout — select an entity → see its timeline → drill down into details + recommended actions

Pilot — Pharmacy

Pharmacy Platform is the first production implementation of PBCP.

The pharmacy sends Business Events via the Event SDK:

  • customer.visited — patient visits the pharmacy
  • prescription.dispensed — medication dispensed
  • product.sold — product sold
  • payment.completed — payment received

Pulse displays the Customer Story: how often this patient visits, what they purchase, whether they are on continuous medication — without ever opening the database directly.

Technical overview

AreaChoice
FrameworkNext.js, React, TypeScript
UITailwind CSS, shadcn/ui
AnimationMotion (motion.dev) — timeline transitions
ChartsApache ECharts — funnel, sankey, time series
Story TimelineCustom StoryTimeline component (no chart library)
Context APIPBCP Context API v1 (required)
IntelligencePBCP Intelligence API v1 (optional enrich)
Deploymentcockpit.pcampus.local · demo env: COCKPIT_DEMO_MODE

Integration

Pulse reads data through the Context API only — it never queries the Event Store directly and never sends LINE messages, emails, or push notifications itself.

Context API overview

MethodEndpointDescription
GET/context/pulseToday's business summary
GET/context/customersList customers with context
GET/context/customers/:idFull Customer Context + story
GET/context/ordersList orders with context
GET/context/orders/:idFull Order Story
GET/context/products/:idProduct Story
GET/context/campaigns/:idCampaign Story

Full PBCP Core API reference → API Reference →