{
    "Id": "ConnectToDatabaseToSearch",
    "LineOfBusinessProcessData": [
        {
            "Key": "object",
            "Type": "Xenhey.BPM.Core.Net8.Processes.ProcessData"
        }
    ],
    "Type": "",
    "DataFlowProcess": [
        {
            "Key": "GetAIInputData",
            "Type": "Xenhey.BPM.Core.Net8.Processes.TransformationProcess",
            "Async": "false",
            "IsEnable": "true",
            "DataFlowProcessParameters": [
                {
                    "Key": "TransformJSONPayload",
                    "Value": "yes"
                },
                {
                    "Key": "RemoteTemplateName",
                    "Value": "yes"
                },
                {
                    "Key": "remoteURL",
                    "Value": "https://www.xenhey.com/api/store/D7A0BD63E511425C9A4830E56971EC30"
                }
            ]
        },
        {
            "Key": "MakeAPICall",
            "Type": "Xenhey.BPM.Core.Net8.Processes.RemoteApiProcess",
            "Async": "false",
            "IsEnable": "true",
            "DataFlowProcessParameters": [
                {
                    "Key": "MakeSimpleApiCall",
                    "Value": "Yes"
                },
                {
                    "Key": "PassThroughHeaders",
                    "Value": "[{\"Key\": \"Authorization\",\"Value\": \"Authorization\"}]"
                },
                {
                    "Key": "MessageType",
                    "Value": "application/json"
                },
                {
                    "Key": "uri",
                    "Value": "https://api.openai.com/v1/chat/completions"
                },
                {
                    "Key": "MethodType",
                    "Value": "POST"
                }
            ]
        },
        {
            "Key": "ReplaceContentTypeInHeader",
            "Type": "Xenhey.BPM.Core.Net8.Processes.MessageBuilderProcess",
            "Async": "false",
            "IsEnable": "true",
            "DataFlowProcessParameters": [
                {
                    "Key": "BuildArrayFromComplexObject",
                    "Value": "yes"
                },
                {
                    "Key": "TableName",
                    "Value": "content"
                }
            ]
        },
        {
            "Key": "SearchDatabaseForResults",
            "Type": "Xenhey.BPM.Core.Net8.Processes.ConnectToDBProcess",
            "Async": "false",
            "IsEnable": "true",
            "DataFlowProcessParameters": [
                {
                    "Key": "ConnectToDatabaseWithStatement",
                    "Value": "Yes"
                },
                {
                    "Key": "connectionstring",
                    "Value": "DatabaseConnection"
                },
                {
                    "Key": "messageformat",
                    "Value": "application/json"
                }
            ]
        },
        {
            "Key": "ChatGptFinancialanalyzer",
            "Type": "Xenhey.BPM.Core.Net8.Processes.MessageBuilderProcess",
            "Async": "false",
            "IsEnable": "false",
            "DataFlowProcessParameters": [
                {
                    "Key": "ContentBuilderRemoteURL",
                    "Value": "yes"
                },
                {
                    "Key": "remoteURL",
                    "Value": "https://www.xenhey.com/api/store/92A397F0BCE64C448ECE9F7C28121C5C"
                },
                {
                    "Key": "filters",
                    "Value": "[{\"Key\": \"@{data}\",\"Value\": \"query\"}]"
                },
                {
                    "Key": "AdditionalFormatting",
                    "Value": "yes"
                }
            ]
        },
        {
            "Key": "MakeAPICall",
            "Type": "Xenhey.BPM.Core.Net8.Processes.RemoteApiProcess",
            "Async": "false",
            "IsEnable": "false",
            "DataFlowProcessParameters": [
                {
                    "Key": "MakeSimpleApiCall",
                    "Value": "Yes"
                },
                {
                    "Key": "PassThroughHeaders",
                    "Value": "[{\"Key\": \"Authorization\",\"Value\": \"Authorization\"}]"
                },
                {
                    "Key": "MessageType",
                    "Value": "application/json"
                },
                {
                    "Key": "uri",
                    "Value": "https://api.openai.com/v1/chat/completions"
                },
                {
                    "Key": "MethodType",
                    "Value": "POST"
                }
            ]
        },
        {
            "Key": "ReplaceContentTypeInHeader",
            "Type": "Xenhey.BPM.Core.Net8.Processes.MessageBuilderProcess",
            "Async": "false",
            "IsEnable": "false",
            "DataFlowProcessParameters": [
                {
                    "Key": "BuildArrayFromComplexObject",
                    "Value": "yes"
                },
                {
                    "Key": "TableName",
                    "Value": "content"
                }
            ]
        },
        {
            "Key": "MakeCachingPost",
            "Type": "Xenhey.BPM.Core.Net8.Processes.RemoteApiProcess",
            "Async": "false",
            "IsEnable": "false",
            "DataFlowProcessParameters": [
                {
                    "Key": "MakeSimpleApiCallJson",
                    "Value": "Yes"
                },
                {
                    "Key": "ContentType",
                    "Value": "text/html"
                },
                {
                    "Key": "Accept",
                    "Value": "text/html"
                },
                {
                    "Key": "uri",
                    "Value": "https://www.xenhey.com/api/store/?contentid=4836947670274459B30041FF972AF1E2&edit=023D0D0E08104A3C9DF4CDD8D1C93D8F"
                },
                {
                    "Key": "MethodType",
                    "Value": "POST"
                }
            ]
        }
    ]
}