team-telnyx/telnyx-code-examples

Production-ready code examples for Telnyx AI Communications Infrastructure — Voice AI, SMS, SIP, and IoT APIs

155

stars

425

commits

Python

primary language

Sep 10, 2026

updated

developers.telnyx.com
ai-agent
ai-inference
call-control
csharp
go
iot
ivr
java
nodejs
php
python
ruby
sip-trunking
sms-api
telnyx
text-to-speech
voice-ai
voice-api
webhooks
webrtc
Browse cluster: Message queuing and network protocols

README

Telnyx Code Examples - AI Communications Infrastructure

Production-ready code examples for the Telnyx platform. Each example is a self-contained project with working code, documentation, and environment configuration - clone, configure, and run in minutes.

Quick Start

# 1. Clone the repository
git clone https://github.com/team-telnyx/telnyx-code-examples.git
cd telnyx-code-examples

# 2. Pick an example
cd send-sms-python

# 3. Configure and run (see each example's README for language-specific commands)
cp .env.example .env
# Edit .env with your Telnyx API key from https://portal.telnyx.com
pip install -r requirements.txt && python app.py

Full API reference at developers.telnyx.com

Each example's README has a Quick Start with the exact install/run commands for its language, an API.md typed endpoint reference, and a GUIDE.md walkthrough.


Voice AI

(158 examples)

Build voice applications with Telnyx Voice AI - IVR menus, call recording, conferencing, WebRTC, and AI-powered call routing.

ExampleLanguageDescription
ai-assistant-client-side-tools-nextjsNode.jsBuild a browser-based Next.js dashboard where a Telnyx AI Assistant invokes client-side JavaScript tools to navigate the UI, change theme, open a modal, and update React form state.
ai-assistant-multiparticipant-calling-nodejsNode.jsBuild a Telnyx Voice AI assistant that answers an inbound call, uses a backend tool to dial a second participant, and joins them into the same live AI conversation with ai_assistant_join.
ai-call-campaign-orchestratorPythonDurable outbound call campaign with rate limiting, SQL tracking, and SMS summary using Telnyx Agent SDK, Call Control, and SMS.
ai-powered-call-routerTypescriptRoute inbound calls by analyzing caller intent with the Telnyx AI Inference binding and a Telnyx KV route table. One StatefulActor per call leg; zero-credential LLM classification + global KV lookup on the Edge Runtime.
branded-caller-id-manager-pythonPythonBranded Caller ID Manager - register, manage, and verify branded calling profiles with STIR/SHAKEN attestation for higher answer rates.
build-conference-calling-goGo---
build-conference-calling-nodejsNode.js---
build-conference-calling-phpPHP---
build-conference-calling-pythonPythonCreate multi-party conference calls.
build-conference-calling-rubyRuby---
build-conversational-workflow-nodejsNode.jsBuild a Telnyx Conversational Workflow for inbound auto insurance claim intake with structured branches, backend tools, and priority follow-up.
build-ivr-phone-menu-csharpC#---
build-ivr-phone-menu-goGo---
build-ivr-phone-menu-nodejsNode.jsProduction-ready IVR system using the Telnyx Voice API and Express.js. Answers inbound calls, plays a menu via TTS, collects DTMF input, and routes callers to sales or support.
build-ivr-phone-menu-phpPHP---
build-ivr-phone-menu-pythonPythonBuild an interactive voice response menu with DTMF input.
build-ivr-phone-menu-rubyRuby---
bulk-number-validation-cleaner-pythonPythonBulk Number Validation & Cleaner - validate and clean phone number lists via Telnyx Number Lookup API.
call-analytics-dashboard-api-pythonPythonPull call detail records from the Telnyx API and expose call usage analytics through a dashboard API.
call-compliance-goGo---
call-compliance-pythonPython---
call-compliance-rubyRuby---
call-forwarding-csharpC#---
call-forwarding-goGo---
call-forwarding-javaJava---
call-forwarding-nodejsNode.js---
call-forwarding-phpPHP---
call-forwarding-pythonPythonForward incoming calls to another destination.
call-forwarding-rubyRuby---
call-queue-with-hold-music-pythonPythonCall Queue with Hold Music - queue callers with position announcements and hold music, route to agents.
call-sentiment-live-escalation-pythonPythonCall Sentiment Live Escalation - monitor call transcripts in real-time. When negative sentiment or distress is detected, auto-escalate to a supervisor.
call-whisper-monitoring-csharpC#---
call-whisper-monitoring-goGo---
call-whisper-monitoring-javaJava---
call-whisper-monitoring-nodejsNode.js---
call-whisper-monitoring-phpPHP---
call-whisper-monitoring-pythonPythonMonitor calls with whisper prompts for agents.
call-whisper-monitoring-rubyRuby---
call-whisper-screen-pop-pythonPythonCall Whisper & Screen Pop - whisper caller info to agent before connecting the call.
cloud-storage-call-archive-pythonPythonCloud Storage Call Archive - archive call recordings to Telnyx Cloud Storage (S3-compatible) with searchable metadata.
cnam-caller-id-lookup-enrichment-pythonPythonCNAM Caller ID Lookup Enrichment - look up CNAM for inbound callers, enrich CRM records with caller identity.
commercial-voiceover-generator-pythonPythonProvide product name, target audience, and tone. AI writes 3 script variations with timing marks, TTS renders each in multiple voices, delivers top picks via SMS for client approval.
conference-live-poll-dtmf-pythonPythonConference Live Poll via DTMF - host asks a question, all conference participants vote by pressing 1-4, results tallied instantly.
conversation-relay-voice-bot-pythonPythonForward live phone calls to any existing text-in/text-out AI chatbot using Telnyx Conversation Relay — no changes to the bot.
deepfake-voice-detector-pythonPythonReal-time synthetic speech detection on live phone calls. Captures audio via media streaming, extracts acoustic features, scores deepfake probability with AI Inference, alerts security team via Slack.
edge-ai-assistant-backend-goGoUse a Telnyx Edge Compute function as the backend for AI Assistant dynamic variables and webhook tool calls — no separate server required.
edge-call-transcription-agentNode.jsLive call transcription agent on Telnyx Edge Compute + Agent SDK — answers an inbound call, streams STT into durable agent state, and on hangup summarizes the transcript via LLM, persists it to actor-local SQL, and texts the summary via SMS. Zero-credential inference and messaging via the [telnyx] binding.
edge-compliance-monitor-pythonPythonReal-time compliance checking for regulated call centers using Telnyx Voice, AI Inference, and Edge Compute.
edge-customer-agent-typescriptNode.jsA durable Entity Agent on Telnyx Edge Compute. One actor per customer phone number, surviving across days, calls, SMS messages, and actor evictions. The AI Assistant is the reasoning harness inside; the agent owns the durable state.
edge-fraud-firewall-pythonPythonScreen every inbound call at the edge with Telnyx Voice, Number Lookup, and AI Inference.
edge-geo-smart-router-pythonPythonRoute calls by geography at the edge using Telnyx Voice, AI Inference, and Edge Compute.
edge-ivr-ab-tester-pythonPythonA/B test different IVR flows at the edge.
edge-merge-ai-receptionist-pythonPythonEdge worker answers every call using Telnyx Voice, AI Inference, and Edge Compute with Merge HRIS.
edge-merge-reference-checker-pythonPythonAutomate reference checks when an ATS application advances using Telnyx Voice and AI Inference with Merge ATS.
edge-merge-shift-coverage-pythonPythonManager texts need a closer tonight using Telnyx Messaging and Edge Compute with Merge HRIS.
edge-number-masking-pythonPythonMarketplace-style proxy number pool at the edge.
edge-voice-agent-holds-callNode.jsVoice agent on Telnyx Edge Compute + Agent SDK — answers an inbound call and runs an STT → LLM → TTS conversation loop, all in the same PoP. Zero-credential inference via the [telnyx] binding.
edge-voicemail-to-action-pythonPythonAI-powered voicemail triage at the edge.
edge-webhook-aggregator-pythonPythonMulti-tenant webhook consolidation at the edge.
fax-to-structured-data-pipeline-pythonPythonFax-to-Structured-Data Pipeline - receive faxes, AI extracts structured data (invoices, orders, prescriptions) into JSON.
geo-distributed-call-loggerNode.js---
hold-music-csharpC#---
hold-music-goGo---
hold-music-javaJava---
hold-music-nodejsNode.js---
hold-music-phpPHP---
hold-music-pythonPython---
hold-music-rubyRuby---
hotel-guest-services-pythonPythonInbound voice and SMS guest services for hotels. Voice calls are handled by a Telnyx AI Assistant, while SMS requests are categorized and tracked by the Flask app.
kv-backed-rate-limiterNode.js---
live-podcast-call-in-pythonPythonHosts on a conference call, listeners call in. AI screens callers via STT, queues approved ones, generates real-time fact-checks for the host, TTS announces topics.
make-outbound-phone-call-csharpC#Place an outbound phone call with the Telnyx Call Control API using C# and ASP.NET.
make-outbound-phone-call-goGo---
make-outbound-phone-call-javaJavaPlace an outbound phone call with the Telnyx Call Control API using Java.
make-outbound-phone-call-nodejsNode.jsInitiate an outbound phone call using the Telnyx Call Control API. Exposes an Express endpoint that dials a number and returns the call control ID.
make-outbound-phone-call-phpPHPPlace an outbound phone call with the Telnyx Call Control API using PHP.
make-outbound-phone-call-pythonPythonProgrammatically place an outbound phone call using Telnyx Call Control and handle the call lifecycle.
make-outbound-phone-call-rubyRubyPlace an outbound phone call using the Telnyx Call Control API and the Telnyx Ruby SDK, exposed through a Sinatra endpoint.
media-stream-voice-cloak-pythonPythonMedia Stream Voice Cloak - real-time voice modification via media streaming API. Apply pitch shift, echo, or anonymization.
merge-deal-desk-alerts-pythonPythonCRM webhook fires when a deal moves to negotiation, triggering Telnyx Voice and AI Inference alerts with Merge CRM.
merge-employee-hotline-pythonPythonEmployees call and authenticate via caller ID using Telnyx Voice and AI Inference with Merge HRIS.
merge-expense-by-phone-pythonPythonSalesperson calls and dictates an expense using Telnyx Voice and AI Inference with Merge Accounting.
merge-interview-pipeline-pythonPythonATS webhook fires when a new application arrives, triggering Telnyx Voice, AI Inference, and Messaging with Merge ATS.
merge-invoice-collector-pythonPythonPulls overdue invoices from Merge Accounting and collects payments using Telnyx Voice, AI Inference, and Messaging.
merge-pipeline-briefing-pythonPythonMorning pipeline briefing delivered by Telnyx Voice and AI Inference with Merge CRM.
merge-recruitment-hotline-pythonPythonJob seekers call a recruitment hotline powered by Telnyx Voice, AI Inference, and Messaging with Merge ATS.
merge-ticket-escalation-pythonPythonCritical ticket fires a webhook from Merge Ticketing, escalating via Telnyx Voice and AI Inference.
multi-number-identity-router-pythonPythonMulti-Number Identity Router - route calls based on which number was dialed. Each number maps to a different business identity, greeting, and routing destination.
multilingual-voiceover-kit-pythonPythonSubmit a script in one language, AI translates to multiple targets preserving tone and timing, TTS renders each language with native-sounding voices. Batch localization for 15 languages.
number-lookup-fraud-screener-pythonPythonNumber Lookup Fraud Screener - screen inbound calls/messages for fraud indicators using number lookup before connecting.
number-lookup-lead-enrichment-pythonPythonNumber Lookup Lead Enrichment - CNAM and carrier lookup to qualify and enrich sales leads.
number-porting-status-tracker-pythonPythonNumber Porting Status Tracker - track porting orders with status webhooks and SMS alerts.
number-reputation-monitor-auto-rotate-pythonPythonNumber Reputation Monitor - track outbound number reputation, auto-rotate flagged numbers.
number-search-and-purchase-api-pythonPythonNumber Search and Purchase API - search, filter, and buy phone numbers programmatically.
number-warmup-reputation-builder-pythonPythonNumber Warmup & Reputation Builder - gradually ramp SMS volume on new numbers to build carrier reputation and avoid spam flags.
omni-channel-lab-inbox-agentNode.jsLab-result fax intake with a human-in-the-loop inbox: fax received, operator reviews and accepts (fax deleted, only reference kept), AI drafts confirmation email, SMS appointment flow, and a voice agent that answers status questions without touching lab content.
porting-loa-automation-pythonPythonPorting LOA Automation - automate Letter of Authorization generation and porting order submission.
porting-order-tracker-dashboard-pythonPythonSubmit, track, and manage number porting orders with SLA monitoring, timeline visualization, and bulk operations.
real-time-call-intelligence-dashboard-pythonPythonReal-Time Call Intelligence Dashboard - live transcription, sentiment analysis, and competitor detection.
record-phone-calls-csharpC#---
record-phone-calls-goGo---
record-phone-calls-javaJava---
record-phone-calls-nodejsNode.jsInitiate outbound calls and control call recording using the Telnyx Voice API with Express. Handles call lifecycle webhooks and recording start/stop.
record-phone-calls-phpPHP---
record-phone-calls-pythonPythonRecord calls and receive recording webhooks.
record-phone-calls-rubyRuby---
route-phone-calls-to-ai-agent-csharpC#---
route-phone-calls-to-ai-agent-goGoReceive inbound call webhooks from the Telnyx Voice API and answer calls programmatically with a Go + Gin server.
route-phone-calls-to-ai-agent-javaJava---
route-phone-calls-to-ai-agent-nodejsNode.jsReceive inbound call webhooks from the Telnyx Voice API and answer calls programmatically with an Express server using Call Control.
route-phone-calls-to-ai-agent-phpPHP---
route-phone-calls-to-ai-agent-pythonPythonHandle inbound calls with webhook-driven AI routing.
route-phone-calls-to-ai-agent-rubyRubyHandle inbound calls with webhook-driven AI routing using Ruby and Sinatra.
smart-number-geo-assignment-pythonPythonSmart Number Geo-Assignment - automatically purchase and assign local numbers based on caller geography to maximize answer rates.
telnyx-voice-api-agents-nodejsNode.jsStart one reusable Telnyx AI Assistant on Telnyx Voice API calls with runtime business instructions selected by the called phone number.
texml-dynamic-call-router-pythonPythonTeXML Dynamic Call Router - time-of-day and caller-based routing with TeXML responses.
text-to-speech-phone-call-csharpC#---
text-to-speech-phone-call-goGo---
text-to-speech-phone-call-javaJava---
text-to-speech-phone-call-nodejsNode.jsInitiate an outbound voice call and play a text-to-speech message on answer using the Telnyx Call Control API.
text-to-speech-phone-call-phpPHP---
text-to-speech-phone-call-pythonPythonPlay text-to-speech audio during a phone call.
text-to-speech-phone-call-rubyRuby---
transfer-live-phone-calls-csharpC#---
transfer-live-phone-calls-goGo---
transfer-live-phone-calls-javaJava---
transfer-live-phone-calls-nodejsNode.js---
transfer-live-phone-calls-phpPHP---
transfer-live-phone-calls-pythonPythonTransfer active calls to another number or agent.
transfer-live-phone-calls-rubyRuby---
video-voiceover-replacement-pythonPythonUpload audio with existing voice-over. STT extracts the script, AI rewrites/improves it (5 modes: polish, professional, simplify, energize, shorten), TTS re-records with studio quality.
video-webinar-recording-manager-pythonPythonVideo Webinar Recording Manager - manage video room webinars with automatic recording, transcription, and clip extraction.
voice-call-analytics-goGo---
voice-call-analytics-nodejsNode.js---
voice-call-analytics-phpPHP---
voice-call-analytics-pythonPython---
voice-call-analytics-rubyRuby---
voice-ivr-with-agent-backendPythonA natural language IVR system where the Telnyx Agent handles backend logic and an LLM powers dynamic menu options.
voice-to-slack-bridge-pythonPythonVoice-to-Slack Bridge - call a phone number, speak a message, AI transcribes and posts to Slack with urgency tagging.
voice-verified-identity-2fa-pythonPythonVoice-Verified Identity + 2FA - Number Lookup, SMS OTP, and AI-assisted secure transactions.
voicemail-csharpC#---
voicemail-goGo---
voicemail-javaJava---
voicemail-nodejsNode.js---
voicemail-phpPHP---
voicemail-pythonPython---
voicemail-rubyRuby---
voicemail-to-sms-agentNode.jsAn Edge-based agent that transcribes, summarizes, and texts voicemail summaries to the mailbox owner.
voiceover-audition-generator-pythonPythonSubmit a script, hear it read by every available TTS voice. AI scores and ranks best-fit voices based on content, tone, and audience. SMS delivers top picks to decision-makers.
warm-transfer-csharpC#---
warm-transfer-goGo---
warm-transfer-javaJava---
warm-transfer-nodejsNode.js---
warm-transfer-phpPHP---
warm-transfer-pythonPython---
warm-transfer-rubyRuby---
webrtc-browser-calling-pythonPythonEnable browser-based calling with WebRTC.
wireguard-private-voice-network-pythonPythonWireGuard Private Voice Network - create WireGuard mesh network for private SIP trunking with encrypted voice traffic.

