{
    "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/31DE4D7AA7CD48638073E0E2CF4313CB"
                }
            ]
        },
        {
            "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"
                }
            ]
        }
    ]
}