{
    "name": "Store Quotation Data",
    "nodes": [
        {
            "parameters": [],
            "type": "n8n-nodes-base.manualTrigger",
            "typeVersion": 1,
            "position": [
                -272,
                0
            ],
            "id": "49d55cdd-32a2-4524-9ff0-f21a6190c9da",
            "name": "When clicking ‘Execute workflow’"
        },
        {
            "parameters": {
                "text": "={{$json.message || $json.completion || $json.output || $json.text}}",
                "attributes": {
                    "attributes": [
                        {
                            "name": "name",
                            "description": "الاسم الكامل للعميل"
                        },
                        {
                            "name": "phone_number",
                            "description": "رقم الهاتف مع مفتاح الدولة"
                        },
                        {
                            "name": "country",
                            "description": "الدولة التي ينتمي إليها العميل"
                        },
                        {
                            "name": "service_type",
                            "description": "نوع الخدمة المطلوبة"
                        },
                        {
                            "name": "price",
                            "description": "السعر النهائي بالعملة (دولار)"
                        }
                    ]
                },
                "options": []
            },
            "type": "@n8n\/n8n-nodes-langchain.informationExtractor",
            "typeVersion": 1.2,
            "position": [
                -48,
                -16
            ],
            "id": "55623ce5-c658-4754-a88c-8e2c770e0baf",
            "name": "Information Extractor"
        },
        {
            "parameters": {
                "model": {
                    "__rl": true,
                    "value": "gpt-4o",
                    "mode": "list",
                    "cachedResultName": "gpt-4o"
                },
                "options": []
            },
            "type": "@n8n\/n8n-nodes-langchain.lmChatOpenAi",
            "typeVersion": 1.2,
            "position": [
                -128,
                208
            ],
            "id": "6a74a8bd-2b9d-409b-b939-42f5a88ec4a9",
            "name": "OpenAI Chat Model",
            "credentials": {
                "openAiApi": {
                    "id": "XMEsLBYvPf9TQsy0",
                    "name": "OpenAi account"
                }
            }
        },
        {
            "parameters": {
                "schema": {
                    "__rl": true,
                    "mode": "list",
                    "value": "public"
                },
                "table": {
                    "__rl": true,
                    "value": "client_data",
                    "mode": "list",
                    "cachedResultName": "client_data"
                },
                "columns": {
                    "mappingMode": "autoMapInputData",
                    "value": [],
                    "matchingColumns": [
                        "id"
                    ],
                    "schema": [
                        {
                            "id": "id",
                            "displayName": "id",
                            "required": false,
                            "defaultMatch": true,
                            "display": true,
                            "type": "number",
                            "canBeUsedToMatch": true,
                            "removed": false
                        },
                        {
                            "id": "created_at",
                            "displayName": "created_at",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "dateTime",
                            "canBeUsedToMatch": true
                        },
                        {
                            "id": "name",
                            "displayName": "name",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "string",
                            "canBeUsedToMatch": true
                        },
                        {
                            "id": "phone_number",
                            "displayName": "phone_number",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "string",
                            "canBeUsedToMatch": true
                        },
                        {
                            "id": "country",
                            "displayName": "country",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "string",
                            "canBeUsedToMatch": true
                        },
                        {
                            "id": "service_type",
                            "displayName": "service_type",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "string",
                            "canBeUsedToMatch": true
                        },
                        {
                            "id": "price",
                            "displayName": "price",
                            "required": false,
                            "defaultMatch": false,
                            "display": true,
                            "type": "string",
                            "canBeUsedToMatch": true
                        }
                    ],
                    "attemptToConvertTypes": false,
                    "convertFieldsToString": false
                },
                "options": []
            },
            "type": "n8n-nodes-base.postgres",
            "typeVersion": 2.6,
            "position": [
                304,
                -16
            ],
            "id": "a58fb8ad-2ed9-4f04-a4a6-7659a7f6be5e",
            "name": "Insert rows in a table",
            "credentials": {
                "postgres": {
                    "id": "VrRSp705gu0IHQy1",
                    "name": "Postgres account"
                }
            }
        }
    ],
    "pinData": [],
    "connections": {
        "When clicking ‘Execute workflow’": {
            "main": [
                [
                    {
                        "node": "Information Extractor",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        },
        "OpenAI Chat Model": {
            "ai_languageModel": [
                [
                    {
                        "node": "Information Extractor",
                        "type": "ai_languageModel",
                        "index": 0
                    }
                ]
            ]
        },
        "Information Extractor": {
            "main": [
                [
                    {
                        "node": "Insert rows in a table",
                        "type": "main",
                        "index": 0
                    }
                ]
            ]
        }
    },
    "active": false,
    "settings": {
        "executionOrder": "v1"
    },
    "versionId": "6da09164-409a-4c2b-99c6-fe77b3209072",
    "meta": {
        "templateCredsSetupCompleted": true,
        "instanceId": "a85fc6519b374e86e01063acbb733de8f006266ec78aa34c0f3dbebd8434a16e"
    },
    "id": "OzHHKZZz1D6JpjNP",
    "tags": []
}