SMS & MMS

(174 examples)

Send and receive text messages with the Telnyx SMS API - build autoresponders, implement 2FA, and manage bulk messaging campaigns.

ExampleLanguageDescription
abandoned-cart-recovery-pythonPythonSMS 1h after abandon with incentive, AI voice call 24h later if no purchase. Integrates with Shopify webhooks and Stripe for discount codes.
accounting-tax-season-line-pythonPythonHandles scheduling, document checklist reminders, status updates. AI texts clients with missing doc reminders. CPA reviews readiness before appointments.
after-hours-nurse-triage-pythonPythonAI screens symptoms using clinical decision tree, routes urgent to on-call nurse via PagerDuty, queues non-urgent for AM callback. Nurse reviews and overrides AI severity scores.
agent-sms-triage-botNode.jsSMS triage bot on Telnyx Edge Compute + Agent SDK — classifies inbound customer SMS by topic (billing/support/sales) via LLM and routes to the right queue using a durable route table. Zero-credential SMS and inference.
ai-appointment-booking-sms-flow-pythonPythonAI Appointment Booking SMS Flow - guided SMS booking with available slot selection.
ai-appointment-reminder-sms-voice-pythonPythonAI Appointment Reminder - SMS first, voice call for non-responders, AI handles rescheduling.
ai-email-agent-pythonPythonAI Email Agent — autonomous inbound email reply bot on the Telnyx Email API. A customer emails in, the AI drafts a reply, the Email API sends it back. One platform, one API key, one agent.
alphanumeric-sender-id-sms-pythonPythonSend SMS messages with a branded alphanumeric sender ID using the Telnyx Messaging API. Validates sender IDs and enforces regional restrictions.
audio-transcribe-summarize-smsNode.jsUpload a voicemail audio file → transcribe via STT → summarize with LLM → text the summary via SMS. Agent SDK pipeline on Telnyx Edge Compute with zero-credential inference and messaging.
autonomous-outbound-sales-agent-pythonPythonAutonomous Outbound Sales Agent - AI-driven lead qualification, objection handling, and meeting booking.
billing-anomaly-detector-pythonPythonBilling Anomaly Detector - monitor usage and billing for anomalies, alert on cost spikes and unusual patterns.
cdr-usage-analytics-dashboard-pythonPythonPull Call Detail Records, build usage analytics with cost breakdowns, peak-hour analysis, and AI-powered insights.
cloud-storage-media-cdn-pythonPythonCloud Storage Media CDN - use Telnyx Cloud Storage (S3-compatible) as a CDN for IVR prompts, hold music, and voice assets.
e911-address-validator-pythonPythonValidate and register emergency (E911) addresses for phone numbers via the Telnyx API.
ecommerce-order-status-bot-pythonPythonCustomers call or text order number, get real-time Shopify tracking. AI detects delivery exceptions and proactively texts customers before they call support.
edge-agri-crop-advisoryNode.jsAgriculture crop advisory on Telnyx Edge Compute Stateful Actors — classify crop issues (disease, pest, nutrient, water, weather) and recommend treatment via AI Inference. Escalates critical cases.
edge-cache-invalidation-agentNode.js---
edge-compute-webhook-proxy-pythonPythonReceive Telnyx voice and SMS webhooks at the edge with minimal latency. Validates, enriches with timestamps, HMAC-signs, and forwards to your backend.
edge-mcp-server-deploy-pythonPythonDeploy an MCP server to Telnyx Edge Compute exposing Telnyx APIs as tools for AI agents. Send SMS, search numbers, run inference.
edge-prompt-ab-testerNode.jsPrompt A/B tester on Telnyx Edge Compute Stateful Actors — run two prompt variants against the same task, collect user votes, and track which prompt wins.
edge-url-summarizerNode.jsURL summarizer on Telnyx Edge Compute Stateful Actors — fetch a URL, summarize via AI Inference, cache the result for instant repeat requests.
elearning-course-narrator-pythonPythonUpload course content, AI structures into audio modules with pacing cues and quiz prompts, TTS narrates each module, stores in Cloud Storage with a JSON manifest.
emergency-mass-notification-system-pythonPythonEmergency Mass Notification System - SMS + voice calls with delivery tracking and escalation.
fraud-alert-verification-pythonPythonSuspicious transaction triggers voice call to customer, verifies via DTMF, blocks or approves in real-time. Fraud team reviews edge cases via Slack.
global-lead-response-engine-pythonPythonGlobal Lead Response Engine - multi-language AI qualification with live transfer and omnichannel follow-up.
hosted-messaging-campaign-manager-pythonPythonHosted Messaging Campaign Manager - manage hosted messaging campaigns with subscriber opt-in/out tracking and delivery analytics.
interview-screen-scheduler-pythonPythonCandidate applies, AI calls for 5-min phone screen, scores answers, books qualified candidates on hiring manager's calendar. Integrates with Greenhouse ATS and Google Calendar.
isv-notification-engine-pythonPythonSaaS platform sends alerts via SMS/voice/WhatsApp based on customer preference and urgency. Multi-channel with fallback cascade and delivery tracking.
ivr-prompt-generator-pythonPythonGenerate professional IVR/phone system prompts. AI writes caller-friendly scripts from business descriptions, TTS renders in multiple voices, test via live Telnyx call playback.
law-firm-client-intake-pythonPythonAI answers after-hours calls, screens case type, collects facts, runs conflict check, books consultation via Calendly, collects retainer deposit via Stripe.
long-code-sms-pythonPythonSend A2P SMS over a long code with a rate-limited queue, delivery tracking, and signed inbound webhooks using the Telnyx Messaging API.
marketplace-comms-bridge-pythonPythonBuyer texts about a listing, AI responds with details, facilitates anonymous buyer-seller connection via masked numbers, handles scheduling. Ops reviews flagged conversations.
media-stream-custom-audio-mixer-pythonPythonMedia Stream Custom Audio Mixer - mix custom audio into live calls via WebSocket-based media streaming.
media-stream-live-transcription-pythonPythonMedia Stream Live Transcription - fork call audio to WebSocket for real-time transcription display.
merge-employee-onboarding-pythonPythonNew employee webhook from Merge HRIS triggers full provisioning: Telnyx phone number, AI voicemail greeting, welcome SMS with IT setup instructions, and IT ticket via Merge Ticketing.
messaging-campaign-ab-test-optimizer-pythonPythonMessaging Campaign A/B Test Optimizer - test SMS copy variants, AI picks winners, auto-scales.
migrate-from-elevenlabs-pythonPythonMigrate from ElevenLabs - import ElevenLabs voice configurations to Telnyx TTS with voice mapping and cost comparison.
migrate-from-twilio-pythonPythonMigrate from Twilio - complete Twilio-to-Telnyx migration tool: numbers, messaging profiles, voice apps, and webhook configs.
migrate-from-vapi-pythonPythonMigrate from Vapi - import Vapi voice agents to Telnyx AI Assistants with voice, prompt, and tool configuration mapping.
missions-workflow-orchestrator-pythonPythonMissions Workflow Orchestrator - create and manage multi-step mission workflows using the Telnyx Missions API.
mms-photo-inventory-tracker-pythonPythonMMS Photo Inventory Tracker - text a photo of inventory items with MMS, AI identifies and catalogs them automatically.
mms-receipt-scanner-expense-tracker-pythonPythonMMS Receipt Scanner & Expense Tracker - text a photo of a receipt, AI extracts data and tracks expenses.
multi-channel-appointment-confirmation-pythonPythonMulti-Channel Appointment Confirmation - confirm appointments via SMS, voice call, and WhatsApp. Tries SMS first, escalates to voice if no response.
multi-language-customer-survey-pythonPythonMulti-Language Customer Survey - outbound voice surveys in the caller's language with AI analysis.
multi-turn-sms-quiz-agentNode.jsAdaptive SMS quiz agent on Telnyx Edge Compute with durable per-sender state, LLM-generated questions, SQL event history, and browser demo mode.
patient-appointment-engine-pythonPythonAI answers calls, checks availability, books appointments, collects copay via Stripe, sends SMS confirmation. Staff reviews next-day schedule.
payment-reminder-escalation-pythonPythonInvoice overdue: day 1 SMS, day 7 voice call with payment link, day 14 escalation to collections with full context. Integrates with Stripe/QuickBooks.
phone-number-lookup-csharpC#---
phone-number-lookup-goGo---
phone-number-lookup-javaJava---
phone-number-lookup-nodejsNode.js---
phone-number-lookup-phpPHP---
phone-number-lookup-pythonPythonLook up carrier, line type, and portability data for any phone number using the Telnyx Number Lookup API, with a 24-hour in-memory cache.
phone-number-lookup-rubyRuby---
podcast-episode-repurposer-pythonPythonUpload a recorded episode, STT transcribes, AI Inference extracts key quotes and topics, TTS generates audiogram clips with different voices, SMS distributes clips to subscribers.
podcast-highlight-clipper-pythonPythonUpload audio, STT + AI Inference identifies viral moments with virality scoring, TTS generates teaser intros for each clip, SMS distributes highlights to subscriber list.
post-service-followup-engine-pythonPythonAfter appointment, SMS satisfaction survey. Negative responses trigger AI voice callback to understand the issue, then creates ticket in Jira and alerts manager via Slack.
prescription-refill-line-pythonPythonPatient calls, AI verifies identity (DOB + last 4 of phone), checks refill eligibility, sends approval to pharmacist via Slack. Pharmacist approves/denies, patient gets SMS.
programmable-hold-experience-pythonPythonProgrammable Hold Experience - custom hold experiences: tips, trivia, estimated wait time, callback offers.
rcs-rich-card-product-catalog-pythonPythonRCS Rich Card Product Catalog - AI-powered product recommendations with rich cards and carousels.
receive-mms-webhook-csharpC#---
receive-mms-webhook-goGo---
receive-mms-webhook-javaJava---
receive-mms-webhook-nodejsNode.js---
receive-mms-webhook-phpPHP---
receive-mms-webhook-pythonPythonReceive inbound MMS messages with a Telnyx webhook, verify the signature, and download media attachments.
receive-mms-webhook-rubyRuby---
receive-sms-webhook-csharpC#Receive inbound SMS via webhook with Ed25519 signature verification using C# and ASP.NET.
receive-sms-webhook-goGo---
receive-sms-webhook-javaJavaReceive inbound SMS via Telnyx webhooks with a JDK HttpServer, verifying the Ed25519 signature before reading data.payload.
receive-sms-webhook-nodejsNode.jsReceive inbound SMS messages via Telnyx webhooks with an Express server. Validates payloads and acknowledges within 5 seconds.
receive-sms-webhook-phpPHPReceive and Ed25519-verify inbound Telnyx SMS webhooks using the Telnyx PHP SDK over a vanilla PHP front controller.
receive-sms-webhook-pythonPythonReceive inbound SMS via webhook.
receive-sms-webhook-rubyRubyReceive inbound SMS messages via Telnyx webhooks with a Sinatra server, verifying the Telnyx Ed25519 signature before trusting any payload.
rent-collection-escalation-pythonPythonAutomated multi-channel rent reminders. Day 1: SMS + Stripe payment link. Day 3: voice call. Day 7: late fee notice. Day 14: manager escalation.
returns-processor-pythonPythonCustomer texts photo of defective item via MMS, AI evaluates damage, auto-approves low-value refunds via Stripe, escalates high-value to team lead.
schedule-sms-messages-csharpC#---
schedule-sms-messages-goGo---
schedule-sms-messages-javaJava---
schedule-sms-messages-nodejsNode.js---
schedule-sms-messages-phpPHP---
schedule-sms-messages-pythonPythonSchedule SMS messages to be sent at a future time with the Telnyx Messaging API, backed by an APScheduler job store and a Flask job-management API.
schedule-sms-messages-rubyRuby---
scheduled-reminder-agentNode.jsSMS reminder agent on Telnyx Edge Compute + Agent SDK — sends scheduled reminders via zero-credential SMS, detects snooze intent via LLM, and adapts timing with exponential backoff.
send-bulk-sms-csharpC#---
send-bulk-sms-goGo---
send-bulk-sms-javaJava---
send-bulk-sms-nodejsNode.jsSend bulk SMS messages to many recipients with rate limiting and per-message error tracking using the Telnyx Messaging API and Express.
send-bulk-sms-phpPHP---
send-bulk-sms-pythonPythonSend SMS messages to multiple recipients.
send-bulk-sms-rubyRuby---
send-mms-picture-message-csharpC#---
send-mms-picture-message-goGo---
send-mms-picture-message-javaJava---
send-mms-picture-message-nodejsNode.jsSend an MMS picture message with media attachments using the Telnyx Messaging API and a Node.js and Express endpoint.
send-mms-picture-message-phpPHP---
send-mms-picture-message-pythonPythonSend an MMS message with image attachments using the Telnyx Messaging API.
send-mms-picture-message-rubyRuby---
send-sms-csharpC#Send an SMS message using the Telnyx Messaging API with a C# minimal ASP.NET endpoint.
send-sms-goGoSend an SMS message using the Telnyx Messaging API and Go SDK, exposed over a Gin HTTP endpoint.
send-sms-javaJavaSend an SMS message using the Telnyx Messaging API and Java SDK, exposed over a JDK HttpServer endpoint.
send-sms-nodejsNode.jsSend an SMS message using the Telnyx Messaging API with a Node.js and Express endpoint.
send-sms-notifications-csharpC#---
send-sms-notifications-goGo---
send-sms-notifications-javaJava---
send-sms-notifications-nodejsNode.js---
send-sms-notifications-phpPHP---
send-sms-notifications-pythonPythonProduction-ready Flask service that sends SMS notifications, tracks delivery status via webhooks, and exposes a small REST API.
send-sms-notifications-rubyRuby---
send-sms-phpPHPSend an SMS message using the Telnyx Messaging API and the Telnyx PHP SDK, exposed through a vanilla PHP front controller.
send-sms-pythonPythonSend an SMS message using the Telnyx Messaging API. Supports delivery status webhooks.
send-sms-rubyRubySend an SMS message using the Telnyx Messaging API and the Telnyx Ruby SDK, exposed through a Rails controller endpoint.
sentiment-analysis-agentNode.jsAnalyze inbound SMS sentiment on Telnyx Edge Compute with the Agent SDK, log results to actor-local SQL, and escalate negative sentiment by SMS.
service-booking-dispatch-pythonPythonCustomer calls HVAC/plumber/electrician, AI checks tech availability, books slot, collects deposit via Stripe, texts confirmation to customer and tech.
shift-fill-engine-pythonPythonOpen shift triggers calls down the availability list. First to confirm gets it, rest are cancelled. Texts confirmation + notifies manager via Slack.
shortcode-sms-pythonPythonSend and receive two-way SMS over a Telnyx shortcode with Flask. Includes inbound webhook handling with signature verification.
smart-ivr-ab-tester-pythonPythonSmart IVR A/B Tester - run two IVR flows simultaneously and track which converts better.
sms-appointment-no-show-predictor-pythonPythonSMS Appointment No-Show Predictor - AI predicts no-shows from SMS response patterns, triggers interventions.
sms-auto-reply-bot-csharpC#---
sms-auto-reply-bot-goGo---
sms-auto-reply-bot-javaJava---
sms-auto-reply-bot-nodejsNode.jsReceive inbound SMS via signed Telnyx webhooks and send automatic replies using Node.js and Express.
sms-auto-reply-bot-phpPHP---
sms-auto-reply-bot-pythonPythonBuild an SMS autoresponder bot.
sms-auto-reply-bot-rubyRuby---
sms-chatbot-with-conversation-memory-pythonPythonSMS Chatbot with Conversation Memory - persistent AI conversations over text with context retention.
sms-conversation-exporterNode.js---
sms-conversation-threading-pythonPythonGroup inbound and outbound SMS by contact into persistent conversation threads with the Telnyx Messaging API and a SQLAlchemy-backed store.
sms-delivery-receipts-csharpC#---
sms-delivery-receipts-goGo---
sms-delivery-receipts-javaJava---
sms-delivery-receipts-nodejsNode.jsTrack SMS delivery status with Telnyx webhooks. Send messages, receive finalized delivery receipts, and look up per-message status.
sms-delivery-receipts-phpPHP---
sms-delivery-receipts-pythonPythonTrack SMS delivery status with Telnyx message.finalized webhooks, store delivery receipts in SQLite, and query message status over HTTP.
sms-delivery-receipts-rubyRuby---
sms-drip-campaign-engine-pythonPythonSMS Drip Campaign Engine - multi-step nurture sequences with branch logic and AI personalization.
sms-emergency-check-in-pythonPythonSMS Emergency Check-In - periodic wellness checks via SMS with escalation to emergency contacts.
sms-escape-room-game-pythonPythonSMS Escape Room Game - text-based adventure game over SMS. Solve puzzles, find clues, escape before time runs out.
sms-keyword-auto-responder-pythonPythonSMS Keyword Auto-Responder - keyword-triggered responses with match analytics.
sms-marketing-campaign-pythonPythonRun bulk SMS marketing campaigns with Flask and the Telnyx Messaging API - create campaigns, send rate-limited batches, and track delivery via webhooks.
sms-opt-out-management-pythonPythonManage SMS opt-out preferences with Telnyx. Auto-handles STOP/UNSUBSCRIBE replies via verified inbound webhooks, blocks messages to opted-out numbers, and keeps an auditable opt-out list in SQLite.
sms-poll-voting-system-pythonPythonText-to-vote polling with real-time results.
sms-support-agent-with-followupNode.jsSMS support agent on Telnyx Edge Compute + Agent SDK — answer SMS questions via LLM and schedule a 24h follow-up check-in. No API key in code.
sms-survey-bot-csharpC#---
sms-survey-bot-goGo---
sms-survey-bot-javaJava---
sms-survey-bot-nodejsNode.js---
sms-survey-bot-phpPHP---
sms-survey-bot-pythonPythonRun multi-question SMS surveys over the Telnyx Messaging API. Sends questions, validates inbound replies via signed webhooks, tracks per-participant progress, and exposes results.
sms-survey-bot-rubyRuby---
sms-trivia-game-tournament-pythonPythonSMS Trivia Game Tournament - multi-player trivia via SMS. Players join, answer timed questions, scores tracked on a live leaderboard.
sms-two-factor-auth-csharpC#---
sms-two-factor-auth-goGo---
sms-two-factor-auth-javaJava---
sms-two-factor-auth-nodejsNode.jsProduction-ready OTP 2FA system with Node.js and Express. Generates one-time passwords, delivers them over SMS via the Telnyx Messaging API, and verifies them with expiration, attempt limits, and rate limiting.
sms-two-factor-auth-phpPHP---
sms-two-factor-auth-pythonPythonImplement SMS-based two-factor authentication.
sms-two-factor-auth-rubyRuby---
toll-free-sms-campaign-manager-pythonPythonToll-Free SMS Campaign Manager - manage toll-free verification and send compliant campaigns.
toll-free-sms-pythonPythonSend SMS from a toll-free number with the Telnyx Messaging API and track delivery status via signed webhooks.
two-way-sms-chat-csharpC#---
two-way-sms-chat-goGo---
two-way-sms-chat-javaJava---
two-way-sms-chat-nodejsNode.jsSend and receive SMS messages with Telnyx using Node.js and Express, with signature-verified inbound webhooks and automatic replies.
two-way-sms-chat-phpPHP---
two-way-sms-chat-pythonPythonSend and receive SMS with Telnyx to run interactive, stateful text conversations over a Flask webhook.
two-way-sms-chat-rubyRuby---
verify-multi-channel-auth-pythonPythonVerify Multi-Channel Auth - multi-channel verification: SMS first, fallback to voice call, then WhatsApp. Cascading 2FA.
verify-phone-number-otp-flow-pythonPythonVerify Phone Number OTP Flow - Telnyx Verify API with SMS primary and voice call fallback.
whatsapp-order-tracking-notifications-pythonPythonWhatsApp Order Tracking Notifications - proactive shipping updates and AI-powered order inquiries.
whatsapp-sms-bridge-pythonPythonWhatsApp-SMS Bridge - receive messages on WhatsApp and forward them via SMS, and vice versa. Bidirectional bridge between two messaging channels.
whatsapp-verify-otp-pythonPythonSend and verify one-time passwords via WhatsApp using the Telnyx Verify API.
white-label-appointment-platform-pythonPythonMulti-tenant SaaS that gives any service business their own AI phone line with booking, reminders, and calendar sync. Each tenant has own number, greeting, and config.
x402-usdc-account-funder-pythonPythonX402 USDC Account Funder - fund your Telnyx account with USDC cryptocurrency on the Base blockchain.

