Share feedback, ideas and get community help

Home
Members
NerQuiLes
N
NerQuiLes
Offline, last seen last month
Joined September 13, 2024
I am facing a challenge integrating Typebot with Dify for file handling. Currently, Typebot is configured to send URLs from an S3 storage system I've set up. However, Dify is unable to read these URLs, even though they are public and I have the CORS policy open to any domain.

I would like to know if there is any recommended configuration or method within Typebot to address this issue. Is there a way to configure Typebot or the file exchange so that Dify can access these resources without any problems? Any guidance or recommendation would be greatly appreciated.

Thank you in advance for your assistance.
10 comments
B
N
F
I can't make a fluent conversation. I think I'm missing that variable. Any ideas? Thanks
7 comments
N
B
R
🔧 Problem Description
Hello! I'm having an issue where my TypeBot does not correctly receive responses from a webhook set up in Make. Below are the details:

🎯 Objective
I'm aiming for my TypeBot to receive responses from a Make webhook after sending data through a POST request, and I need these data to be accurately displayed in the TypeBot chat.

👨‍💻 Code Used
Plain Text
const webhookUrl = 'https://hook.eu1.make.com/***********';
try {
  const response = await fetch(webhookUrl, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ nombre_usuario, consulta_cliente })
  });

  if (response.ok) {
    const data = await response.json();
    console.log('Complete response from webhook:', data);
    if (data.response) {
      console.log('Webhook message:', data.response.datos.mensaje);
      await Typebot.setVariable('respuesta_webhook', data.response.datos.mensaje);
      return data.response.datos.mensaje;
    } else {
      console.error('Response format unexpected or incomplete:', data);
      await Typebot.setVariable('respuesta_webhook', 'Sorry, there seems to be a problem with the response format.');
      return null;
    }
  } else {
    console.error('Problem with the request. Status:', response.status);
    await Typebot.setVariable('respuesta_webhook', 'Sorry, there was a problem with sending the query.');
    return null;
  }
} catch (error) {
  console.error('Error contacting the API:', error);
  await Typebot.setVariable('respuesta_webhook', 'There seems to be an error in processing the query.');
  throw error;
}
5 comments
B
N
Hi People, Would it be possible to activate a Webhook in TypeBot that would query a Botpress ChatBot and its KnowledgeBase and return a response? I appreciate your ideas and comments. Thank you.

This would give TypeBot extra knowledge, at a good price 😉
6 comments
N
B
I want to create a variable that displays today's date plus 10 days in dd/mm/yyyy format.

How can I do it? What language does the editor understand? I have tried with JavaScript, but I can't get it to work correctly.
4 comments
N
B
Hello, will the input file of Typebot be compatible with the input file of Dify?
5 comments
B
N
A
I have created a function in the GPT wizard. I want that when a customer requests to contact, it asks the user for the name, email and query. This works fine, but I have the problem when the call to Make is executed.

It does not send the data to Make and therefore, I do not receive a response.

This is my code, any idea where the error is?

async function contactarWebhook(nombre, email, consulta) {
const webhookUrl = 'https://hook.eu1.make.com/zef3***************************';

try {
const response = await fetch(webhookUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({ nombre, email, consulta })
});

const data = await response.json();

if (response.ok && data.success) {
console.log('La consulta ha sido enviada con éxito.');
return data;
} else {
console.error('Hubo un problema al enviar la consulta:', data);
return null;
}
} catch (error) {
console.error('Error al contactar con la API:', error);
throw error;
}
}
2 comments
N
V
I have created a flow in Make so that, based on the user's query, it searches the Notion database and generates me a response with the search results. I have created the Flow and it works fine, but I don't know how to get the response back into Typebot. any help? Thanks
22 comments
N
m