nice-twilight-90450
01/11/2024, 12:15 PMBearer ${apiKey}
,
'Content-Type': 'application/json'
};
const data = {
"messages": [
{
"content": user.Conversation_Question,
"role": "user"
}
],
"chatbotId": chatbot_id,
"conversationid": "test-123456"
};
try {
const response = await axios.post(endpoint, data, { headers });
// If you need to extract the response JSON, you can use:
// const responseData = response.data;
// workflow.Chatbase_response = responseData['text'];
} catch (error) {
throw new Error(stack-error: ${error}
);
}
Does anyone know how I can solve this error?crooked-petabyte-82330
01/11/2024, 12:47 PMnice-twilight-90450
01/11/2024, 12:57 PMnice-twilight-90450
01/11/2024, 1:07 PMnice-twilight-90450
01/11/2024, 1:08 PMcrooked-petabyte-82330
01/11/2024, 1:55 PMnice-twilight-90450
01/11/2024, 2:22 PMcrooked-petabyte-82330
01/11/2024, 8:05 PM