AI Assistants

(141 examples)

Create, manage, and chat with Telnyx AI Assistants - LLM-powered agents for voice and messaging automation.

ExampleLanguageDescription
adventure-game-pythonPythonAI Adventure Game — a text-based choose-your-own-adventure game where every scene and choice is generated in real time by Telnyx AI Inference.
agent-fleet-shared-workspaceNode.js---
agent-with-tool-callingNode.jsBuild a Telnyx Edge Compute Agent SDK app where an LLM chooses send_sms, make_call, and check_status tools, dispatches them with toolCallId, and returns a final response.
ai-after-hours-emergency-triage-pythonPythonAI After-Hours Emergency Triage - after-hours calls screened by AI. True emergencies get forwarded to on-call; everything else gets a voicemail + next-day callback promise.
ai-assistant-filler-messages-demo-pythonPythonWebhook server with live split-screen dashboard for demoing AI Assistant filler messages during sync tool calls.
ai-assistant-knowledge-base-pythonPythonAI Assistant Knowledge Base - AI Assistant with document knowledge base for context-aware Q&A over uploaded documents.
ai-assistant-multi-tool-pythonPythonAI Assistant Multi-Tool - AI Assistant with custom function-calling tools for CRM lookup, appointment booking, and order status.
ai-assistant-phone-setup-pythonPythonAI Assistant Phone Setup - create and configure a managed Telnyx AI Assistant and wire it to a phone number.
ai-audiobook-narrator-pythonPythonSubmit text, AI Inference chunks into chapters with pacing/emotion markup, TTS narrates each chapter with consistent voice, stores final audio in Telnyx Cloud Storage.
ai-billing-dispute-resolution-agent-pythonPythonAI Billing Dispute Resolution Agent - handles billing questions with account lookup.
ai-call-center-quality-scorer-pythonPythonAI Call Center Quality Scorer - automatically score agent performance from call recordings on compliance, empathy, resolution, and talk-to-listen ratio.
ai-cold-caller-objection-trainer-pythonPythonAI Cold Caller Objection Trainer - practice handling sales objections with AI-generated scenarios.
ai-competitive-win-loss-call-analyzer-pythonPythonAI Competitive Win/Loss Call Analyzer - analyze recorded sales calls for competitive intelligence.
ai-compliance-quiz-phone-pythonPythonAI Compliance Quiz Phone - employees call and take a compliance quiz. AI asks questions, evaluates answers, scores pass/fail, records completion.
ai-conference-moderator-pythonPythonAI moderator for multi-party calls. Manages agenda, enforces time limits, tracks speakers, produces structured summary with action items.
ai-conference-note-taker-pythonPythonAI Conference Note-Taker - joins calls, transcribes, extracts action items, sends SMS summaries.
ai-content-translator-pythonPythonUpload any audio (podcast, meeting, lecture), STT transcribes in source language, AI Inference translates, TTS generates audio in target language. Returns translated transcript and a downloadable dubbed audio file.
ai-customer-churn-predictor-pythonPythonAI Customer Churn Predictor - analyze call/message patterns via Telnyx APIs, AI predicts churn risk and suggests interventions.
ai-customer-winback-caller-pythonPythonAI Customer Winback Caller - AI calls churned customers with personalized re-engagement offers.
ai-debt-collection-compliance-agent-pythonPythonAI Debt Collection Compliance Agent - FDCPA-compliant outbound collection with real-time guardrails.
ai-deposition-assistant-pythonPythonAI joins legal deposition calls, produces real-time transcript, flags objectionable questions, tracks exhibits, generates structured deposition summary.
ai-event-rsvp-phone-line-pythonPythonAI Event RSVP Phone Line - call to RSVP for an event. AI collects guest info, dietary restrictions, plus-ones, and confirms the reservation.
ai-hiring-phone-screen-pythonPythonAI Hiring Phone Screen - automated first-round phone screening for job applicants.
ai-insurance-claims-intake-voice-pythonPythonAI Insurance Claims Intake - voice agent collects claim details, classifies, routes to adjuster.
ai-lab-results-notification-voice-pythonPythonCreate a HIPAA-aware Telnyx AI Assistant that verifies patients, delivers normal lab result summaries, sends secure portal links over SMS, and escalates abnormal results to a nurse.
ai-language-learning-phone-tutor-pythonPythonAI Language Learning Phone Tutor - call a number, practice a foreign language with AI.
ai-live-call-participant-pythonPythonAI joins a live multi-human conference call as an active participant. Listens via media streaming, contributes via TTS, takes notes, responds when addressed by name.
ai-medical-appointment-prep-caller-pythonPythonAI Medical Appointment Prep Caller - calls patients before appointments to collect intake info.
ai-meeting-action-tracker-pythonPythonJoins multi-party calls, identifies speakers, extracts action items with owners and deadlines, posts structured notes to Slack.
ai-multilingual-code-switching-agent-pythonPythonA phone-based Voice AI agent that detects the caller's language on every turn and replies in the same language. Switch mid-conversation and the agent follows. One assistant, five languages, no stitching separate STT, LLM, and TTS vendors.
ai-negotiation-practice-phone-pythonPythonAI Negotiation Practice Phone - practice salary negotiations, sales deals, or vendor contracts with an AI that plays the opposing side and scores your technique.
ai-pci-protected-payment-collection-pythonPythonA PCI-protected inbound payment collection demo using Telnyx Voice API, AI Assistants, the native Pay tool, and Pay over Voice.
ai-phone-story-hotline-pythonPythonAI Phone Story Hotline - call a number, choose a genre, and listen to an AI-generated interactive story where your choices shape the narrative.
ai-phone-tree-builder-from-description-pythonPythonAI Phone Tree Builder - describe your business in English, AI creates a working phone system.
ai-podcast-call-in-show-pythonPythonAI Podcast Call-In Show - callers dial in, AI screens and queues them, host manages live.
ai-podcast-post-producer-pythonPythonAI Podcast Post-Producer - record a podcast over a conference call, then AI generates show notes, timestamps, highlights, and social media clips.
ai-podcast-producer-pythonPythonRecord a multi-host podcast via conference call, transcribe each speaker with STT, generate show notes + chapters + social clips via AI Inference, and produce TTS intro/outro bumpers.
ai-powered-ivr-replacement-pythonPythonAI-Powered IVR Replacement - natural language routing with A/B testing and structured insights.
ai-pre-visit-clearance-voice-agent-pythonPythonInbound voice agent for healthcare pre-visit insurance clearance. Patients call to request prior authorization for a procedure, test, or medication. The agent verifies identity by DOB, collects procedure/provider/insurer, classifies urgency with AI, creates a structured intake ticket for billing staff, and sends an SMS confirmation.
ai-prescription-refill-intake-voice-assistant-pythonPythonCreate a Telnyx AI Assistant that answers prescription refill calls, collects medication and pharmacy details, flags requests for manual review, and queues pharmacy callbacks.
ai-price-quote-phone-agent-pythonPythonAI Price Quote Phone Agent - caller describes what they need, AI generates a customized price quote in real time with line items.
ai-property-management-maintenance-line-pythonPythonAI Property Management Maintenance Line - tenants call, AI triages maintenance requests.
ai-real-estate-showing-scheduler-pythonPythonAI Real Estate Showing Scheduler - buyers call or text, AI checks availability and books showings.
ai-real-time-translation-bridge-pythonPythonConnect two callers who speak different languages with real-time AI translation on a live phone call. Built with Telnyx Voice Call Control and AI Inference.
ai-receptionist-with-booking-tools-pythonPythonAI Receptionist with Booking Tools - AI Assistant with tool_use for real calendar booking actions.
ai-restaurant-reservation-voice-agent-pythonPythonAI Restaurant Reservation Voice Agent - handles calls, checks availability, books tables, sends SMS confirmation.
ai-sales-call-with-live-crm-updates-pythonPythonAI Sales Call with Live CRM Updates - multi-participant call with real-time deal intelligence.
ai-sales-coach-whisper-pythonPythonAI coach listens to a live sales call and whispers real-time suggestions to the rep only. Customer never hears the AI. Generates post-call scorecard.
ai-sales-demo-booking-agent-pythonPythonAI Sales Demo Booking Agent - inbound calls, AI qualifies the lead, books a demo on the calendar.
ai-standup-facilitator-phone-pythonPythonAI Standup Facilitator Phone - team members call in their daily standup update. AI collects what they did, what they're doing, and blockers, then summarizes for the team.
ai-subscription-cancel-save-retention-agent-pythonPythonCreate a Telnyx AI Assistant that handles subscription cancellation calls, offers one eligible save option, and routes cancel, pause, save, follow-up, or escalation outcomes.
ai-tech-support-voice-agent-pythonPythonIT helpdesk voice agent that answers calls, troubleshoots issues using a knowledge base, and escalates to human support via Telnyx Voice AI and Inference.
ai-video-dubbing-pipeline-pythonPythonUpload audio, STT transcribes, AI Inference labels speakers + translates to target language, TTS generates a dubbed audio track with speaker-matched voices. Full STT-to-TTS pipeline.
ai-voice-agent-with-function-calling-pythonPythonAI Voice Agent with Function Calling - voice agent that calls external APIs mid-conversation.
ai-voice-memo-to-email-pythonPythonAI Voice Memo to Email - call a number, dictate a memo, AI cleans it up and sends it as a formatted email via Telnyx.
ai-voice-survey-sentiment-tracker-pythonPythonAI Voice Survey Sentiment Tracker - real-time CSAT scoring from voice tone and word choice.
ai-voicemail-transcription-forwarding-pythonPythonAI Voicemail Transcription & Forwarding - voicemail to AI-summarized SMS/email with priority classification.
ai-voiceover-studio-pythonPythonUpload a script, select voice/style/pacing, AI adds professional direction cues (pauses, emphasis, pacing), TTS renders the voice-over, stores output in Cloud Storage. Supports multiple takes and retakes.
agent-message-replayTypescriptReplay recorded agent conversations with WebSocket live streaming — scrub through MessageLog history, watch state changes re-enact, and get optional LLM commentary.
build-rag-with-telnyx-inference-pythonPythonBuild a retrieval-augmented generation API with Telnyx embeddings and chat completions.
build-voice-ai-agent-nodejsNode.jsBuild a complete voice AI agent with Telnyx - answer inbound calls, transcribe speech, generate replies with Telnyx Inference, and speak them back via Call Control.
build-voice-ai-agent-pythonPythonBuild a complete voice AI agent with Telnyx - inbound call handling, AI conversation, and call control.
call-recording-ai-summarizer-pythonPythonCall Recording AI Summarizer - record calls, then summarize and extract action items with AI.
call-recording-redactor-pythonPythonAI Call Recording Redactor — transcribe call audio and redact PII (names, cards, SSNs, addresses, phones, emails) via Telnyx STT + AI Inference.
changelog-generator-pythonPythonAI Changelog Generator — turn git commits and diffs into a clean, human-readable changelog via Telnyx AI Inference.
chat-with-ai-assistant-csharpC#---
chat-with-ai-assistant-goGoSend messages to a Telnyx AI assistant and maintain multi-turn context with a conversation id, using a Go + Gin server.
chat-with-ai-assistant-javaJavaChat with a Telnyx AI Assistant and thread a multi-turn conversation using the Telnyx Java SDK over a JDK HttpServer endpoint.
chat-with-ai-assistant-nodejsNode.jsSend a message to a Telnyx AI Assistant and return its response over a production-ready Express endpoint.
chat-with-ai-assistant-phpPHPSend a message to a Telnyx AI Assistant from a vanilla PHP front controller and return its reply, keeping conversation context across turns.
chat-with-ai-assistant-pythonPythonSend messages to a Telnyx AI Assistant and receive responses. Supports conversation history and streaming.
chat-with-ai-assistant-rubyRubyChat with a Telnyx AI Assistant and maintain conversation context over a production-ready Sinatra endpoint using the Telnyx Ruby SDK.
click-to-call-webrtc-with-ai-assist-pythonPythonClick-to-Call WebRTC with AI Assist - browser-based calling with real-time AI coaching sidebar.
clone-ai-assistant-csharpC#---
clone-ai-assistant-goGo---
clone-ai-assistant-javaJava---
clone-ai-assistant-nodejsNode.js---
clone-ai-assistant-phpPHP---
clone-ai-assistant-pythonPythonClone an existing AI assistant configuration.
clone-ai-assistant-rubyRuby---
collaborative-doc-ai-copilotNode.jsReal-time multiplayer document editing on Telnyx Edge Compute with an AI copilot that suggests improvements via the zero-credential Telnyx Inference binding.
rag-corpus-shared-across-agentsNode.jsMultiple AI agent personalities answering over ONE shared RAG corpus on Telnyx Edge Compute — a CorpusAgent embeds documents into per-actor SQL, and PersonaAgent actors retrieve, cite, and answer with their own voice through the zero-credential Telnyx Inference binding.
compliance-call-recorder-ai-auditor-pythonPythonCompliance Call Recorder + AI Auditor - auto-record, batch-process with AI, flag violations, create tickets.
conference-agent-mediatorTypescriptAn AI meeting facilitator that joins conference calls, transcribes, mediates turn-taking, and sends post-call summaries via SMS.
conference-call-with-ai-summary-pythonPythonConference Call with AI Summary - multi-party conference with transcription and AI post-call summary.
create-ai-assistant-csharpC#---
create-ai-assistant-goGo---
create-ai-assistant-javaJava---
create-ai-assistant-nodejsNode.jsCreate a Telnyx AI Assistant over an HTTP endpoint using the Telnyx Node.js SDK and Express.
create-ai-assistant-phpPHP---
create-ai-assistant-pythonPythonCreate a new Telnyx AI Assistant with a system prompt, model selection, and tool configuration.
create-ai-assistant-rubyRuby---
edge-event-micrositeNode.jsEvent microsite + AI concierge on Telnyx Edge Compute — one KV store powers the site, the SMS/WhatsApp concierge, lead qualification, in-browser voice AI, feedback transcription, and the sponsor report.
error-explainer-pythonPythonAI Error Explainer — paste a stack trace, get a root-cause hypothesis, confidence, severity, and a suggested fix via Telnyx AI Inference.
event-microsite-that-takes-callsPythonA Flask event microsite backed by Telnyx KV that lets attendees text, call, or talk in-browser to an AI concierge, broadcasts schedule changes, qualifies exhibitor leads, and transcribes post-event feedback into a sponsor report.
extract-structured-json-with-ai-pythonPythonExtract structured JSON from support tickets, emails, leads, or incident reports with Telnyx AI Inference.
fax-to-ai-document-processor-pythonPythonFax to AI Document Processor - receive fax, AI extracts data, forwards structured summary.
full-stack-ai-contact-center-pythonPythonFull-Stack AI Contact Center - complete contact center: IVR + queue + AI agent assist + recording + live analytics.
get-ai-assistant-pythonPython---
global-ip-failover-monitor-pythonPythonGlobal IP Failover Monitor - monitor Global IP endpoints across regions, auto-failover between healthy endpoints.
insurance-claims-intake-pythonPythonPolicyholder calls, AI collects incident details, accepts photos via MMS, creates claim, assigns adjuster, texts status updates. Adjuster reviews AI-prepared claim.
kv-backed-rate-limiterNode.js---
langchain-streaming-agentNode.jsLangChain tool-calling agent on Telnyx Edge Compute streaming every token, tool call, and result over WebSocket via the zero-credential Telnyx Inference binding.
langgraph-agent-on-edgeNode.js---
language-learning-flashcards-pythonPythonListen to a phrase, repeat it back, and get instant pronunciation feedback. TTS speaks, you repeat, STT transcribes, Inference scores — interactive language learning powered by all three Telnyx AI primitives.
list-ai-assistants-csharpC#---
list-ai-assistants-goGo---
list-ai-assistants-javaJava---
list-ai-assistants-nodejsNode.jsList all AI assistants in your Telnyx account using the Telnyx Node.js SDK and an Express endpoint.
list-ai-assistants-phpPHP---
list-ai-assistants-pythonPythonList all Telnyx AI Assistants in your account with filtering and pagination.
list-ai-assistants-rubyRuby---
maintenance-request-dispatch-pythonPythonTenant texts issue, AI categorizes and estimates cost, auto-dispatches vendor for routine work, manager approves orders over $500 via SMS reply.
missions-ai-task-runner-pythonPythonMissions AI Task Runner - AI-driven task execution within the Telnyx Missions framework. AI decides next steps based on task results.
moderation-classifier-pythonPythonAI Moderation Classifier — classify user-generated content as safe/spam/abuse/hate/harassment/self-harm using embeddings pre-filter + LLM judgment via Telnyx AI Inference.
multi-channel-ai-helpdesk-with-ticketing-pythonPythonMulti-Channel AI Helpdesk with Ticketing - voice + SMS + WhatsApp support with auto-ticket creation.
multi-character-narrator-pythonPythonPaste a dialogue script with speaker labels, assign each speaker a distinct Telnyx Ultra voice, render every line in parallel, and stitch the per-line audio into one continuous MP3.
multi-model-inference-switcherNode.jsSwitch between LLM models at runtime via a KV feature flag — no redeploy. Agent SDK + zero-credential inference + admin UI with live model switching.
multi-party-ai-training-call-pythonPythonAI plays customer roles for sales/support practice. Multiple trainees join, AI rotates scenarios and scores each trainee.
network-incident-agentTypescriptA durable incident actor that assesses severity, proactively sends SMS, answers calls with incident context, writes an RCA to CloudFS, and checks for recurrence.
omnichannel-ai-receptionist-pythonPythonOne AI brain that handles inbound calls, SMS, and WhatsApp with unified conversation context and intelligent routing via Telnyx AI Inference.
outbound-hold-agent-pythonPythonCall a business, navigate IVRs with a Telnyx AI Assistant, pause the assistant during hold, monitor with transcription, and resume with context when a representative answers.
patient-agentTypescriptA durable agent that tracks appointments, medication adherence, and proactively checks in via SMS — the actor IS the patient.
persistent-state-agentNode.js---
policy-renewal-campaign-pythonPythonAutomated multi-channel renewal reminders. 60 days: SMS. 30 days: AI voice call reviewing coverage changes. 7 days: urgent SMS. Agent reviews lapsed policies for win-back.
quiz-generator-pythonPythonAI Quiz Generator — turn any article or text into a multiple-choice quiz with answer key and explanations via Telnyx AI Inference.
restaurant-reservation-waitlist-pythonPythonAI answers calls, checks table availability, books or adds to waitlist, texts when table is ready. Host reviews large party requests.
run-llm-inference-nodejsNode.jsRun large language model inference through the Telnyx Inference API using an OpenAI-compatible chat completions interface from Node.js. Works as both an HTTP server and a CLI tool.
run-llm-inference-pythonPythonSend chat completion requests to the Telnyx Inference API using an OpenAI-compatible interface from Python.
semantic-search-pythonPythonSemantic Search — index support tickets via Telnyx embeddings API and find similar issues by meaning, not keywords. Includes a bundled sample ticket dataset.
shipment-agentPythonA durable AI shipment agent that proactively communicates with customers across carriers and status changes via SMS and Voice.
sms-two-factor-agentTypescriptAgent-managed SMS two-factor authentication with code generation, KV storage, and scheduled expiry.
sql-natural-language-pythonPythonAI SQL Natural Language — turn plain-English questions into validated SQL with schema context via Telnyx AI Inference. Includes a sample dataset for live execution.
storage-voicemail-archive-pythonPythonStorage Voicemail Archive - record voicemails to Telnyx Cloud Storage with search.
texml-voicemail-drop-pythonPythonLeave pre-recorded voicemails at scale via TeXML.
three-way-ai-interpreter-pythonPythonTwo humans speak different languages on the same call. AI translates in real-time and speaks the translation to each party.
update-ai-assistant-pythonPythonUpdate an existing Telnyx AI Assistant's configuration, model, system prompt, and tools via the API.
video-room-ai-meeting-moderator-pythonPythonVideo Room AI Meeting Moderator - create video rooms with AI-powered agenda tracking and time management.
video-room-ai-moderator-pythonPythonVideo Room AI Moderator - create video rooms with AI-powered content moderation on chat and participant management.
voice-ivr-with-agent-backendPythonA natural language IVR system where the Telnyx Agent handles backend logic and an LLM powers dynamic menu options.
voice-journal-daily-log-pythonPythonVoice Journal Daily Log - call a number, speak your daily journal entry, AI transcribes and organizes it with mood, topics, and gratitude extraction.
voicemail-smart-router-pythonPythonAI Voicemail Smart Router — transcribe voicemails, classify intent (urgent, billing, support, sales, spam, routine), and route to the right channel via Telnyx STT + AI Inference.
warm-transfer-ai-briefing-pythonPythonWhen an agent transfers a call, AI summarizes the conversation and briefs the next agent before connecting. No cold handoffs.
webhook-aggregator-fanoutPythonAggregate, deduplicate, and fan out Telnyx webhooks to multiple action queues (call and SMS) with SQLite event logging.
webhook-debugger-ai-assistant-pythonPythonWebhook Debugger AI Assistant - catch, inspect, and debug Telnyx webhooks with AI explanations.
webrtc-ai-interpreter-live-calls-pythonPythonWebRTC AI Interpreter for Live Calls - real-time translation between two callers speaking different languages.

