Share feedback, ideas and get community help

F
M
a
g
E
Members
JohnSmith
J
JohnSmith
Offline, last seen last month
Joined September 13, 2024
I'm trying to combined 3 variables, they are all links that need to be merged into one variable to use as multiple attachments,

{{Letter}} {{SubmittedDocuments1}} {{SubmittedDocuments2}}

The Letter URL always has a comma after it so goes nicely onto either or Docs1 or Docs2, however when trying to combine Docs1 and Docs2 I'm struggling as sometimes they are individual links, sometimes they have multiple links split by commas, however I need to some how add a comma to the end of the variable of SubmittedDocuments1

I tried {{Letter}} {{SubmittedDocuments1}}, {{SubmittedDocuments2}}

Do I need to parse them first or something?
2 comments
B
I was using my bot to check addresses, this is connected to about 10 spreadsheets, then randomly it stopped functioning as all my sheets had become deselected, had to reissue permission for sheets to have access. Not sure if this will reoccur
4 comments
W
J
B
I stupidly ran an infinite loop of sending an email with out any checking or preventative methods.

I ended up spamming my self with 240 emails in about 2 seconds.. not geat, obviously got blocked by my email sender. I don't know if the server is still trying to process these but my CPU is now running at 100%, ive never ever got close to this before hand...

I've tried restarting the app with docker compose down and up but it still seems to have an issue... - Has anybody else done something as silly as this and found out what it caused and how to fix it?
2 comments
J
B
Hi all, I'm trying to use a chatGPT to function call an API to get data when a user enters a postcode - I've set up the function in the AssistantsAPI and in the prompt so its using the function when the postcode is inputted.

I'm having trouble with calling the API using the function and returning the response, I've tested the API keys and such and they are working - however when in typebot it returns:

"status": 500, "body": { "message": "400 1 validation error for Request\nbody -> tool_outputs -> 0 -> output\n field required (type=value_error.missing)", "code": "INTERNAL_SERVER_ERROR"

This is my code in the function:

' const baseUrl = https://epc.opendatacommunities.org/api/v1/domestic/search?postcode=BH10;
const encodedAPI = "BASE64 Encode"; // Pre-encoded API key

const requestOptions = {
method: "GET",
headers: {
Accept: "application/json",
Authorization: "Basic" + encodedAPI
}
};

try {
const response = await fetch(baseUrl, requestOptions);
if (!response.ok) {
throw new Error('Network response was not ok');
}
const data = await response.json();
console.log(data); // Log the response data
return data; // Return the parsed JSON data
} catch (error) {
console.error("Error fetching data:", error);
throw error; // Re-throw the error for handling outside the function
} '
29 comments
J
V
B
I'm trying to deploy typebot to a server, I've managed to set up the reverse proxy and have access to the site. I'm going through the login options then it fails to log in.

I'm getting this error from my builder when I try to login:

Can't reach database server at localhost:5432 nextconvo-typebot-builder-1 | nextconvo-typebot-builder-1 | Please make sure your database server is running at localhost:5432. nextconvo-typebot-builder-1 | at zr.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:122:8581)
nextconvo-typebot-builder-1 | at zr.handleAndLogRequestError (/app/node_modules/.pnpm/@prisma+client@5.0.0_prisma@5.0.0/node_modules/@prisma/client/runtime/library.js:122:7697)
nextconvo-typebot-builder-1 | at zr.request (/app/node_modules/.pnpm/@prisma+client@5.0.0_prisma@5.0.0/node_modules/@prisma/client/runtime/library.js:122:7307)
nextconvo-typebot-builder-1 | at async getUserByAccount (/app/apps/builder/.next/server/chunks/162.js:1:1378) {
nextconvo-typebot-builder-1 | name: 'GetUserByAccountError',
nextconvo-typebot-builder-1 | code: undefined
nextconvo-typebot-builder-1 | }
11 comments
J
B