const contactPattern = /@|\\d{10,}/;
if (contactPattern.test(text)) {
const WEB_APP_URL = ‘https://script.google.com/macros/s/AKfycbwdaDC3X0h1xNVzw_1a11jy_uWPMhf0vqVbakSJTTNwQXMzKDwXWHEcQvQH1OtGSu/exec’;
fetch(WEB_APP_URL, {
method: ‘POST’,
headers: { ‘Content-Type’: ‘application/json’ },
body: JSON.stringify({
contact: text,
message: ‘Visitor provided contact details via chatbot’
})
}).catch(err => console.error(‘Failed to log contact details:’, err));
}

x  Powerful Protection for WordPress, from Shield Security
This Site Is Protected By
Shield Security