SIP Trunking

(35 examples)

Connect your PBX or SBC to Telnyx SIP Trunking - trunk setup, inbound routing, failover, and codec configuration.

ExampleLanguageDescription
configure-sip-codecs-pythonPythonConfigure audio codecs for SIP trunks.
inbound-sip-routing-csharpC#---
inbound-sip-routing-goGo---
inbound-sip-routing-javaJava---
inbound-sip-routing-nodejsNode.jsCreate and manage Telnyx SIP connections for inbound call routing, and receive inbound call webhooks, using Node.js and Express.
inbound-sip-routing-phpPHP---
inbound-sip-routing-pythonPythonRoute inbound SIP calls to your endpoints.
inbound-sip-routing-rubyRuby---
setup-sip-trunk-csharpC#Create, list, and retrieve credential-authenticated SIP connections using the Telnyx.net SDK and minimal ASP.NET.
setup-sip-trunk-goGoCreate, list, and retrieve Telnyx SIP trunk connections via a Go and Gin REST API.
setup-sip-trunk-javaJavaCreate, list, and retrieve credential-authenticated Telnyx SIP connections with the Telnyx Java SDK and the JDK's built-in HTTP server.
setup-sip-trunk-nodejsNode.jsCreate, retrieve, and list credential-authenticated SIP connections using the Telnyx SIP Trunking API.
setup-sip-trunk-phpPHPCreate, list, and retrieve a Telnyx credential (SIP) connection using the Telnyx PHP SDK over a vanilla PHP front controller.
setup-sip-trunk-pythonPythonProvision and configure a SIP trunk connection on Telnyx with codec preferences, authentication, and failover.
setup-sip-trunk-rubyRubyCreate, list, and retrieve credential-authenticated SIP connections using the Telnyx SIP Trunking API with Ruby and Sinatra.
sip-cnam-lookup-csharpC#---
sip-cnam-lookup-goGo---
sip-cnam-lookup-javaJava---
sip-cnam-lookup-nodejsNode.js---
sip-cnam-lookup-phpPHP---
sip-cnam-lookup-pythonPython---
sip-cnam-lookup-rubyRuby---
sip-failover-routing-goGo---
sip-failover-routing-nodejsNode.js---
sip-failover-routing-pythonPythonConfigure failover routing for SIP connections.
sip-failover-routing-rubyRuby---
sip-load-balancer-health-check-pythonPythonSIP Load Balancer Health Check - monitor SIP trunk health across multiple endpoints, auto-failover to healthy trunks, track uptime metrics.
sip-registration-csharpC#---
sip-registration-goGo---
sip-registration-javaJava---
sip-registration-nodejsNode.js---
sip-registration-phpPHP---
sip-registration-pythonPython---
sip-registration-rubyRuby---
sip-trunking-failover-monitor-pythonPythonSIP Trunking Failover Monitor - health-check SIP connections, auto-failover, SMS alerts.

IoT & SIM Management

(34 examples)

Activate SIM cards, monitor data usage, provision eSIMs, and track device locations with the Telnyx IoT platform.

ExampleLanguageDescription
activate-sim-card-csharpC#Enable (activate) a SIM card on the Telnyx network using C# and ASP.NET.
activate-sim-card-goGoActivate a Telnyx IoT SIM card over HTTP using the Telnyx Go SDK and Gin.
activate-sim-card-javaJavaActivate a Telnyx IoT SIM card over HTTP using the Telnyx Java SDK and the JDK HttpServer.
activate-sim-card-nodejsNode.jsRetrieve and activate a Telnyx IoT SIM card by ID using the Telnyx Node.js SDK over an Express API.
activate-sim-card-phpPHPEnable (activate) a Telnyx IoT SIM card by ID using the Telnyx PHP SDK over a vanilla PHP front controller.
activate-sim-card-pythonPythonActivate a SIM card on the Telnyx network.
activate-sim-card-rubyRubyActivate a Telnyx IoT SIM card using Ruby and Sinatra.
iot-fleet-alert-escalation-pythonPythonIoT Fleet Alert Escalation - severity-based routing from IoT sensors to SMS, calls, and multi-party conferences.
iot-mqtt-messaging-pythonPython---
iot-panic-button-voice-alert-pythonPythonIoT Panic Button Voice Alert - IoT device triggers SIM-based alert, system calls emergency contacts with location and status.
iot-smart-building-voice-control-pythonPythonIoT Smart Building Voice Control - call a number to control building systems via AI + IoT SIMs.
monitor-iot-data-usage-csharpC#---
monitor-iot-data-usage-goGo---
monitor-iot-data-usage-javaJava---
monitor-iot-data-usage-nodejsNode.jsMonitor Telnyx IoT SIM card data usage with an Express server that polls usage on an interval and exposes REST endpoints for per-SIM consumption and threshold alerts.
monitor-iot-data-usage-phpPHP---
monitor-iot-data-usage-pythonPythonProduction-ready Flask application for monitoring SIM card data usage via Telnyx IoT API.
monitor-iot-data-usage-rubyRuby---
provision-esim-goGo---
provision-esim-javaJava---
provision-esim-nodejsNode.js---
provision-esim-phpPHP---
provision-esim-pythonPythonProvision eSIM profiles over the air.
provision-esim-rubyRuby---
sim-fleet-data-usage-anomaly-detector-pythonPythonSIM Fleet Data Usage Anomaly Detector - monitor IoT SIM usage, AI detects anomalies, SMS alerts.
track-iot-device-location-csharpC#---
track-iot-device-location-goGo---
track-iot-device-location-javaJava---
track-iot-device-location-nodejsNode.js---
track-iot-device-location-phpPHP---
track-iot-device-location-pythonPythonProduction-ready Flask application for device location tracking via Telnyx IoT API.
track-iot-device-location-rubyRuby---
voice-activated-iot-command-pythonPythonVoice-Activated IoT Command - call a number, speak commands to control IoT devices. AI interprets natural language into device actions dispatched via SIM API.
wireless-fleet-activation-portal-pythonPythonBulk activate SIMs with status tracking.

What Is Telnyx?

Telnyx is an AI Communications Infrastructure platform that provides a single, integrated API for:

  • Voice AI - Programmable voice with Call Control, IVR, recording, conferencing, and WebRTC.
  • SMS & MMS - Send and receive messages globally with delivery receipts and webhook events.
  • SIP Trunking - Connect your existing PBX with elastic SIP trunks, failover routing, and codec control.
  • AI Assistants - Deploy LLM-powered voice and messaging agents with built-in telephony.
  • IoT & SIM - Global IoT connectivity with SIM management, eSIM provisioning, and data monitoring.

Unlike stitching together multiple vendors into a Frankenstack, Telnyx gives you one platform, one API key, and one bill. Calls and messages traverse the Telnyx-owned private IP network for lower latency and higher reliability.

How to Get a Telnyx API Key

  1. Sign up at portal.telnyx.com.
  2. Navigate to API Keys in the left sidebar.
  3. Click Create API Key and copy the key.
  4. Add it to your .env file as TELNYX_API_KEY=your_key_here.

Telnyx offers free trial credit for testing.

FAQ

Q: What programming languages are supported?

These examples cover Python, Node.js, Go, and Ruby. Telnyx also provides official SDKs for Java, PHP, and C#.

Q: Are these examples production-ready?

Yes. Every example includes error handling, environment-based configuration, and Telnyx webhook signature verification. Review security and scaling considerations before deploying to production.

Q: How is Telnyx different from Twilio?

Telnyx is an AI Communications Infrastructure platform with a private global network. It offers integrated voice, messaging, AI, SIP, and IoT under one API - no need to stitch together multiple vendors. Telnyx also offers significantly lower pricing with no per-seat fees or contracts. See a detailed Telnyx vs Twilio comparison.

Q: Do I need multiple vendors for voice, SMS, and AI?

No. Telnyx provides voice, SMS/MMS, SIP trunking, AI assistants, and IoT SIM management through a single platform and API key.

Q: Can I use these examples with my existing PBX?

Yes. The SIP trunking examples show how to connect Telnyx to Asterisk, FreeSWITCH, 3CX, and other PBX systems.

Q: Is there a free tier?

Telnyx provides trial credit when you sign up. After that, pricing is pay-as-you-go with no minimums or contracts.

Q: How do I get help?

Check the Troubleshooting section in each example, visit developers.telnyx.com, or reach out to support@telnyx.com.

Contributing

See CONTRIBUTING.md for guidelines on adding new examples.

License

MIT

Contributors

sonamg-droid

161 commits

anusha-telnyx

105 commits

harpreetTelnyx

80 commits

somemothersson

42 commits

team-telnyx/telnyx-code-examples

Production-ready code examples for Telnyx AI Communications Infrastructure — Voice AI, SMS, SIP, and IoT APIs

