{
"name": "Alchemyst – Store Contact Forms",
"nodes": [
{
"id": "WebhookContactForm",
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [-200, 300],
"parameters": {
"httpMethod": "POST",
"path": "contact-form",
"responseMode": "onReceived",
"options": {}
}
},
{
"id": "SendToAlchemyst",
"name": "Send to Alchemyst",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.3,
"position": [200, 300],
"parameters": {
"method": "POST",
"url": "https://platform-backend.getalchemystai.com/api/v1/context/add",
"authentication": "genericCredentialType",
"genericAuthType": "httpBearerAuth",
"sendBody": true,
"specifyBody": "json",
"jsonBody": "={{ JSON.stringify({\n documents: [\n {\n content: $json.body?.message ?? $json.message,\n containerTag: \"contact-forms\",\n metadata: {\n name: $json.body?.name ?? $json.name,\n email: $json.body?.email ?? $json.email,\n },\n },\n ],\n source: `contact-form-${DateTime.now().toMillis()}`,\n context_type: \"resource\",\n scope: \"internal\",\n metadata: {\n fileName: `contact_form_${DateTime.now().toMillis()}.json`,\n fileSize: (($json.body?.message ?? $json.message)?.length ?? 0) * 8,\n fileType: \"contact/form\",\n lastModified: $now.toISO(),\n },\n}) }}"
},
"credentials": {
"httpBearerAuth": {
"id": "",
"name": "Alchemyst API Key"
}
}
}
],
"connections": {
"Webhook": {
"main": [
[
{
"node": "Send to Alchemyst",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
}
}