First method (node-fetch) code used. --start of code----- const fetch = require('node-fetch'); // Function to generate a unique userID function generateUserID() { return 'user-' + Math.random().toString(36).substr(2, 9); } // Replace 'Your-Voiceflow-API-Key' with your actual Voiceflow API key const voiceflowAPIKey = 'xxxx'; // Replace 'Your-Voiceflow-Version-ID' with your actual Voiceflow version ID const versionID = '664306cd78c7ebbd97a364xx'; \\ I already tried with const versionID = 'production' // Function to start the survey async function startSurvey() { const userID = generateUserID(); const voiceflowAPIEndpoint = `https://general-runtime.voiceflow.com/state/user/${userID}/interact`; const body = { "request": { "type": "text", "payload": "Welcome to My AI Beauty Advisor's Survey!" }, "versionID": versionID }; const options = { method: 'POST', headers: { 'Authorization': `Bearer ${voiceflowAPIKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify(body) }; try { const response = await fetch(voiceflowAPIEndpoint, options); const data = await response.json(); if (response.ok) { return JSON.stringify(data); // If the call was successful } else { console.error('Voiceflow API Error:', data); // Log detailed error return JSON.stringify({ error: data, userID: userID }); } } catch (error) { console.error('Error connecting to Voiceflow:', error); return JSON.stringify({ error: 'Failed to connect to Voiceflow.', userID: userID }); } } startSurvey().then(console.log).catch(console.error); ---end of code----