{
  "name": "mamitsu: Extract Social Content to JSON",
  "nodes": [
    {
      "parameters": {},
      "id": "ff4e93b7-02a5-46cf-bd61-f579a9e23e0d",
      "name": "When clicking Execute workflow",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [260, 300]
    },
    {
      "parameters": {
        "mode": "raw",
        "jsonOutput": "{\n  \"url\": \"https://instagram.com/reel/C8pQ2mLtN4x\",\n  \"prompt\": \"Extract the recipe name and ingredients. Return only details present in the post.\",\n  \"schema\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"dish\": {\n        \"type\": \"string\",\n        \"description\": \"Name of the dish\"\n      },\n      \"ingredients\": {\n        \"type\": \"array\",\n        \"items\": { \"type\": \"string\" },\n        \"description\": \"Ingredients shown or stated in the post\"\n      }\n    },\n    \"required\": [\"dish\", \"ingredients\"],\n    \"additionalProperties\": false\n  }\n}",
        "options": {}
      },
      "id": "3482c668-a5e5-4c90-934d-b4a6754f62bc",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [500, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://usemamitsu.com/api/v1/extract",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpBearerAuth",
        "sendBody": true,
        "contentType": "json",
        "specifyBody": "json",
        "jsonBody": "={{ $json }}",
        "options": {
          "response": {
            "response": {
              "neverError": true,
              "responseFormat": "json"
            }
          },
          "timeout": 120000
        }
      },
      "id": "8cb63651-8cad-448b-9b9c-35a92de7847e",
      "name": "Extract with mamitsu",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [760, 300],
      "notesInFlow": true,
      "notes": "Before running: select your n8n Bearer Auth credential. The workflow export contains no API key. Edit the URL and prompt in Edit Fields. Remove the schema property there if you want mamitsu to choose the JSON structure."
    }
  ],
  "connections": {
    "When clicking Execute workflow": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Extract with mamitsu",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": false
  }
}
