Add Monday demo journeys and walkthrough

This commit is contained in:
2026-11-05 22:28:38 +00:00
parent 61b0097dc2
commit c8a81eba08
6 changed files with 50 additions and 3 deletions
+37 -1
View File
@@ -98,7 +98,13 @@ export const demoLandscape = (): LandscapeModel => ({
{ id: 'api-email', sourceId: 'api', targetId: 'email', label: 'Send confirmation', description: 'API asks the email platform to send a confirmation.', payload: '{"template":"order-confirmation","to":"alex@example.com"}' },
{ id: 'website-api-register', sourceId: 'website', targetId: 'api', label: 'Registration', description: 'Website submits a new customer registration.', payload: '{"email":"alex@example.com"}' },
{ id: 'api-crm-register', sourceId: 'api', targetId: 'crm', label: 'Create customer', description: 'API creates the customer profile.', payload: '{"customerId":"cus_89","status":"active"}' },
{ id: 'crm-email', sourceId: 'crm', targetId: 'email', label: 'Welcome email', description: 'CRM triggers the welcome message.', payload: '{"template":"welcome","customerId":"cus_89"}' }
{ id: 'crm-email', sourceId: 'crm', targetId: 'email', label: 'Welcome email', description: 'CRM triggers the welcome message.', payload: '{"template":"welcome","customerId":"cus_89"}' },
{ id: 'website-api-contact', sourceId: 'website', targetId: 'api', label: 'Contact enquiry', description: 'Website sends a contact enquiry to the API.', payload: '{"requestId":"req_1001","topic":"sample enquiry"}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true },
{ id: 'api-crm-contact', sourceId: 'api', targetId: 'crm', label: 'Store enquiry', description: 'API stores a contact enquiry in the CRM.', payload: '{"requestId":"req_1001","status":"open"}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true },
{ id: 'website-api-sample', sourceId: 'website', targetId: 'api', label: 'Sample request', description: 'Website sends a product sample request.', payload: '{"orderId":"smp_1042","sku":"sample-blue"}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true },
{ id: 'api-erp-sample', sourceId: 'api', targetId: 'erp', label: 'Reserve sample', description: 'API asks ERP to reserve sample stock.', payload: '{"sku":"sample-blue","quantity":1}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'scheduled', showCableLabel: true },
{ id: 'website-api-commercial', sourceId: 'website', targetId: 'api', label: 'Commercial order', description: 'Website submits a commercial order.', payload: '{"orderId":"ord_2048","total":249.0}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true },
{ id: 'api-erp-commercial', sourceId: 'api', targetId: 'erp', label: 'Fulfil commercial order', description: 'API creates the commercial order in ERP.', payload: '{"orderId":"ord_2048","status":"new"}', protocol: 'HTTPS', dataType: 'JSON', deliveryMethod: 'immediate', showCableLabel: true }
],
scenarios: [
{
@@ -116,6 +122,36 @@ export const demoLandscape = (): LandscapeModel => ({
{ id: 'register-2', connectionIds: ['api-crm-register'], explanation: 'The API creates the CRM customer record.', payload: '{"status":"active"}', delayMs: 1000 },
{ id: 'register-3', connectionIds: ['crm-email'], explanation: 'The CRM triggers a welcome email.', payload: '{"template":"welcome"}', delayMs: 1000 }
]
},
{
id: 'contact-enquiry', name: 'Contact enquiry', description: 'Route a visitor question into the CRM for follow-up.', startSystemId: 'website', startActionId: 'submit-contact',
steps: [
{ id: 'contact-1', connectionIds: ['website-api-contact'], explanation: 'A visitor submits a contact enquiry.', payload: '{"requestId":"req_1001","topic":"sample enquiry"}', delayMs: 700, outcome: 'success' },
{ id: 'contact-2', connectionIds: ['api-crm-contact'], explanation: 'The API stores the enquiry for a team member.', payload: '{"requestId":"req_1001","status":"open"}', delayMs: 900, outcome: 'success' }
]
},
{
id: 'sample-request', name: 'Sample request', description: 'Reserve a sample and demonstrate scheduled fulfilment.', startSystemId: 'website', startActionId: 'place-sample',
steps: [
{ id: 'sample-1', connectionIds: ['website-api-sample'], explanation: 'A visitor requests a product sample.', payload: '{"orderId":"smp_1042","sku":"sample-blue"}', delayMs: 700, outcome: 'success' },
{ id: 'sample-2', connectionIds: ['api-erp-sample'], explanation: 'The API schedules a stock reservation with the ERP.', payload: '{"sku":"sample-blue","quantity":1}', delayMs: 1100, outcome: 'success' }
]
},
{
id: 'commercial-order', name: 'Commercial order', description: 'Submit and fulfil a normal customer purchase.', startSystemId: 'website', startActionId: 'place-order',
steps: [
{ id: 'commercial-1', connectionIds: ['website-api-commercial'], explanation: 'The customer submits a commercial order.', payload: '{"orderId":"ord_2048","total":249.0}', delayMs: 700, outcome: 'success' },
{ id: 'commercial-2', connectionIds: ['api-erp-commercial'], explanation: 'The API creates the order for fulfilment.', payload: '{"orderId":"ord_2048","status":"new"}', delayMs: 1000, outcome: 'success' }
]
},
{
id: 'order-retry', name: 'Order retry and recovery', description: 'Show an ERP rejection, one retry and recovery.', startSystemId: 'website', startActionId: 'place-order',
steps: [
{ id: 'retry-1', connectionIds: ['website-api-commercial'], explanation: 'The website sends the order to the API.', payload: '{"orderId":"ord_3001","total":89.0}', delayMs: 650, outcome: 'success' },
{ id: 'retry-2', connectionIds: ['api-erp-commercial'], explanation: 'ERP rejects the first fulfilment request because stock is being reconciled.', payload: '{"orderId":"ord_3001","status":"rejected","reason":"stock_reconciliation"}', delayMs: 1000, outcome: 'rejected', retryStepId: 'retry-3', recoveryStepId: 'retry-4' },
{ id: 'retry-3', connectionIds: ['api-erp-commercial'], explanation: 'The API retries the fulfilment request after refreshing stock.', payload: '{"orderId":"ord_3001","status":"retry"}', delayMs: 900, outcome: 'success' },
{ id: 'retry-4', connectionIds: ['api-email'], explanation: 'The API sends a recovery confirmation to the customer.', payload: '{"template":"order-retry-recovered","orderId":"ord_3001"}', delayMs: 700, outcome: 'success' }
]
}
]
})