Eliminator
10/22/2024, 8:08 PMVapi
10/22/2024, 8:11 PMreplace function is being used, but the double quotes inside the string are not escaped, which could be causing the problem. Additionally, emptystring should be a string value, like "".
Here's a corrected version of the content field:
json
"content": "{{replace(3.System prompt + ' The current date and time is: ' + now + '.'; '\"'; '')}}"
In this corrected version, I've changed the outer double quotes to single quotes to avoid confusion with the inner double quotes that are part of the string you want to replace. Also, I've replaced emptystring with '' to represent an empty string.
If you're still encountering issues, please ensure that the variables 3.System prompt and now are correctly defined and that their values are what you expect them to be. If the problem persists, you may want to reach out to make.com support for more specific assistance with your scenario.Vapi
10/22/2024, 8:11 PMEliminator
10/22/2024, 8:17 PMSystem prompt}}""Eliminator
10/22/2024, 8:18 PMEliminator
10/22/2024, 8:19 PMLufem
10/22/2024, 8:24 PMShubham Bajaj
10/23/2024, 8:19 PM