155

stars

425

commits

Python

primary language

Sep 10, 2026

updated

developers.telnyx.com
ai-agent
ai-inference
call-control
csharp
go
iot
ivr
java
nodejs
php
python
ruby
sip-trunking
sms-api
telnyx
text-to-speech
voice-ai
voice-api
webhooks
webrtc
Browse cluster: Message queuing and network protocols

README

Telnyx Code Examples - AI Communications Infrastructure

Production-ready code examples for the Telnyx platform. Each example is a self-contained project with working code, documentation, and environment configuration - clone, configure, and run in minutes.

Quick Start

# 1. Clone the repository
git clone https://github.com/team-telnyx/telnyx-code-examples.git
cd telnyx-code-examples

# 2. Pick an example
cd send-sms-python

# 3. Configure and run (see each example's README for language-specific commands)
cp .env.example .env
# Edit .env with your Telnyx API key from https://portal.telnyx.com
pip install -r requirements.txt && python app.py

Full API reference at developers.telnyx.com

Each example's README has a Quick Start with the exact install/run commands for its language, an API.md typed endpoint reference, and a GUIDE.md walkthrough.


Voice AI

(158 examples)

Build voice applications with Telnyx Voice AI - IVR menus, call recording, conferencing, WebRTC, and AI-powered call routing.

ExampleLanguageDescription
ai-assistant-client-side-tools-nextjsNode.jsBuild a browser-based Next.js dashboard where a Telnyx AI Assistant invokes client-side JavaScript tools to navigate the UI, change theme, open a modal, and update React form state.
ai-assistant-multiparticipant-calling-nodejsNode.jsBuild a Telnyx Voice AI assistant that answers an inbound call, uses a backend tool to dial a second participant, and joins them into the same live AI conversation with ai_assistant_join.
ai-call-campaign-orchestratorPythonDurable outbound call campaign with rate limiting, SQL tracking, and SMS summary using Telnyx Agent SDK, Call Control, and SMS.
ai-powered-call-routerTypescriptRoute inbound calls by analyzing caller intent with the Telnyx AI Inference binding and a Telnyx KV route table. One StatefulActor per call leg; zero-credential LLM classification + global KV lookup on the Edge Runtime.
branded-caller-id-manager-pythonPythonBranded Caller ID Manager - register, manage, and verify branded calling profiles with STIR/SHAKEN attestation for higher answer rates.
build-conference-calling-goGo---
build-conference-calling-nodejsNode.js---
build-conference-calling-phpPHP---
build-conference-calling-pythonPythonCreate multi-party conference calls.
build-conference-calling-rubyRuby---
build-conversational-workflow-nodejsNode.jsBuild a Telnyx Conversational Workflow for inbound auto insurance claim intake with structured branches, backend tools, and priority follow-up.
build-ivr-phone-menu-csharpC#---
build-ivr-phone-menu-goGo---
build-ivr-phone-menu-nodejsNode.jsProduction-ready IVR system using the Telnyx Voice API and Express.js. Answers inbound calls, plays a menu via TTS, collects DTMF input, and routes callers to sales or support.
build-ivr-phone-menu-phpPHP---
build-ivr-phone-menu-pythonPythonBuild an interactive voice response menu with DTMF input.
build-ivr-phone-menu-rubyRuby---
bulk-number-validation-cleaner-pythonPythonBulk Number Validation & Cleaner - validate and clean phone number lists via Telnyx Number Lookup API.
call-analytics-dashboard-api-pythonPythonPull call detail records from the Telnyx API and expose call usage analytics through a dashboard API.
call-compliance-goGo---
call-compliance-pythonPython---
call-compliance-rubyRuby---
call-forwarding-csharpC#---
call-forwarding-goGo---
call-forwarding-javaJava---
call-forwarding-nodejsNode.js---
call-forwarding-phpPHP---
call-forwarding-pythonPythonForward incoming calls to another destination.
call-forwarding-rubyRuby---
call-queue-with-hold-music-pythonPythonCall Queue with Hold Music - queue callers with position announcements and hold music, route to agents.
call-sentiment-live-escalation-pythonPythonCall Sentiment Live Escalation - monitor call transcripts in real-time. When negative sentiment or distress is detected, auto-escalate to a supervisor.
call-whisper-monitoring-csharpC#---
call-whisper-monitoring-goGo---
call-whisper-monitoring-javaJava---
call-whisper-monitoring-nodejsNode.js---
call-whisper-monitoring-phpPHP---
call-whisper-monitoring-pythonPythonMonitor calls with whisper prompts for agents.
call-whisper-monitoring-rubyRuby---
call-whisper-screen-pop-pythonPythonCall Whisper & Screen Pop - whisper caller info to agent before connecting the call.
cloud-storage-call-archive-pythonPythonCloud Storage Call Archive - archive call recordings to Telnyx Cloud Storage (S3-compatible) with searchable metadata.
cnam-caller-id-lookup-enrichment-pythonPythonCNAM Caller ID Lookup Enrichment - look up CNAM for inbound callers, enrich CRM records with caller identity.
commercial-voiceover-generator-pythonPythonProvide product name, target audience, and tone. AI writes 3 script variations with timing marks, TTS renders each in multiple voices, delivers top picks via SMS for client approval.
conference-live-poll-dtmf-pythonPythonConference Live Poll via DTMF - host asks a question, all conference participants vote by pressing 1-4, results tallied instantly.
conversation-relay-voice-bot-pythonPythonForward live phone calls to any existing text-in/text-out AI chatbot using Telnyx Conversation Relay — no changes to the bot.
deepfake-voice-detector-pythonPythonReal-time synthetic speech detection on live phone calls. Captures audio via media streaming, extracts acoustic features, scores deepfake probability with AI Inference, alerts security team via Slack.
edge-ai-assistant-backend-goGoUse a Telnyx Edge Compute function as the backend for AI Assistant dynamic variables and webhook tool calls — no separate server required.
edge-call-transcription-agentNode.jsLive call transcription agent on Telnyx Edge Compute + Agent SDK — answers an inbound call, streams STT into durable agent state, and on hangup summarizes the transcript via LLM, persists it to actor-local SQL, and texts the summary via SMS. Zero-credential inference and messaging via the [telnyx] binding.
edge-compliance-monitor-pythonPythonReal-time compliance checking for regulated call centers using Telnyx Voice, AI Inference, and Edge Compute.
edge-customer-agent-typescriptNode.jsA durable Entity Agent on Telnyx Edge Compute. One actor per customer phone number, surviving across days, calls, SMS messages, and actor evictions. The AI Assistant is the reasoning harness inside; the agent owns the durable state.
edge-fraud-firewall-pythonPythonScreen every inbound call at the edge with Telnyx Voice, Number Lookup, and AI Inference.
edge-geo-smart-router-pythonPythonRoute calls by geography at the edge using Telnyx Voice, AI Inference, and Edge Compute.
edge-ivr-ab-tester-pythonPythonA/B test different IVR flows at the edge.
edge-merge-ai-receptionist-pythonPythonEdge worker answers every call using Telnyx Voice, AI Inference, and Edge Compute with Merge HRIS.
edge-merge-reference-checker-pythonPythonAutomate reference checks when an ATS application advances using Telnyx Voice and AI Inference with Merge ATS.
edge-merge-shift-coverage-pythonPythonManager texts need a closer tonight using Telnyx Messaging and Edge Compute with Merge HRIS.
edge-number-masking-pythonPythonMarketplace-style proxy number pool at the edge.
edge-voice-agent-holds-callNode.jsVoice agent on Telnyx Edge Compute + Agent SDK — answers an inbound call and runs an STT → LLM → TTS conversation loop, all in the same PoP. Zero-credential inference via the [telnyx] binding.
edge-voicemail-to-action-pythonPythonAI-powered voicemail triage at the edge.
edge-webhook-aggregator-pythonPythonMulti-tenant webhook consolidation at the edge.
fax-to-structured-data-pipeline-pythonPythonFax-to-Structured-Data Pipeline - receive faxes, AI extracts structured data (invoices, orders, prescriptions) into JSON.
geo-distributed-call-loggerNode.js---
hold-music-csharpC#---
hold-music-goGo---
hold-music-javaJava---
hold-music-nodejsNode.js---
hold-music-phpPHP---
hold-music-pythonPython---
hold-music-rubyRuby---
hotel-guest-services-pythonPythonInbound voice and SMS guest services for hotels. Voice calls are handled by a Telnyx AI Assistant, while SMS requests are categorized and tracked by the Flask app.
kv-backed-rate-limiterNode.js---
live-podcast-call-in-pythonPythonHosts on a conference call, listeners call in. AI screens callers via STT, queues approved ones, generates real-time fact-checks for the host, TTS announces topics.
make-outbound-phone-call-csharpC#Place an outbound phone call with the Telnyx Call Control API using C# and ASP.NET.
make-outbound-phone-call-goGo---
make-outbound-phone-call-javaJavaPlace an outbound phone call with the Telnyx Call Control API using Java.
make-outbound-phone-call-nodejsNode.jsInitiate an outbound phone call using the Telnyx Call Control API. Exposes an Express endpoint that dials a number and returns the call control ID.
make-outbound-phone-call-phpPHPPlace an outbound phone call with the Telnyx Call Control API using PHP.
make-outbound-phone-call-pythonPythonProgrammatically place an outbound phone call using Telnyx Call Control and handle the call lifecycle.
make-outbound-phone-call-rubyRubyPlace an outbound phone call using the Telnyx Call Control API and the Telnyx Ruby SDK, exposed through a Sinatra endpoint.
media-stream-voice-cloak-pythonPythonMedia Stream Voice Cloak - real-time voice modification via media streaming API. Apply pitch shift, echo, or anonymization.
merge-deal-desk-alerts-pythonPythonCRM webhook fires when a deal moves to negotiation, triggering Telnyx Voice and AI Inference alerts with Merge CRM.
merge-employee-hotline-pythonPythonEmployees call and authenticate via caller ID using Telnyx Voice and AI Inference with Merge HRIS.
merge-expense-by-phone-pythonPythonSalesperson calls and dictates an expense using Telnyx Voice and AI Inference with Merge Accounting.
merge-interview-pipeline-pythonPythonATS webhook fires when a new application arrives, triggering Telnyx Voice, AI Inference, and Messaging with Merge ATS.
merge-invoice-collector-pythonPythonPulls overdue invoices from Merge Accounting and collects payments using Telnyx Voice, AI Inference, and Messaging.
merge-pipeline-briefing-pythonPythonMorning pipeline briefing delivered by Telnyx Voice and AI Inference with Merge CRM.
merge-recruitment-hotline-pythonPythonJob seekers call a recruitment hotline powered by Telnyx Voice, AI Inference, and Messaging with Merge ATS.
merge-ticket-escalation-pythonPythonCritical ticket fires a webhook from Merge Ticketing, escalating via Telnyx Voice and AI Inference.
multi-number-identity-router-pythonPythonMulti-Number Identity Router - route calls based on which number was dialed. Each number maps to a different business identity, greeting, and routing destination.
multilingual-voiceover-kit-pythonPythonSubmit a script in one language, AI translates to multiple targets preserving tone and timing, TTS renders each language with native-sounding voices. Batch localization for 15 languages.
number-lookup-fraud-screener-pythonPythonNumber Lookup Fraud Screener - screen inbound calls/messages for fraud indicators using number lookup before connecting.
number-lookup-lead-enrichment-pythonPythonNumber Lookup Lead Enrichment - CNAM and carrier lookup to qualify and enrich sales leads.
number-porting-status-tracker-pythonPythonNumber Porting Status Tracker - track porting orders with status webhooks and SMS alerts.
number-reputation-monitor-auto-rotate-pythonPythonNumber Reputation Monitor - track outbound number reputation, auto-rotate flagged numbers.
number-search-and-purchase-api-pythonPythonNumber Search and Purchase API - search, filter, and buy phone numbers programmatically.
number-warmup-reputation-builder-pythonPythonNumber Warmup & Reputation Builder - gradually ramp SMS volume on new numbers to build carrier reputation and avoid spam flags.
omni-channel-lab-inbox-agentNode.jsLab-result fax intake with a human-in-the-loop inbox: fax received, operator reviews and accepts (fax deleted, only reference kept), AI drafts confirmation email, SMS appointment flow, and a voice agent that answers status questions without touching lab content.
porting-loa-automation-pythonPythonPorting LOA Automation - automate Letter of Authorization generation and porting order submission.
porting-order-tracker-dashboard-pythonPythonSubmit, track, and manage number porting orders with SLA monitoring, timeline visualization, and bulk operations.
real-time-call-intelligence-dashboard-pythonPythonReal-Time Call Intelligence Dashboard - live transcription, sentiment analysis, and competitor detection.
record-phone-calls-csharpC#---
record-phone-calls-goGo---
record-phone-calls-javaJava---
record-phone-calls-nodejsNode.jsInitiate outbound calls and control call recording using the Telnyx Voice API with Express. Handles call lifecycle webhooks and recording start/stop.
record-phone-calls-phpPHP---
record-phone-calls-pythonPythonRecord calls and receive recording webhooks.
record-phone-calls-rubyRuby---
route-phone-calls-to-ai-agent-csharpC#---
route-phone-calls-to-ai-agent-goGoReceive inbound call webhooks from the Telnyx Voice API and answer calls programmatically with a Go + Gin server.
route-phone-calls-to-ai-agent-javaJava---
route-phone-calls-to-ai-agent-nodejsNode.jsReceive inbound call webhooks from the Telnyx Voice API and answer calls programmatically with an Express server using Call Control.
route-phone-calls-to-ai-agent-phpPHP---
route-phone-calls-to-ai-agent-pythonPythonHandle inbound calls with webhook-driven AI routing.
route-phone-calls-to-ai-agent-rubyRubyHandle inbound calls with webhook-driven AI routing using Ruby and Sinatra.
smart-number-geo-assignment-pythonPythonSmart Number Geo-Assignment - automatically purchase and assign local numbers based on caller geography to maximize answer rates.
telnyx-voice-api-agents-nodejsNode.jsStart one reusable Telnyx AI Assistant on Telnyx Voice API calls with runtime business instructions selected by the called phone number.
texml-dynamic-call-router-pythonPythonTeXML Dynamic Call Router - time-of-day and caller-based routing with TeXML responses.
text-to-speech-phone-call-csharpC#---
text-to-speech-phone-call-goGo---
text-to-speech-phone-call-javaJava---
text-to-speech-phone-call-nodejsNode.jsInitiate an outbound voice call and play a text-to-speech message on answer using the Telnyx Call Control API.
text-to-speech-phone-call-phpPHP---
text-to-speech-phone-call-pythonPythonPlay text-to-speech audio during a phone call.
text-to-speech-phone-call-rubyRuby---
transfer-live-phone-calls-csharpC#---
transfer-live-phone-calls-goGo---
transfer-live-phone-calls-javaJava---
transfer-live-phone-calls-nodejsNode.js---
transfer-live-phone-calls-phpPHP---
transfer-live-phone-calls-pythonPythonTransfer active calls to another number or agent.
transfer-live-phone-calls-rubyRuby---
video-voiceover-replacement-pythonPythonUpload audio with existing voice-over. STT extracts the script, AI rewrites/improves it (5 modes: polish, professional, simplify, energize, shorten), TTS re-records with studio quality.
video-webinar-recording-manager-pythonPythonVideo Webinar Recording Manager - manage video room webinars with automatic recording, transcription, and clip extraction.
voice-call-analytics-goGo---
voice-call-analytics-nodejsNode.js---
voice-call-analytics-phpPHP---
voice-call-analytics-pythonPython---
voice-call-analytics-rubyRuby---
voice-ivr-with-agent-backendPythonA natural language IVR system where the Telnyx Agent handles backend logic and an LLM powers dynamic menu options.
voice-to-slack-bridge-pythonPythonVoice-to-Slack Bridge - call a phone number, speak a message, AI transcribes and posts to Slack with urgency tagging.
voice-verified-identity-2fa-pythonPythonVoice-Verified Identity + 2FA - Number Lookup, SMS OTP, and AI-assisted secure transactions.
voicemail-csharpC#---
voicemail-goGo---
voicemail-javaJava---
voicemail-nodejsNode.js---
voicemail-phpPHP---
voicemail-pythonPython---
voicemail-rubyRuby---
voicemail-to-sms-agentNode.jsAn Edge-based agent that transcribes, summarizes, and texts voicemail summaries to the mailbox owner.
voiceover-audition-generator-pythonPythonSubmit a script, hear it read by every available TTS voice. AI scores and ranks best-fit voices based on content, tone, and audience. SMS delivers top picks to decision-makers.
warm-transfer-csharpC#---
warm-transfer-goGo---
warm-transfer-javaJava---
warm-transfer-nodejsNode.js---
warm-transfer-phpPHP---
warm-transfer-pythonPython---
warm-transfer-rubyRuby---
webrtc-browser-calling-pythonPythonEnable browser-based calling with WebRTC.
wireguard-private-voice-network-pythonPythonWireGuard Private Voice Network - create WireGuard mesh network for private SIP trunking with encrypted voice traffic.

