I cannot see how to use an autoaction, the raw field should be retrieved directly from the DB by SQL and written in the node.js code.
The field will be pasted in a function which will only returni a text string but the customer can write what they wish in the field.
The code will be like :
Code:
const companytool1 = new DynamicTool({
name: "CompanyTool1",
description: `this tool will be used to : ${user.cb_function_field_description}`,
func: async (input, runManager) => {
console.log('USERINPUT', input);
${user.cb_function_field_raw} //output $string
return $string;
}
});
so what I need is a way to (securely if possible) output the cb fields with the js code written by the customer team.