BLUENEXUS INTEGRATIONSHOW-TO

Why your Twilio texts fail: 30007, 30034 and undelivered, explained

A customer says they never got the reminder. You check Twilio, and the message says undelivered with a five-digit code. Twilio has a page for every code, but each one covers one error, and most small businesses see four or five at once, for different reasons, needing different people to fix them.

An AI connected to Twilio can read the week's message logs, group the failures by cause, and say who should fix each. Carriers don't always say why they filtered a text, so an AI can't tell you for certain. It can give you the evidence to ask.

Here are the four reasons a text doesn't arrive, what Twilio already does, three prompts, and how a small vet clinic checks every Monday.

Four reasons a text doesn't arrive

Four reasons a text doesn't arrive

The number isn't registered30034: a US 10-digit number not on an approved A2P 10DLC campaign. 30032: a toll-free number that isn't verified.
It was filtered30007: Twilio or the carrier blocked it as likely spam. Wording, links and volume all play a part.
They opted out21610: the person replied STOP. Twilio blocks texts to them until they reply START.
The number is wrong or unreachable21211: not a valid number. 30003: the phone couldn't be reached.

Start with Twilio's own tools

Every message in Twilio's console shows its status and, if it failed, an error code with a page explaining it, like 30007 or 30034. Messaging Insights shows delivery, error and opt-out rates over time. Twilio handles STOP and similar keywords for you on long codes, and its opt-in Compliance Toolkit can hold non-urgent texts during quiet hours. For filtered messages, Twilio asks for at least three message SIDs when you contact support.

What's left is the sort: which failures share a cause, and who on the team fixes each.

Do it in Claude or ChatGPT

You'll need a connection that can read your Twilio message logs. These prompts won't work with Twilio's official Claude connector, which only looks up its docs; see our guide to Twilio in Claude, ChatGPT and MCP. All three prompts only read. Some errors, like an invalid number (21211), can be rejected when you send and never reach the logs.

What failed, and why.

1Paste this into Claude or ChatGPT

Using Twilio, list messages from the last 7 days with the status failed or undelivered. Group them by error code and by the number they were sent from, with a count and one example message SID for each group. Don't send or change anything.

Copy prompt

What's different about the filtered ones.

1Paste this into Claude or ChatGPT

For messages that failed with 30007, compare their wording with similar messages that were delivered. List the differences, like links, link shorteners, capital letters or missing business name. Treat these as hypotheses, not the cause. Don't send or change anything.

Copy prompt

A support ticket.

1Paste this into Claude or ChatGPT

Draft a Twilio support ticket for the 30007 failures: what we send and why, when it started, and at least three message SIDs. Keep it short and factual. Don't send anything.

Copy prompt

A few things to know:

  • Registration first. If one number fails with 30034, every text from it will. Fix that before anything else.
  • Filtering has no single answer. Link shorteners, missing business names and sudden volume are common suspects. Test one change at a time.
  • Respect opt-outs everywhere. When Twilio says someone opted out, update your reminder list too, so your software stops trying.
  • Don't resend blindly. A reminder for a visit that's already passed confuses people. Check before you resend.

When the front desk, the owner and the admin share it

On your own, run the prompts when a customer complains. In a small business, the front desk hears the complaint, an admin or developer runs Twilio, and the owner pays for every text that fails.

Juniper Vet, an animal hospital with two locations in Boise, checks in BlueNexus. Twilio is connected. Every Monday at 08:00, the front desk agent groups last week's failed texts by cause, and prepares the fixes for Sam, who runs Twilio for the clinic.

Illustration of the BlueNexus app with example data.

Illustration of the BlueNexus app with example data.

Three causes need someone. The agent prepares them for Sam.

Sam adds the Eastside number to the Messaging Service with the approved campaign before lunch. The vaccine reminders go out without the short link and get through. Ellery, the practice owner, decides to resend only the reminders for visits still to come, and Jordan approves each one in Needs you.

Illustration of the BlueNexus app with example data.

For connecting Twilio, see Twilio in Claude, ChatGPT and MCP. For answering customers, see a shared inbox for Twilio texts. To check texts with your team, sign up for BlueNexus.

Questions people ask about Twilio and AI

What's the difference between failed and undelivered in Twilio?

Failed means Twilio couldn't send it, for reasons like an account suspension, a full queue or a media error. Undelivered means Twilio sent it, but the carrier reported it wasn't delivered, for example because it was filtered or the phone was unreachable. Both show an error code.

What does Twilio error 30007 mean?

Message filtered: Twilio or the carrier blocked it as likely spam. Twilio suggests collecting at least three affected message SIDs and contacting support. Carriers don't always say why they filtered a message.

What does Twilio error 30034 mean?

The message came from a US 10-digit number that isn't on an approved A2P 10DLC campaign. Register a campaign, or add the number to the Messaging Service that has one.

Why does Twilio say a customer unsubscribed?

Error 21610 means the person replied STOP or a similar keyword. Twilio blocks texts to them until they reply START. Update your own records so you stop trying.

Do I pay for texts that fail?

Texts that end as failed carry a small processing fee, once per text, with some exemptions. Undelivered texts are billed like delivered ones, per segment plus carrier fees, because Twilio attempted delivery. Check Twilio's pricing page for current rates.

Can AI fix my failed Twilio messages?

It can group failures by code, compare filtered and delivered messages, and draft the support ticket. Registering numbers, changing settings and resending stay with a person.

Subscribe to our blog

Product insights, AI and product thinking delivered to your inbox.