SMS & MMS

(174 examples)

Send and receive text messages with the Telnyx SMS API - build autoresponders, implement 2FA, and manage bulk messaging campaigns.

ExampleLanguageDescription
abandoned-cart-recovery-pythonPythonSMS 1h after abandon with incentive, AI voice call 24h later if no purchase. Integrates with Shopify webhooks and Stripe for discount codes.
accounting-tax-season-line-pythonPythonHandles scheduling, document checklist reminders, status updates. AI texts clients with missing doc reminders. CPA reviews readiness before appointments.
after-hours-nurse-triage-pythonPythonAI screens symptoms using clinical decision tree, routes urgent to on-call nurse via PagerDuty, queues non-urgent for AM callback. Nurse reviews and overrides AI severity scores.
agent-sms-triage-botNode.jsSMS triage bot on Telnyx Edge Compute + Agent SDK — classifies inbound customer SMS by topic (billing/support/sales) via LLM and routes to the right queue using a durable route table. Zero-credential SMS and inference.
ai-appointment-booking-sms-flow-pythonPythonAI Appointment Booking SMS Flow - guided SMS booking with available slot selection.
ai-appointment-reminder-sms-voice-pythonPythonAI Appointment Reminder - SMS first, voice call for non-responders, AI handles rescheduling.
ai-email-agent-pythonPythonAI Email Agent — autonomous inbound email reply bot on the Telnyx Email API. A customer emails in, the AI drafts a reply, the Email API sends it back. One platform, one API key, one agent.
alphanumeric-sender-id-sms-pythonPythonSend SMS messages with a branded alphanumeric sender ID using the Telnyx Messaging API. Validates sender IDs and enforces regional restrictions.
audio-transcribe-summarize-smsNode.jsUpload a voicemail audio file → transcribe via STT → summarize with LLM → text the summary via SMS. Agent SDK pipeline on Telnyx Edge Compute with zero-credential inference and messaging.
autonomous-outbound-sales-agent-pythonPythonAutonomous Outbound Sales Agent - AI-driven lead qualification, objection handling, and meeting booking.
billing-anomaly-detector-pythonPythonBilling Anomaly Detector - monitor usage and billing for anomalies, alert on cost spikes and unusual patterns.
cdr-usage-analytics-dashboard-pythonPythonPull Call Detail Records, build usage analytics with cost breakdowns, peak-hour analysis, and AI-powered insights.
cloud-storage-media-cdn-pythonPythonCloud Storage Media CDN - use Telnyx Cloud Storage (S3-compatible) as a CDN for IVR prompts, hold music, and voice assets.
e911-address-validator-pythonPythonValidate and register emergency (E911) addresses for phone numbers via the Telnyx API.
ecommerce-order-status-bot-pythonPythonCustomers call or text order number, get real-time Shopify tracking. AI detects delivery exceptions and proactively texts customers before they call support.
edge-agri-crop-advisoryNode.jsAgriculture crop advisory on Telnyx Edge Compute Stateful Actors — classify crop issues (disease, pest, nutrient, water, weather) and recommend treatment via AI Inference. Escalates critical cases.
edge-cache-invalidation-agentNode.js---
edge-compute-webhook-proxy-pythonPythonReceive Telnyx voice and SMS webhooks at the edge with minimal latency. Validates, enriches with timestamps, HMAC-signs, and forwards to your backend.
edge-mcp-server-deploy-pythonPythonDeploy an MCP server to Telnyx Edge Compute exposing Telnyx APIs as tools for AI agents. Send SMS, search numbers, run inference.
edge-prompt-ab-testerNode.jsPrompt A/B tester on Telnyx Edge Compute Stateful Actors — run two prompt variants against the same task, collect user votes, and track which prompt wins.
edge-url-summarizerNode.jsURL summarizer on Telnyx Edge Compute Stateful Actors — fetch a URL, summarize via AI Inference, cache the result for instant repeat requests.
elearning-course-narrator-pythonPythonUpload course content, AI structures into audio modules with pacing cues and quiz prompts, TTS narrates each module, stores in Cloud Storage with a JSON manifest.
emergency-mass-notification-system-pythonPythonEmergency Mass Notification System - SMS + voice calls with delivery tracking and escalation.
fraud-alert-verification-pythonPythonSuspicious transaction triggers voice call to customer, verifies via DTMF, blocks or approves in real-time. Fraud team reviews edge cases via Slack.
global-lead-response-engine-pythonPythonGlobal Lead Response Engine - multi-language AI qualification with live transfer and omnichannel follow-up.
hosted-messaging-campaign-manager-pythonPythonHosted Messaging Campaign Manager - manage hosted messaging campaigns with subscriber opt-in/out tracking and delivery analytics.
interview-screen-scheduler-pythonPythonCandidate applies, AI calls for 5-min phone screen, scores answers, books qualified candidates on hiring manager's calendar. Integrates with Greenhouse ATS and Google Calendar.
isv-notification-engine-pythonPythonSaaS platform sends alerts via SMS/voice/WhatsApp based on customer preference and urgency. Multi-channel with fallback cascade and delivery tracking.
ivr-prompt-generator-pythonPythonGenerate professional IVR/phone system prompts. AI writes caller-friendly scripts from business descriptions, TTS renders in multiple voices, test via live Telnyx call playback.
law-firm-client-intake-pythonPythonAI answers after-hours calls, screens case type, collects facts, runs conflict check, books consultation via Calendly, collects retainer deposit via Stripe.
long-code-sms-pythonPythonSend A2P SMS over a long code with a rate-limited queue, delivery tracking, and signed inbound webhooks using the Telnyx Messaging API.
marketplace-comms-bridge-pythonPythonBuyer texts about a listing, AI responds with details, facilitates anonymous buyer-seller connection via masked numbers, handles scheduling. Ops reviews flagged conversations.
media-stream-custom-audio-mixer-pythonPythonMedia Stream Custom Audio Mixer - mix custom audio into live calls via WebSocket-based media streaming.
media-stream-live-transcription-pythonPythonMedia Stream Live Transcription - fork call audio to WebSocket for real-time transcription display.
merge-employee-onboarding-pythonPythonNew employee webhook from Merge HRIS triggers full provisioning: Telnyx phone number, AI voicemail greeting, welcome SMS with IT setup instructions, and IT ticket via Merge Ticketing.
messaging-campaign-ab-test-optimizer-pythonPythonMessaging Campaign A/B Test Optimizer - test SMS copy variants, AI picks winners, auto-scales.
migrate-from-elevenlabs-pythonPythonMigrate from ElevenLabs - import ElevenLabs voice configurations to Telnyx TTS with voice mapping and cost comparison.
migrate-from-twilio-pythonPythonMigrate from Twilio - complete Twilio-to-Telnyx migration tool: numbers, messaging profiles, voice apps, and webhook configs.
migrate-from-vapi-pythonPythonMigrate from Vapi - import Vapi voice agents to Telnyx AI Assistants with voice, prompt, and tool configuration mapping.
missions-workflow-orchestrator-pythonPythonMissions Workflow Orchestrator - create and manage multi-step mission workflows using the Telnyx Missions API.
mms-photo-inventory-tracker-pythonPythonMMS Photo Inventory Tracker - text a photo of inventory items with MMS, AI identifies and catalogs them automatically.
mms-receipt-scanner-expense-tracker-pythonPythonMMS Receipt Scanner & Expense Tracker - text a photo of a receipt, AI extracts data and tracks expenses.
multi-channel-appointment-confirmation-pythonPythonMulti-Channel Appointment Confirmation - confirm appointments via SMS, voice call, and WhatsApp. Tries SMS first, escalates to voice if no response.
multi-language-customer-survey-pythonPythonMulti-Language Customer Survey - outbound voice surveys in the caller's language with AI analysis.
multi-turn-sms-quiz-agentNode.jsAdaptive SMS quiz agent on Telnyx Edge Compute with durable per-sender state, LLM-generated questions, SQL event history, and browser demo mode.
patient-appointment-engine-pythonPythonAI answers calls, checks availability, books appointments, collects copay via Stripe, sends SMS confirmation. Staff reviews next-day schedule.
payment-reminder-escalation-pythonPythonInvoice overdue: day 1 SMS, day 7 voice call with payment link, day 14 escalation to collections with full context. Integrates with Stripe/QuickBooks.
phone-number-lookup-csharpC#---
phone-number-lookup-goGo---
phone-number-lookup-javaJava---
phone-number-lookup-nodejsNode.js---
phone-number-lookup-phpPHP---
phone-number-lookup-pythonPythonLook up carrier, line type, and portability data for any phone number using the Telnyx Number Lookup API, with a 24-hour in-memory cache.
phone-number-lookup-rubyRuby---
podcast-episode-repurposer-pythonPythonUpload a recorded episode, STT transcribes, AI Inference extracts key quotes and topics, TTS generates audiogram clips with different voices, SMS distributes clips to subscribers.
podcast-highlight-clipper-pythonPythonUpload audio, STT + AI Inference identifies viral moments with virality scoring, TTS generates teaser intros for each clip, SMS distributes highlights to subscriber list.
post-service-followup-engine-pythonPythonAfter appointment, SMS satisfaction survey. Negative responses trigger AI voice callback to understand the issue, then creates ticket in Jira and alerts manager via Slack.
prescription-refill-line-pythonPythonPatient calls, AI verifies identity (DOB + last 4 of phone), checks refill eligibility, sends approval to pharmacist via Slack. Pharmacist approves/denies, patient gets SMS.
programmable-hold-experience-pythonPythonProgrammable Hold Experience - custom hold experiences: tips, trivia, estimated wait time, callback offers.
rcs-rich-card-product-catalog-pythonPythonRCS Rich Card Product Catalog - AI-powered product recommendations with rich cards and carousels.
receive-mms-webhook-csharpC#---
receive-mms-webhook-goGo---
receive-mms-webhook-javaJava---
receive-mms-webhook-nodejsNode.js---
receive-mms-webhook-phpPHP---
receive-mms-webhook-pythonPythonReceive inbound MMS messages with a Telnyx webhook, verify the signature, and download media attachments.
receive-mms-webhook-rubyRuby---
receive-sms-webhook-csharpC#Receive inbound SMS via webhook with Ed25519 signature verification using C# and ASP.NET.
receive-sms-webhook-goGo---
receive-sms-webhook-javaJavaReceive inbound SMS via Telnyx webhooks with a JDK HttpServer, verifying the Ed25519 signature before reading data.payload.
receive-sms-webhook-nodejsNode.jsReceive inbound SMS messages via Telnyx webhooks with an Express server. Validates payloads and acknowledges within 5 seconds.
receive-sms-webhook-phpPHPReceive and Ed25519-verify inbound Telnyx SMS webhooks using the Telnyx PHP SDK over a vanilla PHP front controller.
receive-sms-webhook-pythonPythonReceive inbound SMS via webhook.
receive-sms-webhook-rubyRubyReceive inbound SMS messages via Telnyx webhooks with a Sinatra server, verifying the Telnyx Ed25519 signature before trusting any payload.
rent-collection-escalation-pythonPythonAutomated multi-channel rent reminders. Day 1: SMS + Stripe payment link. Day 3: voice call. Day 7: late fee notice. Day 14: manager escalation.
returns-processor-pythonPythonCustomer texts photo of defective item via MMS, AI evaluates damage, auto-approves low-value refunds via Stripe, escalates high-value to team lead.
schedule-sms-messages-csharpC#---
schedule-sms-messages-goGo---
schedule-sms-messages-javaJava---
schedule-sms-messages-nodejsNode.js---
schedule-sms-messages-phpPHP---
schedule-sms-messages-pythonPythonSchedule SMS messages to be sent at a future time with the Telnyx Messaging API, backed by an APScheduler job store and a Flask job-management API.
schedule-sms-messages-rubyRuby---
scheduled-reminder-agentNode.jsSMS reminder agent on Telnyx Edge Compute + Agent SDK — sends scheduled reminders via zero-credential SMS, detects snooze intent via LLM, and adapts timing with exponential backoff.
send-bulk-sms-csharpC#---
send-bulk-sms-goGo---
send-bulk-sms-javaJava---
send-bulk-sms-nodejsNode.jsSend bulk SMS messages to many recipients with rate limiting and per-message error tracking using the Telnyx Messaging API and Express.
send-bulk-sms-phpPHP---
send-bulk-sms-pythonPythonSend SMS messages to multiple recipients.
send-bulk-sms-rubyRuby---
send-mms-picture-message-csharpC#---
send-mms-picture-message-goGo---
send-mms-picture-message-javaJava---
send-mms-picture-message-nodejsNode.jsSend an MMS picture message with media attachments using the Telnyx Messaging API and a Node.js and Express endpoint.
send-mms-picture-message-phpPHP---
send-mms-picture-message-pythonPythonSend an MMS message with image attachments using the Telnyx Messaging API.
send-mms-picture-message-rubyRuby---
send-sms-csharpC#Send an SMS message using the Telnyx Messaging API with a C# minimal ASP.NET endpoint.
send-sms-goGoSend an SMS message using the Telnyx Messaging API and Go SDK, exposed over a Gin HTTP endpoint.
send-sms-javaJavaSend an SMS message using the Telnyx Messaging API and Java SDK, exposed over a JDK HttpServer endpoint.
send-sms-nodejsNode.jsSend an SMS message using the Telnyx Messaging API with a Node.js and Express endpoint.
send-sms-notifications-csharpC#---
send-sms-notifications-goGo---
send-sms-notifications-javaJava---
send-sms-notifications-nodejsNode.js---
send-sms-notifications-phpPHP---
send-sms-notifications-pythonPythonProduction-ready Flask service that sends SMS notifications, tracks delivery status via webhooks, and exposes a small REST API.
send-sms-notifications-rubyRuby---
send-sms-phpPHPSend an SMS message using the Telnyx Messaging API and the Telnyx PHP SDK, exposed through a vanilla PHP front controller.
send-sms-pythonPythonSend an SMS message using the Telnyx Messaging API. Supports delivery status webhooks.
send-sms-rubyRubySend an SMS message using the Telnyx Messaging API and the Telnyx Ruby SDK, exposed through a Rails controller endpoint.
sentiment-analysis-agentNode.jsAnalyze inbound SMS sentiment on Telnyx Edge Compute with the Agent SDK, log results to actor-local SQL, and escalate negative sentiment by SMS.
service-booking-dispatch-pythonPythonCustomer calls HVAC/plumber/electrician, AI checks tech availability, books slot, collects deposit via Stripe, texts confirmation to customer and tech.
shift-fill-engine-pythonPythonOpen shift triggers calls down the availability list. First to confirm gets it, rest are cancelled. Texts confirmation + notifies manager via Slack.
shortcode-sms-pythonPythonSend and receive two-way SMS over a Telnyx shortcode with Flask. Includes inbound webhook handling with signature verification.
smart-ivr-ab-tester-pythonPythonSmart IVR A/B Tester - run two IVR flows simultaneously and track which converts better.
sms-appointment-no-show-predictor-pythonPythonSMS Appointment No-Show Predictor - AI predicts no-shows from SMS response patterns, triggers interventions.
sms-auto-reply-bot-csharpC#---
sms-auto-reply-bot-goGo---
sms-auto-reply-bot-javaJava---
sms-auto-reply-bot-nodejsNode.jsReceive inbound SMS via signed Telnyx webhooks and send automatic replies using Node.js and Express.
sms-auto-reply-bot-phpPHP---
sms-auto-reply-bot-pythonPythonBuild an SMS autoresponder bot.
sms-auto-reply-bot-rubyRuby---
sms-chatbot-with-conversation-memory-pythonPythonSMS Chatbot with Conversation Memory - persistent AI conversations over text with context retention.
sms-conversation-exporterNode.js---
sms-conversation-threading-pythonPythonGroup inbound and outbound SMS by contact into persistent conversation threads with the Telnyx Messaging API and a SQLAlchemy-backed store.
sms-delivery-receipts-csharpC#---
sms-delivery-receipts-goGo---
sms-delivery-receipts-javaJava---
sms-delivery-receipts-nodejsNode.jsTrack SMS delivery status with Telnyx webhooks. Send messages, receive finalized delivery receipts, and look up per-message status.
sms-delivery-receipts-phpPHP---
sms-delivery-receipts-pythonPythonTrack SMS delivery status with Telnyx message.finalized webhooks, store delivery receipts in SQLite, and query message status over HTTP.
sms-delivery-receipts-rubyRuby---
sms-drip-campaign-engine-pythonPythonSMS Drip Campaign Engine - multi-step nurture sequences with branch logic and AI personalization.
sms-emergency-check-in-pythonPythonSMS Emergency Check-In - periodic wellness checks via SMS with escalation to emergency contacts.
sms-escape-room-game-pythonPythonSMS Escape Room Game - text-based adventure game over SMS. Solve puzzles, find clues, escape before time runs out.
sms-keyword-auto-responder-pythonPythonSMS Keyword Auto-Responder - keyword-triggered responses with match analytics.
sms-marketing-campaign-pythonPythonRun bulk SMS marketing campaigns with Flask and the Telnyx Messaging API - create campaigns, send rate-limited batches, and track delivery via webhooks.
sms-opt-out-management-pythonPythonManage SMS opt-out preferences with Telnyx. Auto-handles STOP/UNSUBSCRIBE replies via verified inbound webhooks, blocks messages to opted-out numbers, and keeps an auditable opt-out list in SQLite.
sms-poll-voting-system-pythonPythonText-to-vote polling with real-time results.
sms-support-agent-with-followupNode.jsSMS support agent on Telnyx Edge Compute + Agent SDK — answer SMS questions via LLM and schedule a 24h follow-up check-in. No API key in code.
sms-survey-bot-csharpC#---
sms-survey-bot-goGo---
sms-survey-bot-javaJava---
sms-survey-bot-nodejsNode.js---
sms-survey-bot-phpPHP---
sms-survey-bot-pythonPythonRun multi-question SMS surveys over the Telnyx Messaging API. Sends questions, validates inbound replies via signed webhooks, tracks per-participant progress, and exposes results.
sms-survey-bot-rubyRuby---
sms-trivia-game-tournament-pythonPythonSMS Trivia Game Tournament - multi-player trivia via SMS. Players join, answer timed questions, scores tracked on a live leaderboard.
sms-two-factor-auth-csharpC#---
sms-two-factor-auth-goGo---
sms-two-factor-auth-javaJava---
sms-two-factor-auth-nodejsNode.jsProduction-ready OTP 2FA system with Node.js and Express. Generates one-time passwords, delivers them over SMS via the Telnyx Messaging API, and verifies them with expiration, attempt limits, and rate limiting.
sms-two-factor-auth-phpPHP---
sms-two-factor-auth-pythonPythonImplement SMS-based two-factor authentication.
sms-two-factor-auth-rubyRuby---
toll-free-sms-campaign-manager-pythonPythonToll-Free SMS Campaign Manager - manage toll-free verification and send compliant campaigns.
toll-free-sms-pythonPythonSend SMS from a toll-free number with the Telnyx Messaging API and track delivery status via signed webhooks.
two-way-sms-chat-csharpC#---
two-way-sms-chat-goGo---
two-way-sms-chat-javaJava---
two-way-sms-chat-nodejsNode.jsSend and receive SMS messages with Telnyx using Node.js and Express, with signature-verified inbound webhooks and automatic replies.
two-way-sms-chat-phpPHP---
two-way-sms-chat-pythonPythonSend and receive SMS with Telnyx to run interactive, stateful text conversations over a Flask webhook.
two-way-sms-chat-rubyRuby---
verify-multi-channel-auth-pythonPythonVerify Multi-Channel Auth - multi-channel verification: SMS first, fallback to voice call, then WhatsApp. Cascading 2FA.
verify-phone-number-otp-flow-pythonPythonVerify Phone Number OTP Flow - Telnyx Verify API with SMS primary and voice call fallback.
whatsapp-order-tracking-notifications-pythonPythonWhatsApp Order Tracking Notifications - proactive shipping updates and AI-powered order inquiries.
whatsapp-sms-bridge-pythonPythonWhatsApp-SMS Bridge - receive messages on WhatsApp and forward them via SMS, and vice versa. Bidirectional bridge between two messaging channels.
whatsapp-verify-otp-pythonPythonSend and verify one-time passwords via WhatsApp using the Telnyx Verify API.
white-label-appointment-platform-pythonPythonMulti-tenant SaaS that gives any service business their own AI phone line with booking, reminders, and calendar sync. Each tenant has own number, greeting, and config.
x402-usdc-account-funder-pythonPythonX402 USDC Account Funder - fund your Telnyx account with USDC cryptocurrency on the Base blockchain.

