- Send and receive SMS and MMS messages
- Make and manage voice calls
- Support WhatsApp messaging flows
- Validate and look up phone numbers
Common use cases and example apps
| Example app | Example prompt | Description |
|---|---|---|
| SMS notifications and alerts | Build an order tracking app that sends customers a text when their order ships, with a tracking link. | Send real-time SMS updates triggered by events in your app. The app detects a status change, generates the message, and sends it to the customer automatically. |
| Phone verification flows | Build a signup flow that sends users a one-time code by SMS to verify their phone number before creating an account. | Add phone-based verification to onboarding or login flows. The app sends a one-time code, checks the user’s input, and confirms the number before continuing. |
| Appointment reminders | Build a booking app that texts customers 24 hours before their appointment and again if the time changes. | Send automated reminder messages based on scheduled events in your app. The app uses booking data to trigger texts at the right time without manual follow-up. |
| Voice call updates | Build a service app that calls customers with a recorded message when their technician is on the way. | Trigger outbound voice calls from your app when an important update needs immediate attention. The app places the call and delivers a spoken message to the user. |
| WhatsApp support inbox | Build a customer support app where users can message the business on WhatsApp and agents can reply from the app. | Add WhatsApp as a communication channel in your product. The app sends and receives messages through Twilio so conversations can be handled inside your workflow. |
| Phone number validation | Build a lead capture form that checks whether a phone number is valid before saving it to the database. | Validate and format phone numbers before storing or using them. The app checks the number through Twilio so your workflows start with cleaner contact data. |
How to connect Twilio
Workspace admins and owners can connect Twilio. You can create multiple Twilio connections using different API keys, for example, to separate development and production environments or to manage different Twilio accounts. When a connection is created, Twilio becomes available across all projects in the workspace.Prerequisites
Before connecting Twilio, make sure you have:- A Twilio account
- A Twilio phone number if your use case requires sending SMS, MMS, or making calls
- A Standard Twilio API key
- Lovable workspace owner or admin role
All SMS, MMS, voice, WhatsApp, and other Twilio usage through this connector is billed directly by Twilio based on your Twilio account and plan. Billing is handled by Twilio, not Lovable.
Step 1: Create a Twilio API key
Twilio uses an API Key SID and Secret instead of a single token. This is more secure than using your main Auth Token because API keys can be revoked independently. To create a Twilio Standard API Key:- Go to the Twilio Console and sign in.
- Navigate to Account → API keys & tokens.
- Click Create API key.
- Enter a Friendly name, for example
Lovable integration. - Choose the Region for the key:
- United States (US1): default for most accounts
- Ireland (IE1)
- Australia (AU1)
- Leave Key type set to Standard.
- Click Create API key.
- Copy both the API Key SID (starts with
SK) and the Secret. The Secret is shown only once, so store it securely before leaving the page.
Your API Key Secret works like a password. Keep it secure and never share it publicly. You’ll need it in the next step.
AC), which is available in the Twilio Console. Twilio API credentials are region-specific, so the region you select when creating the key should match the region you use when setting up the Lovable connection.
See Twilio documentation for detailed instructions: Create API keys in Twilio console
Step 2: Connect Twilio to Lovable
- Go to Settings → Connectors → Shared connectors and select Twilio.
- Click Add connection.
- In Display name, enter a name for the connection, for example
Twilio Prod. - In Region, select the same Twilio region used for the API key:
- United States (US1)
- Ireland (IE1)
- Australia (AU1)
- In Account SID, enter your Twilio Account SID (starts with
AC). - In Standard API Key SID, enter the API Key SID you created (starts with
SK). - In API Key Secret, enter the Secret shown when you created the key.
- Click Create.
How to unlink projects from a connection
Editors and above can remove specific projects from a connection without deleting the connection entirely. The connection will remain available for other projects. To unlink projects:
When unlinked, those projects will no longer have access to through this connection. If a project needs again, you can link it to any available connection.