Jan 15, 2026

Bolt x Twilio: Send SMS with Twilio from Bolt

With Bolt x Twilio, you can send transactional texts to your users straight from your Bolt app.

Educational

Text reads "Bolt x Twilio."
Text reads "Bolt x Twilio."

Want your app to text users automatically when something happens, like a booking confirmation, reminder, or alert? 

With Pica x Bolt, you can connect Bolt to Twilio in minutes to send transactional texts right to your users from your app or site. 

In this tutorial, we’ll build a meeting room booking app that sends SMS confirmation texts when a booking is successfully made. 

What you’ll build


  • A meeting room booking UI in Bolt

  • Time-slot selection and booking form

  • Phone number collection

  • Automatic SMS confirmation via Twilio



    Want an in-depth look at Bolt x Twilio? Watch the walkthrough.





Step 1. Build the booking UI in Bolt 


Let’s start by creating the interface.

Prompt Bolt:

Build me the UI for a meeting room booking app.
Show a list of available meeting rooms.
When clicking a room, show available time slots for that day.
When a time slot is selected, open a modal asking for name and phone number.
Build only the UI.



Tip
: Use Enhance Prompt + Plan Mode if you want Bolt to think through layout and edge cases before building.

At this point, nothing sends messages yet. We’re just collecting inputs.

Step 2. Set up Twilio (one-time)


Before connecting Twilio to Bolt, you need a messaging service.

Create a Twilio account


  • Go to twilio.com

  • Verify your phone number

  • Buy or assign a Twilio phone number (trial works)

Create a Messaging Service


In the Twilio Console:

  1. Go to Messaging → Services

  2. Click Create Messaging Service

  3. Name it (e.g. “Room Bookings”)

  4. Add your Twilio phone number to the Sender Pool

Save these values:

  • Twilio Account SID

  • Messaging Service SID (starts with MG)

Step 3. Connect Twilio to Pica



Now, we’ll connect Twilio so Bolt can use it safely.

  1. Go to app.picaos.com/connections

  2. Click + Add Connection

  3. Select Twilio

  4. Enter:

    • Account SID

    • Auth Token

  5. Save the connection

Copy the Pica Twilio connection key. You’ll need it in a minute. 

Step 4. Generate the Twilio prompt with BuildKit


Next, we’ll need the integration prompt. This is where Pica’s prompt generator, BuildKit, comes in. It’ll generate the backend logic for sending SMS.

  1. Go to app.picaos.com/buildkit

  2. Enter:

Send a message via Twilio using a messaging service with the SID {{YOUR_MESSAGING_SERVICE_SID}}

  1. BuildKit outputs a long, Bolt-ready prompt

  2. Copy it

You’ll get:

  • Auth wiring

  • SMS send logic

  • Error handling

  • Env variable expectations

Step 5. Wire SMS sending into Bolt


Back in Bolt, connect the UI to Twilio.

Prompt Bolt:

When a user submits the booking form, send them an SMS confirming the booking using Twilio.
Include the room name, date, and time in the message.
Use the following integration logic:
[PASTE BUILDKIT PROMPT]


Bolt will:

  • Create an edge function

  • Connect it to the form submission

  • Prepare secrets automatically

Step 6. Add required secrets in Bolt


Open Bolt → Settings → Secrets and add:

  • PICA_SECRET_KEY
    (from app.picaos.com/settings/api-keys)

  • PICA_TWILIO_CONNECTION_KEY
    (from Pica connections)

  • TWILIO_ACCOUNT_SID
    (from Twilio dashboard)

  • TWILIO_MESSAGING_SERVICE_SID
    (starts with MG)

Now, just save and restart.

Step 7. Test it live


The final step is to make sure it works. 

Try it yourself by making a booking in your app:

  1. Select a room

  2. Choose a time slot

  3. Enter name + phone number (E.164 format: +1234567890)

  4. Submit

 You should receive an SMS confirmation instantly.

Troubleshooting (common issues)


Hit a snag? It’s probably one of the below issues. They’re quick fixes. 

SMS not sending


  • Double-check all 4 secrets

  • Confirm Twilio connection is active in Pica

  • Verify Messaging Service has a sender number

  • Ensure Twilio account has balance

SMS sent but not received


  • Check phone number format

  • Look at Twilio message logs

  • Some carriers may filter trial messages


You’re all set with Bolt x Twilio

SMS is just the tip of the iceberg. You can also use Bolt x Twilio for appointment reminders, booking cancellations, admin alerts for new bookings, 2FA, voice calls, and more. 

Ready to communicate with users right from your app or site? Get building

More articles that will interest you