AI Assistants

(141 examples)

Create, manage, and chat with Telnyx AI Assistants - LLM-powered agents for voice and messaging automation.

ExampleLanguageDescription
adventure-game-pythonPythonAI Adventure Game — a text-based choose-your-own-adventure game where every scene and choice is generated in real time by Telnyx AI Inference.
agent-fleet-shared-workspaceNode.js---
agent-with-tool-callingNode.jsBuild a Telnyx Edge Compute Agent SDK app where an LLM chooses send_sms, make_call, and check_status tools, dispatches them with toolCallId, and returns a final response.
ai-after-hours-emergency-triage-pythonPythonAI After-Hours Emergency Triage - after-hours calls screened by AI. True emergencies get forwarded to on-call; everything else gets a voicemail + next-day callback promise.
ai-assistant-filler-messages-demo-pythonPythonWebhook server with live split-screen dashboard for demoing AI Assistant filler messages during sync tool calls.
ai-assistant-knowledge-base-pythonPythonAI Assistant Knowledge Base - AI Assistant with document knowledge base for context-aware Q&A over uploaded documents.
ai-assistant-multi-tool-pythonPythonAI Assistant Multi-Tool - AI Assistant with custom function-calling tools for CRM lookup, appointment booking, and order status.
ai-assistant-phone-setup-pythonPythonAI Assistant Phone Setup - create and configure a managed Telnyx AI Assistant and wire it to a phone number.
ai-audiobook-narrator-pythonPythonSubmit text, AI Inference chunks into chapters with pacing/emotion markup, TTS narrates each chapter with consistent voice, stores final audio in Telnyx Cloud Storage.
ai-billing-dispute-resolution-agent-pythonPythonAI Billing Dispute Resolution Agent - handles billing questions with account lookup.
ai-call-center-quality-scorer-pythonPythonAI Call Center Quality Scorer - automatically score agent performance from call recordings on compliance, empathy, resolution, and talk-to-listen ratio.
ai-cold-caller-objection-trainer-pythonPythonAI Cold Caller Objection Trainer - practice handling sales objections with AI-generated scenarios.
ai-competitive-win-loss-call-analyzer-pythonPythonAI Competitive Win/Loss Call Analyzer - analyze recorded sales calls for competitive intelligence.
ai-compliance-quiz-phone-pythonPythonAI Compliance Quiz Phone - employees call and take a compliance quiz. AI asks questions, evaluates answers, scores pass/fail, records completion.
ai-conference-moderator-pythonPythonAI moderator for multi-party calls. Manages agenda, enforces time limits, tracks speakers, produces structured summary with action items.
ai-conference-note-taker-pythonPythonAI Conference Note-Taker - joins calls, transcribes, extracts action items, sends SMS summaries.
ai-content-translator-pythonPythonUpload any audio (podcast, meeting, lecture), STT transcribes in source language, AI Inference translates, TTS generates audio in target language. Returns translated transcript and a downloadable dubbed audio file.
ai-customer-churn-predictor-pythonPythonAI Customer Churn Predictor - analyze call/message patterns via Telnyx APIs, AI predicts churn risk and suggests interventions.
ai-customer-winback-caller-pythonPythonAI Customer Winback Caller - AI calls churned customers with personalized re-engagement offers.
ai-debt-collection-compliance-agent-pythonPythonAI Debt Collection Compliance Agent - FDCPA-compliant outbound collection with real-time guardrails.
ai-deposition-assistant-pythonPythonAI joins legal deposition calls, produces real-time transcript, flags objectionable questions, tracks exhibits, generates structured deposition summary.
ai-event-rsvp-phone-line-pythonPythonAI Event RSVP Phone Line - call to RSVP for an event. AI collects guest info, dietary restrictions, plus-ones, and confirms the reservation.
ai-hiring-phone-screen-pythonPythonAI Hiring Phone Screen - automated first-round phone screening for job applicants.
ai-insurance-claims-intake-voice-pythonPythonAI Insurance Claims Intake - voice agent collects claim details, classifies, routes to adjuster.
ai-lab-results-notification-voice-pythonPythonCreate a HIPAA-aware Telnyx AI Assistant that verifies patients, delivers normal lab result summaries, sends secure portal links over SMS, and escalates abnormal results to a nurse.
ai-language-learning-phone-tutor-pythonPythonAI Language Learning Phone Tutor - call a number, practice a foreign language with AI.
ai-live-call-participant-pythonPythonAI joins a live multi-human conference call as an active participant. Listens via media streaming, contributes via TTS, takes notes, responds when addressed by name.
ai-medical-appointment-prep-caller-pythonPythonAI Medical Appointment Prep Caller - calls patients before appointments to collect intake info.
ai-meeting-action-tracker-pythonPythonJoins multi-party calls, identifies speakers, extracts action items with owners and deadlines, posts structured notes to Slack.
ai-multilingual-code-switching-agent-pythonPythonA phone-based Voice AI agent that detects the caller's language on every turn and replies in the same language. Switch mid-conversation and the agent follows. One assistant, five languages, no stitching separate STT, LLM, and TTS vendors.
ai-negotiation-practice-phone-pythonPythonAI Negotiation Practice Phone - practice salary negotiations, sales deals, or vendor contracts with an AI that plays the opposing side and scores your technique.
ai-pci-protected-payment-collection-pythonPythonA PCI-protected inbound payment collection demo using Telnyx Voice API, AI Assistants, the native Pay tool, and Pay over Voice.
ai-phone-story-hotline-pythonPythonAI Phone Story Hotline - call a number, choose a genre, and listen to an AI-generated interactive story where your choices shape the narrative.
ai-phone-tree-builder-from-description-pythonPythonAI Phone Tree Builder - describe your business in English, AI creates a working phone system.
ai-podcast-call-in-show-pythonPythonAI Podcast Call-In Show - callers dial in, AI screens and queues them, host manages live.
ai-podcast-post-producer-pythonPythonAI Podcast Post-Producer - record a podcast over a conference call, then AI generates show notes, timestamps, highlights, and social media clips.
ai-podcast-producer-pythonPythonRecord a multi-host podcast via conference call, transcribe each speaker with STT, generate show notes + chapters + social clips via AI Inference, and produce TTS intro/outro bumpers.
ai-powered-ivr-replacement-pythonPythonAI-Powered IVR Replacement - natural language routing with A/B testing and structured insights.
ai-pre-visit-clearance-voice-agent-pythonPythonInbound voice agent for healthcare pre-visit insurance clearance. Patients call to request prior authorization for a procedure, test, or medication. The agent verifies identity by DOB, collects procedure/provider/insurer, classifies urgency with AI, creates a structured intake ticket for billing staff, and sends an SMS confirmation.
ai-prescription-refill-intake-voice-assistant-pythonPythonCreate a Telnyx AI Assistant that answers prescription refill calls, collects medication and pharmacy details, flags requests for manual review, and queues pharmacy callbacks.
ai-price-quote-phone-agent-pythonPythonAI Price Quote Phone Agent - caller describes what they need, AI generates a customized price quote in real time with line items.
ai-property-management-maintenance-line-pythonPythonAI Property Management Maintenance Line - tenants call, AI triages maintenance requests.
ai-real-estate-showing-scheduler-pythonPythonAI Real Estate Showing Scheduler - buyers call or text, AI checks availability and books showings.
ai-real-time-translation-bridge-pythonPythonConnect two callers who speak different languages with real-time AI translation on a live phone call. Built with Telnyx Voice Call Control and AI Inference.
ai-receptionist-with-booking-tools-pythonPythonAI Receptionist with Booking Tools - AI Assistant with tool_use for real calendar booking actions.
ai-restaurant-reservation-voice-agent-pythonPythonAI Restaurant Reservation Voice Agent - handles calls, checks availability, books tables, sends SMS confirmation.
ai-sales-call-with-live-crm-updates-pythonPythonAI Sales Call with Live CRM Updates - multi-participant call with real-time deal intelligence.
ai-sales-coach-whisper-pythonPythonAI coach listens to a live sales call and whispers real-time suggestions to the rep only. Customer never hears the AI. Generates post-call scorecard.
ai-sales-demo-booking-agent-pythonPythonAI Sales Demo Booking Agent - inbound calls, AI qualifies the lead, books a demo on the calendar.
ai-standup-facilitator-phone-pythonPythonAI Standup Facilitator Phone - team members call in their daily standup update. AI collects what they did, what they're doing, and blockers, then summarizes for the team.
ai-subscription-cancel-save-retention-agent-pythonPythonCreate a Telnyx AI Assistant that handles subscription cancellation calls, offers one eligible save option, and routes cancel, pause, save, follow-up, or escalation outcomes.
ai-tech-support-voice-agent-pythonPythonIT helpdesk voice agent that answers calls, troubleshoots issues using a knowledge base, and escalates to human support via Telnyx Voice AI and Inference.
ai-video-dubbing-pipeline-pythonPythonUpload audio, STT transcribes, AI Inference labels speakers + translates to target language, TTS generates a dubbed audio track with speaker-matched voices. Full STT-to-TTS pipeline.
ai-voice-agent-with-function-calling-pythonPythonAI Voice Agent with Function Calling - voice agent that calls external APIs mid-conversation.
ai-voice-memo-to-email-pythonPythonAI Voice Memo to Email - call a number, dictate a memo, AI cleans it up and sends it as a formatted email via Telnyx.
ai-voice-survey-sentiment-tracker-pythonPythonAI Voice Survey Sentiment Tracker - real-time CSAT scoring from voice tone and word choice.
ai-voicemail-transcription-forwarding-pythonPythonAI Voicemail Transcription & Forwarding - voicemail to AI-summarized SMS/email with priority classification.
ai-voiceover-studio-pythonPythonUpload a script, select voice/style/pacing, AI adds professional direction cues (pauses, emphasis, pacing), TTS renders the voice-over, stores output in Cloud Storage. Supports multiple takes and retakes.
agent-message-replayTypescriptReplay recorded agent conversations with WebSocket live streaming — scrub through MessageLog history, watch state changes re-enact, and get optional LLM commentary.
build-rag-with-telnyx-inference-pythonPythonBuild a retrieval-augmented generation API with Telnyx embeddings and chat completions.
build-voice-ai-agent-nodejsNode.jsBuild a complete voice AI agent with Telnyx - answer inbound calls, transcribe speech, generate replies with Telnyx Inference, and speak them back via Call Control.
build-voice-ai-agent-pythonPythonBuild a complete voice AI agent with Telnyx - inbound call handling, AI conversation, and call control.
call-recording-ai-summarizer-pythonPythonCall Recording AI Summarizer - record calls, then summarize and extract action items with AI.
call-recording-redactor-pythonPythonAI Call Recording Redactor — transcribe call audio and redact PII (names, cards, SSNs, addresses, phones, emails) via Telnyx STT + AI Inference.
changelog-generator-pythonPythonAI Changelog Generator — turn git commits and diffs into a clean, human-readable changelog via Telnyx AI Inference.
chat-with-ai-assistant-csharpC#---
chat-with-ai-assistant-goGoSend messages to a Telnyx AI assistant and maintain multi-turn context with a conversation id, using a Go + Gin server.
chat-with-ai-assistant-javaJavaChat with a Telnyx AI Assistant and thread a multi-turn conversation using the Telnyx Java SDK over a JDK HttpServer endpoint.
chat-with-ai-assistant-nodejsNode.jsSend a message to a Telnyx AI Assistant and return its response over a production-ready Express endpoint.
chat-with-ai-assistant-phpPHPSend a message to a Telnyx AI Assistant from a vanilla PHP front controller and return its reply, keeping conversation context across turns.
chat-with-ai-assistant-pythonPythonSend messages to a Telnyx AI Assistant and receive responses. Supports conversation history and streaming.
chat-with-ai-assistant-rubyRubyChat with a Telnyx AI Assistant and maintain conversation context over a production-ready Sinatra endpoint using the Telnyx Ruby SDK.
click-to-call-webrtc-with-ai-assist-pythonPythonClick-to-Call WebRTC with AI Assist - browser-based calling with real-time AI coaching sidebar.
clone-ai-assistant-csharpC#---
clone-ai-assistant-goGo---
clone-ai-assistant-javaJava---
clone-ai-assistant-nodejsNode.js---
clone-ai-assistant-phpPHP---
clone-ai-assistant-pythonPythonClone an existing AI assistant configuration.
clone-ai-assistant-rubyRuby---
collaborative-doc-ai-copilotNode.jsReal-time multiplayer document editing on Telnyx Edge Compute with an AI copilot that suggests improvements via the zero-credential Telnyx Inference binding.
rag-corpus-shared-across-agentsNode.jsMultiple AI agent personalities answering over ONE shared RAG corpus on Telnyx Edge Compute — a CorpusAgent embeds documents into per-actor SQL, and PersonaAgent actors retrieve, cite, and answer with their own voice through the zero-credential Telnyx Inference binding.
compliance-call-recorder-ai-auditor-pythonPythonCompliance Call Recorder + AI Auditor - auto-record, batch-process with AI, flag violations, create tickets.
conference-agent-mediatorTypescriptAn AI meeting facilitator that joins conference calls, transcribes, mediates turn-taking, and sends post-call summaries via SMS.
conference-call-with-ai-summary-pythonPythonConference Call with AI Summary - multi-party conference with transcription and AI post-call summary.
create-ai-assistant-csharpC#---
create-ai-assistant-goGo---
create-ai-assistant-javaJava---
create-ai-assistant-nodejsNode.jsCreate a Telnyx AI Assistant over an HTTP endpoint using the Telnyx Node.js SDK and Express.
create-ai-assistant-phpPHP---
create-ai-assistant-pythonPythonCreate a new Telnyx AI Assistant with a system prompt, model selection, and tool configuration.
create-ai-assistant-rubyRuby---
edge-event-micrositeNode.jsEvent microsite + AI concierge on Telnyx Edge Compute — one KV store powers the site, the SMS/WhatsApp concierge, lead qualification, in-browser voice AI, feedback transcription, and the sponsor report.
error-explainer-pythonPythonAI Error Explainer — paste a stack trace, get a root-cause hypothesis, confidence, severity, and a suggested fix via Telnyx AI Inference.
event-microsite-that-takes-callsPythonA Flask event microsite backed by Telnyx KV that lets attendees text, call, or talk in-browser to an AI concierge, broadcasts schedule changes, qualifies exhibitor leads, and transcribes post-event feedback into a sponsor report.
extract-structured-json-with-ai-pythonPythonExtract structured JSON from support tickets, emails, leads, or incident reports with Telnyx AI Inference.
fax-to-ai-document-processor-pythonPythonFax to AI Document Processor - receive fax, AI extracts data, forwards structured summary.
full-stack-ai-contact-center-pythonPythonFull-Stack AI Contact Center - complete contact center: IVR + queue + AI agent assist + recording + live analytics.
get-ai-assistant-pythonPython---
global-ip-failover-monitor-pythonPythonGlobal IP Failover Monitor - monitor Global IP endpoints across regions, auto-failover between healthy endpoints.
insurance-claims-intake-pythonPythonPolicyholder calls, AI collects incident details, accepts photos via MMS, creates claim, assigns adjuster, texts status updates. Adjuster reviews AI-prepared claim.
kv-backed-rate-limiterNode.js---
langchain-streaming-agentNode.jsLangChain tool-calling agent on Telnyx Edge Compute streaming every token, tool call, and result over WebSocket via the zero-credential Telnyx Inference binding.
langgraph-agent-on-edgeNode.js---
language-learning-flashcards-pythonPythonListen to a phrase, repeat it back, and get instant pronunciation feedback. TTS speaks, you repeat, STT transcribes, Inference scores — interactive language learning powered by all three Telnyx AI primitives.
list-ai-assistants-csharpC#---
list-ai-assistants-goGo---
list-ai-assistants-javaJava---
list-ai-assistants-nodejsNode.jsList all AI assistants in your Telnyx account using the Telnyx Node.js SDK and an Express endpoint.
list-ai-assistants-phpPHP---
list-ai-assistants-pythonPythonList all Telnyx AI Assistants in your account with filtering and pagination.
list-ai-assistants-rubyRuby---
maintenance-request-dispatch-pythonPythonTenant texts issue, AI categorizes and estimates cost, auto-dispatches vendor for routine work, manager approves orders over $500 via SMS reply.
missions-ai-task-runner-pythonPythonMissions AI Task Runner - AI-driven task execution within the Telnyx Missions framework. AI decides next steps based on task results.
moderation-classifier-pythonPythonAI Moderation Classifier — classify user-generated content as safe/spam/abuse/hate/harassment/self-harm using embeddings pre-filter + LLM judgment via Telnyx AI Inference.
multi-channel-ai-helpdesk-with-ticketing-pythonPythonMulti-Channel AI Helpdesk with Ticketing - voice + SMS + WhatsApp support with auto-ticket creation.
multi-character-narrator-pythonPythonPaste a dialogue script with speaker labels, assign each speaker a distinct Telnyx Ultra voice, render every line in parallel, and stitch the per-line audio into one continuous MP3.
multi-model-inference-switcherNode.jsSwitch between LLM models at runtime via a KV feature flag — no redeploy. Agent SDK + zero-credential inference + admin UI with live model switching.
multi-party-ai-training-call-pythonPythonAI plays customer roles for sales/support practice. Multiple trainees join, AI rotates scenarios and scores each trainee.
network-incident-agentTypescriptA durable incident actor that assesses severity, proactively sends SMS, answers calls with incident context, writes an RCA to CloudFS, and checks for recurrence.
omnichannel-ai-receptionist-pythonPythonOne AI brain that handles inbound calls, SMS, and WhatsApp with unified conversation context and intelligent routing via Telnyx AI Inference.
outbound-hold-agent-pythonPythonCall a business, navigate IVRs with a Telnyx AI Assistant, pause the assistant during hold, monitor with transcription, and resume with context when a representative answers.
patient-agentTypescriptA durable agent that tracks appointments, medication adherence, and proactively checks in via SMS — the actor IS the patient.
persistent-state-agentNode.js---
policy-renewal-campaign-pythonPythonAutomated multi-channel renewal reminders. 60 days: SMS. 30 days: AI voice call reviewing coverage changes. 7 days: urgent SMS. Agent reviews lapsed policies for win-back.
quiz-generator-pythonPythonAI Quiz Generator — turn any article or text into a multiple-choice quiz with answer key and explanations via Telnyx AI Inference.
restaurant-reservation-waitlist-pythonPythonAI answers calls, checks table availability, books or adds to waitlist, texts when table is ready. Host reviews large party requests.
run-llm-inference-nodejsNode.jsRun large language model inference through the Telnyx Inference API using an OpenAI-compatible chat completions interface from Node.js. Works as both an HTTP server and a CLI tool.
run-llm-inference-pythonPythonSend chat completion requests to the Telnyx Inference API using an OpenAI-compatible interface from Python.
semantic-search-pythonPythonSemantic Search — index support tickets via Telnyx embeddings API and find similar issues by meaning, not keywords. Includes a bundled sample ticket dataset.
shipment-agentPythonA durable AI shipment agent that proactively communicates with customers across carriers and status changes via SMS and Voice.
sms-two-factor-agentTypescriptAgent-managed SMS two-factor authentication with code generation, KV storage, and scheduled expiry.
sql-natural-language-pythonPythonAI SQL Natural Language — turn plain-English questions into validated SQL with schema context via Telnyx AI Inference. Includes a sample dataset for live execution.
storage-voicemail-archive-pythonPythonStorage Voicemail Archive - record voicemails to Telnyx Cloud Storage with search.
texml-voicemail-drop-pythonPythonLeave pre-recorded voicemails at scale via TeXML.
three-way-ai-interpreter-pythonPythonTwo humans speak different languages on the same call. AI translates in real-time and speaks the translation to each party.
update-ai-assistant-pythonPythonUpdate an existing Telnyx AI Assistant's configuration, model, system prompt, and tools via the API.
video-room-ai-meeting-moderator-pythonPythonVideo Room AI Meeting Moderator - create video rooms with AI-powered agenda tracking and time management.
video-room-ai-moderator-pythonPythonVideo Room AI Moderator - create video rooms with AI-powered content moderation on chat and participant management.
voice-ivr-with-agent-backendPythonA natural language IVR system where the Telnyx Agent handles backend logic and an LLM powers dynamic menu options.
voice-journal-daily-log-pythonPythonVoice Journal Daily Log - call a number, speak your daily journal entry, AI transcribes and organizes it with mood, topics, and gratitude extraction.
voicemail-smart-router-pythonPythonAI Voicemail Smart Router — transcribe voicemails, classify intent (urgent, billing, support, sales, spam, routine), and route to the right channel via Telnyx STT + AI Inference.
warm-transfer-ai-briefing-pythonPythonWhen an agent transfers a call, AI summarizes the conversation and briefs the next agent before connecting. No cold handoffs.
webhook-aggregator-fanoutPythonAggregate, deduplicate, and fan out Telnyx webhooks to multiple action queues (call and SMS) with SQLite event logging.
webhook-debugger-ai-assistant-pythonPythonWebhook Debugger AI Assistant - catch, inspect, and debug Telnyx webhooks with AI explanations.
webrtc-ai-interpreter-live-calls-pythonPythonWebRTC AI Interpreter for Live Calls - real-time translation between two callers speaking different languages.

