Skip to main content
Each sample is a full, runnable handler. Replace the lookupExtension / lookupRouting business logic with your own.

Node.js (Express)

Python (Flask)

Python (FastAPI)

PHP (vanilla, no framework)

Go

Common business-logic stub

Every sample above calls a lookupExtension(query) helper. Here’s a minimal implementation pattern:
Replace this with a real lookup against your CRM, routing rules engine, or directory service. Just keep it fast (< 1s) and return either a deterministic extension or a null so the AI knows to fall back.

Next: Troubleshooting

When something doesn’t work and you need to debug from the dashboard.