When a prospect submits a lead or contact form on Tally (tally.so), how do we route the webhook to AutoSend to send an instant customized confirmation email?
Automating Instant Tally Form Auto-Responders
Tally allows sending webhook payloads on form submission. You can catch the payload in a serverless endpoint and trigger an immediate branded email via AutoSend.
Implementation (Next.js / Node.js Endpoint):
// app/api/webhooks/tally/route.ts
export async function POST(req: Request) {
const body = await req.json();
// Tally webhook payload format
const fields = body.data?.fields || [];
const getFieldValue = (label: string) =>
fields.find((f: any) => f.label?.toLowerCase().includes(label.toLowerCase()))?.value;
const userEmail = getFieldValue('email');
const userName = getFieldValue('name') || 'Friend';
const companyName = getFieldValue('company') || 'your company';
if (userEmail) {
await fetch('https://api.autosend.com/v1/mails/send', {
method: 'POST',
headers: {
'Authorization': `Bearer ${process.env.AUTOSEND_API_KEY}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: { email: 'hello@yourdomain.com', name: 'Founding Team' },
to: { email: userEmail, name: userName },
subject: `Thanks for reaching out, ${userName}!`,
html: `
<h3>We received your message!</h3>
<p>Hi ${userName}, thanks for telling us about ${companyName}. Our engineering team is reviewing your requirements and will reply within 24 hours.</p>
`
})
});
}
return new Response(JSON.stringify({ received: true }), { status: 200 });
}
Alternative: AutoSend also natively integrates with Tally through direct webhook triggers in the AutoSend Automations dashboard.