I would like to produce a FileMaker UI to run N8N AI Agents. I have this same running with the ChatGPT API, so I know that it can be done.
I don’t have a FileMaker server, but I would like to be able to send it to the N8N API directly from the FileMaker client.
My problem is that N8N Webhook seems to process the incoming cURL that FileMaker sends, so the result is unexpected.
This is the FileMaker script steps:
Set Variable $promt:
“search indexi page H1 text”
set Variable $postJSON :
“JSONSetElement ( “{}” ; [ “body” ; $promt ; JSONString ] )”
set Variable $cURL :
“curl -X POST " & ¶ &”
“-H "Content-Type: application/json"” & ¶ &"
“-d @$postJSON”
This -d line does work with ChatGPT API.
The cURL is sent with the Insert From URL script step.
I have used ChatGPT 4o and tried several ways to configure the cURL in FileMaker but can not get it to work. The Agent node after the Webhook does produce an error.
This is also one cURL version ChatGPT suggested, but it still does not work.
“curl -X POST " & ¶ &”
“-H "Content-Type: application/json"” & ¶ &"
“-d "” & Substitute ($postJSON ; “"” ; “\"”) & “"” "
Webhook does receive this as JSON
“params”: { },
“query”: {},
“body”: {“body”: “search indexi page H1 text”}
So there is one body too much.
My workflow is Webhook and an Agent.
Current n8n version [email protected] Free
Running n8n via Cloud
n8n EXECUTIONS_PROCESS setting default
Windows 11
FileMaker version 21.0.2.200 (07-12-2024).
The FileMaker features used are already available in version 19 and probably in versions dated 10 years ago.