Build voice applications using TeXML markup language (TwiML-compatible). Manage applications, calls, conferences, recordings, queues, and streams. This skill provides Ruby SDK examples.
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/22/2026
What it changes
Passed 25 of 25 test cases with the skill, and 3 of 25 without it.
Without skill12%
With skill100%
Checks it passed that the model alone missed
Rescues Telnyx::Errors::RateLimitError
Rescues Telnyx::Errors::APIConnectionError
Passes params hash containing Url parameter
and 28 more in the full report
22 fixed3 passed either way0 still failing0 broke
Pass-rate lift
+88 pp
Tokens
+491%
Agent turns
0%
Response time
-59%
Model gemini-3.6-flashMeasured 8/22/2026v225 of 25 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 22 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 22
Prompt
I am writing a Ruby script using the Telnyx SDK to send a standard SMS text message from '+13125550002' to '+13125550001' with content 'Hello'. Show the code snippet using the client object.
What was checked, without and with the skill
Checked
Without skill
With skill
Calls client.messages.send_ to execute message delivery
Missed
Passed
case-23 · gemini-3.6-flash · 8/22/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md647 linessingle file
Telnyx Texml - Ruby
Installation
gem install telnyx
Setup
require "telnyx"
client = Telnyx::Client.new(
api_key: ENV["TELNYX_API_KEY"], # This is the default and can be omitted
)
All examples below assume client is already initialized as shown above.
Error Handling
All API calls can fail with network errors, rate limits (429), validation errors (422),
or authentication errors (401). Always handle errors in production code:
begin
result = client.messages.send_(to: "+13125550001", from: "+13125550002", text: "Hello")
rescue Telnyx::Errors::APIConnectionError
puts "Network error — check connectivity and retry"
rescue Telnyx::Errors::RateLimitError
# 429: rate limited — wait and retry with exponential backoff
sleep(1) # Check Retry-After header for actual delay
rescue Telnyx::Errors::APIStatusError => e
puts "API error #{e.status}: #{e.message}"
if e.status == 422
puts "Validation error — check required fields and formats"
end