Integration Guide
Add ResponseBud to your website in minutes
Quick Integration
The easiest way to integrate ResponseBud is using our embed code. This works with any contact form on your website.
Embed Code
<script>
(function() {
const form = document.getElementById('your-contact-form');
form.addEventListener('submit', async function(e) {
e.preventDefault();
const formData = new FormData(form);
const response = await fetch('https://responsebud.com/api/lead', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
name: formData.get('name'),
phone: formData.get('phone'),
message: formData.get('message'),
organizationId: 'YOUR_ORG_ID'
})
});
if (response.ok) {
// Handle success
form.reset();
alert('Thank you! We'll respond shortly.');
}
});
})();
</script>Find Your Organization ID
You can find your Organization ID in your dashboard under Settings. This is required for the integration to work.
Step-by-Step Instructions
1. Get Your Organization ID
- Log into your ResponseBud dashboard
- Navigate to Settings
- Copy your Organization ID (found at the top of the settings page)
2. Add the Script to Your Website
- Open your website's HTML editor or content management system
- Find your contact form (usually in a contact page or footer)
- Add the embed code above, replacing
YOUR_ORG_IDwith your actual Organization ID - Update the form field names to match your form (name, phone, message)
3. Test the Integration
- Submit a test form on your website
- Check your ResponseBud dashboard to see if the lead appears
- Verify that an SMS was sent to the phone number provided
API Integration
For more advanced integrations, you can use our REST API directly:
Endpoint
POST https://responsebud.com/api/leadRequest Body
{
"name": "John Doe",
"phone": "+1234567890",
"message": "I'm interested in your services",
"organizationId": "YOUR_ORG_ID"
}Response
{
"success": true,
"leadId": "123",
"message": "Lead created and SMS sent"
}