WordPress contact forms
Add WhatsApp alerts to your WordPress contact form
Turn every form submission into a clean WhatsApp or Telegram alert so your team can answer leads while the intent is still warm.
- Endpoint
- /api/send/contact
- API scope
- contact_alerts
send via .chat
Website lead
Thanks Giulia, I can help. I will send the details now.
01
Receive leads in the chat app your team already watches.
02
Start with a webhook plugin so there is little or no code.
03
If your form plugin cannot do it, use the small plugin example below.
Why WordPress forms deserve a faster path
Most WordPress contact forms send an email. The problem is simple: someone has to notice the email, open the inbox, and reply before the visitor loses interest. sendvia.chat moves that first alert into WhatsApp or Telegram, where your team is already looking.
Your visitor does not see anything new. They submit the same form. Behind the scenes, WordPress sends the name, phone, email, subject, and message to sendvia.chat, and your team receives a clean chat alert.
1. Easiest setup: use a WordPress webhook plugin
If your contact form already supports outgoing webhooks, use that first. You are looking for a plugin setting called Webhook, Outgoing webhook, Send to API, or POST request.
For Contact Form 7, plugins such as WODS Webhook for Contact Form 7 or RT Webhook for Contact Form 7 can send form submissions to an external URL with custom headers. If you use Gravity Forms, look for a webhook add-on such as RT Webhook for Gravity Forms.
The words differ from plugin to plugin, but the setup is always the same: install the webhook plugin, choose your form, paste the sendvia.chat URL, add the API key in the header, then map the form fields.
| In WordPress | What to choose | Value |
|---|---|---|
| Plugins | Add New, then search for a webhook plugin | Install and activate it |
| Webhook URL | Paste the destination URL |
https://sendvia.chat/api/send/contact
|
| Method | Choose POST |
POST
|
| Content type | Choose JSON |
application/json
|
| Authorization header | Add your sendvia.chat API key |
Bearer sendvia_your_api_key_here
|
2. Map the form fields
Open the webhook plugin settings for your form. In the body, payload, or field mapping area, add these field names on the left. On the right, choose the matching WordPress form field.
| sendvia.chat field | Choose from your form | Required? |
|---|---|---|
name
|
Name field | Recommended |
email
|
Email field | Recommended |
phone
|
Phone or WhatsApp number field | Recommended |
subject
|
Subject field, page title, or fixed text | Optional |
message
|
Message or enquiry field | Yes |
Then submit a test contact request from your website. If the WhatsApp or Telegram alert arrives, save the webhook settings and keep the normal email notification enabled as a backup.
3. If your form cannot send a POST request
Some WordPress sites use a form plugin that has no webhook feature, or a client does not want to install another plugin. In that case, use a small site-specific plugin.
We can package this for you. Send us the name of your form plugin and the fields you want in the alert, and we will give you a ready plugin file to install from Plugins → Add New → Upload Plugin.
Developer fallback: tiny custom plugin
If a developer manages your site, they can add a tiny plugin that sends the alert after a form is submitted. Keep the API key in wp-config.php, not in browser JavaScript.
sendvia-contact-alerts.php
<?php
/*
Plugin Name: sendvia.chat Contact Alerts
Description: Sends WordPress contact form submissions to sendvia.chat.
*/
add_action('wpforms_process_complete', function ($fields) {
if (!defined('SENDVIA_API_KEY')) {
return;
}
$payload = [
'name' => sanitize_text_field($fields[1]['value'] ?? ''),
'email' => sanitize_email($fields[2]['value'] ?? ''),
'phone' => sanitize_text_field($fields[3]['value'] ?? ''),
'subject' => 'Website contact form',
'message' => sanitize_textarea_field($fields[4]['value'] ?? ''),
];
wp_remote_post('https://sendvia.chat/api/send/contact', [
'headers' => [
'Authorization' => 'Bearer ' . SENDVIA_API_KEY,
'Content-Type' => 'application/json',
],
'body' => wp_json_encode($payload),
'timeout' => 10,
]);
});
The commercial win is speed: fewer missed opportunities, fewer buried emails, and a response workflow that feels human from the first minute.
FAQ
WordPress contact form alert questions
Can Contact Form 7 send directly to WhatsApp?
Yes. Use a webhook plugin or a small custom hook to POST the form fields to sendvia.chat, then deliver the alert to your connected WhatsApp or Telegram account.
Should every form submission use SMS fallback?
No. Contact alerts stay in chat channels and failed deliveries can be reviewed from the Undelivered queue. SMS fallback is reserved for authentication flows.