Configure notifications for when users request human assistance (handoff) via WhatsApp or Instagram. Use the global AI toggle below to enable or disable automated replies on both channels at once (each channel also has its own switch).
@if (session('success'))
{{ session('success') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $e)
{{ $e }}
@endforeach
@endif
@php
// Show the real DB column when the row exists so an empty/failed save is not masked by DEFAULT_HANDOFF_PHONE.
$handoffPhoneValue = old('handoff_notification_phone');
if ($handoffPhoneValue === null) {
$handoffPhoneValue = $setting->exists
? trim((string) ($setting->handoff_notification_phone ?? ''))
: $setting->getHandoffNotificationPhone();
}
$handoffPhone2Value = old('handoff_notification_phone_2');
if ($handoffPhone2Value === null) {
$handoffPhone2Value = $setting->exists
? trim((string) ($setting->handoff_notification_phone_2 ?? ''))
: '';
}
$handoffPhone3Value = old('handoff_notification_phone_3');
if ($handoffPhone3Value === null) {
$handoffPhone3Value = $setting->exists
? trim((string) ($setting->handoff_notification_phone_3 ?? ''))
: '';
}
$handoffPhone4Value = old('handoff_notification_phone_4');
if ($handoffPhone4Value === null) {
$handoffPhone4Value = $setting->exists
? trim((string) ($setting->handoff_notification_phone_4 ?? ''))
: '';
}
@endphp
Handoff notifications
When a user requests to speak with a human, an SMS is sent to the number below to notify staff.
For testing: sets all handoff conversations to active, clears handoff timestamps/suppress, and resets intro session timer (24h) so the next bot reply starts a fresh session intro. Ignores timeout.