SIP Trunking

(35 examples)

Connect your PBX or SBC to Telnyx SIP Trunking - trunk setup, inbound routing, failover, and codec configuration.

ExampleLanguageDescription
configure-sip-codecs-pythonPythonConfigure audio codecs for SIP trunks.
inbound-sip-routing-csharpC#---
inbound-sip-routing-goGo---
inbound-sip-routing-javaJava---
inbound-sip-routing-nodejsNode.jsCreate and manage Telnyx SIP connections for inbound call routing, and receive inbound call webhooks, using Node.js and Express.
inbound-sip-routing-phpPHP---
inbound-sip-routing-pythonPythonRoute inbound SIP calls to your endpoints.
inbound-sip-routing-rubyRuby---
setup-sip-trunk-csharpC#Create, list, and retrieve credential-authenticated SIP connections using the Telnyx.net SDK and minimal ASP.NET.
setup-sip-trunk-goGoCreate, list, and retrieve Telnyx SIP trunk connections via a Go and Gin REST API.
setup-sip-trunk-javaJavaCreate, list, and retrieve credential-authenticated Telnyx SIP connections with the Telnyx Java SDK and the JDK's built-in HTTP server.
setup-sip-trunk-nodejsNode.jsCreate, retrieve, and list credential-authenticated SIP connections using the Telnyx SIP Trunking API.
setup-sip-trunk-phpPHPCreate, list, and retrieve a Telnyx credential (SIP) connection using the Telnyx PHP SDK over a vanilla PHP front controller.
setup-sip-trunk-pythonPythonProvision and configure a SIP trunk connection on Telnyx with codec preferences, authentication, and failover.
setup-sip-trunk-rubyRubyCreate, list, and retrieve credential-authenticated SIP connections using the Telnyx SIP Trunking API with Ruby and Sinatra.
sip-cnam-lookup-csharpC#---
sip-cnam-lookup-goGo---
sip-cnam-lookup-javaJava---
sip-cnam-lookup-nodejsNode.js---
sip-cnam-lookup-phpPHP---
sip-cnam-lookup-pythonPython---
sip-cnam-lookup-rubyRuby---
sip-failover-routing-goGo---
sip-failover-routing-nodejsNode.js---
sip-failover-routing-pythonPythonConfigure failover routing for SIP connections.
sip-failover-routing-rubyRuby---
sip-load-balancer-health-check-pythonPythonSIP Load Balancer Health Check - monitor SIP trunk health across multiple endpoints, auto-failover to healthy trunks, track uptime metrics.
sip-registration-csharpC#---
sip-registration-goGo---
sip-registration-javaJava---
sip-registration-nodejsNode.js---
sip-registration-phpPHP---
sip-registration-pythonPython---
sip-registration-rubyRuby---
sip-trunking-failover-monitor-pythonPythonSIP Trunking Failover Monitor - health-check SIP connections, auto-failover, SMS alerts.

IoT & SIM Management

(34 examples)

Activate SIM cards, monitor data usage, provision eSIMs, and track device locations with the Telnyx IoT platform.

ExampleLanguageDescription
activate-sim-card-csharpC#Enable (activate) a SIM card on the Telnyx network using C# and ASP.NET.
activate-sim-card-goGoActivate a Telnyx IoT SIM card over HTTP using the Telnyx Go SDK and Gin.
activate-sim-card-javaJavaActivate a Telnyx IoT SIM card over HTTP using the Telnyx Java SDK and the JDK HttpServer.
activate-sim-card-nodejsNode.jsRetrieve and activate a Telnyx IoT SIM card by ID using the Telnyx Node.js SDK over an Express API.
activate-sim-card-phpPHPEnable (activate) a Telnyx IoT SIM card by ID using the Telnyx PHP SDK over a vanilla PHP front controller.
activate-sim-card-pythonPythonActivate a SIM card on the Telnyx network.
activate-sim-card-rubyRubyActivate a Telnyx IoT SIM card using Ruby and Sinatra.
iot-fleet-alert-escalation-pythonPythonIoT Fleet Alert Escalation - severity-based routing from IoT sensors to SMS, calls, and multi-party conferences.
iot-mqtt-messaging-pythonPython---
iot-panic-button-voice-alert-pythonPythonIoT Panic Button Voice Alert - IoT device triggers SIM-based alert, system calls emergency contacts with location and status.
iot-smart-building-voice-control-pythonPythonIoT Smart Building Voice Control - call a number to control building systems via AI + IoT SIMs.
monitor-iot-data-usage-csharpC#---
monitor-iot-data-usage-goGo---
monitor-iot-data-usage-javaJava---
monitor-iot-data-usage-nodejsNode.jsMonitor Telnyx IoT SIM card data usage with an Express server that polls usage on an interval and exposes REST endpoints for per-SIM consumption and threshold alerts.
monitor-iot-data-usage-phpPHP---
monitor-iot-data-usage-pythonPythonProduction-ready Flask application for monitoring SIM card data usage via Telnyx IoT API.
monitor-iot-data-usage-rubyRuby---
provision-esim-goGo---
provision-esim-javaJava---
provision-esim-nodejsNode.js---
provision-esim-phpPHP---
provision-esim-pythonPythonProvision eSIM profiles over the air.
provision-esim-rubyRuby---
sim-fleet-data-usage-anomaly-detector-pythonPythonSIM Fleet Data Usage Anomaly Detector - monitor IoT SIM usage, AI detects anomalies, SMS alerts.
track-iot-device-location-csharpC#---
track-iot-device-location-goGo---
track-iot-device-location-javaJava---
track-iot-device-location-nodejsNode.js---
track-iot-device-location-phpPHP---
track-iot-device-location-pythonPythonProduction-ready Flask application for device location tracking via Telnyx IoT API.
track-iot-device-location-rubyRuby---
voice-activated-iot-command-pythonPythonVoice-Activated IoT Command - call a number, speak commands to control IoT devices. AI interprets natural language into device actions dispatched via SIM API.
wireless-fleet-activation-portal-pythonPythonBulk activate SIMs with status tracking.

What Is Telnyx?

Telnyx is an AI Communications Infrastructure platform that provides a single, integrated API for:

  • Voice AI - Programmable voice with Call Control, IVR, recording, conferencing, and WebRTC.
  • SMS & MMS - Send and receive messages globally with delivery receipts and webhook events.
  • SIP Trunking - Connect your existing PBX with elastic SIP trunks, failover routing, and codec control.
  • AI Assistants - Deploy LLM-powered voice and messaging agents with built-in telephony.
  • IoT & SIM - Global IoT connectivity with SIM management, eSIM provisioning, and data monitoring.

Unlike stitching together multiple vendors into a Frankenstack, Telnyx gives you one platform, one API key, and one bill. Calls and messages traverse the Telnyx-owned private IP network for lower latency and higher reliability.

How to Get a Telnyx API Key

  1. Sign up at portal.telnyx.com.
  2. Navigate to API Keys in the left sidebar.
  3. Click Create API Key and copy the key.
  4. Add it to your .env file as TELNYX_API_KEY=your_key_here.

Telnyx offers free trial credit for testing.

FAQ

Q: What programming languages are supported?

These examples cover Python, Node.js, Go, and Ruby. Telnyx also provides official SDKs for Java, PHP, and C#.

Q: Are these examples production-ready?

Yes. Every example includes error handling, environment-based configuration, and Telnyx webhook signature verification. Review security and scaling considerations before deploying to production.

Q: How is Telnyx different from Twilio?

Telnyx is an AI Communications Infrastructure platform with a private global network. It offers integrated voice, messaging, AI, SIP, and IoT under one API - no need to stitch together multiple vendors. Telnyx also offers significantly lower pricing with no per-seat fees or contracts. See a detailed Telnyx vs Twilio comparison.

Q: Do I need multiple vendors for voice, SMS, and AI?

No. Telnyx provides voice, SMS/MMS, SIP trunking, AI assistants, and IoT SIM management through a single platform and API key.

Q: Can I use these examples with my existing PBX?

Yes. The SIP trunking examples show how to connect Telnyx to Asterisk, FreeSWITCH, 3CX, and other PBX systems.

Q: Is there a free tier?

Telnyx provides trial credit when you sign up. After that, pricing is pay-as-you-go with no minimums or contracts.

Q: How do I get help?

Check the Troubleshooting section in each example, visit developers.telnyx.com, or reach out to support@telnyx.com.

Contributing

See CONTRIBUTING.md for guidelines on adding new examples.

License

MIT

Contributors

sonamg-droid

161 commits

anusha-telnyx

105 commits

harpreetTelnyx

80 commits

somemothersson

42 commits

Languages

Python

44.3%

TypeScript

26.3%

C#

5.6%

Java

5.6%

JavaScript

4.9%

Go

4.3%

PHP

4.1%

Ruby

3.5%

HTML

1.2%