[{"data":1,"prerenderedAt":2083},["ShallowReactive",2],{"/blog/extend-gitlab-duo-agent-platform-into-your-business-systems":3,"navigation-en-us":1332,"banner-en-us":1769,"footer-en-us":1777,"blog-post-authors-en-us-Harshit Bhandari":2024,"blog-related-posts-en-us-extend-gitlab-duo-agent-platform-into-your-business-systems":2038,"blog-share-wrapper-en-us":2063,"next-steps-en-us":2073},{"id":4,"title":5,"authors":6,"body":8,"category":1314,"date":1315,"description":1316,"extension":1317,"externalUrl":1318,"faq":1318,"featured":1319,"heroImage":1320,"hidePromo":1319,"meta":1321,"navigation":157,"path":1322,"seo":1323,"slug":1325,"stem":1326,"tags":1327,"template":1330,"updatedDate":1318,"__hash__":1331},"blogPosts/en-us/blog/extend-gitlab-duo-agent-platform-into-your-business-systems.md","Extend GitLab Duo Agent Platform into your business systems",[7],"Harshit Bhandari",{"type":9,"value":10,"toc":1301},"minimark",[11,15,18,21,24,27,32,35,42,45,49,89,93,96,115,608,611,614,637,641,644,679,696,709,718,722,740,746,899,906,909,941,944,948,954,988,991,1001,1005,1008,1144,1147,1154,1158,1161,1187,1191,1194,1214,1217,1221,1224,1227,1238,1241,1245,1260,1265,1297],[12,13,14],"p",{},"Developers mostly use GitLab Duo Agent Platform where they already work: the IDE, merge requests, and issues. But DevSecOps teams also support the business systems the rest of the company runs on, and those systems break too.",[12,16,17],{},"In Salesforce, for example, when a validation fails, a callout times out, or a null slips through a trigger, the error gets logged, but the log doesn’t explain the cause. An engineer still has to read the stack trace, find the class in the repository, check what changed recently, and decide whether this is a one-off or a regression. Meanwhile, the business user who hit the error has to wait.",[12,19,20],{},"When your Salesforce metadata lives in GitLab and ships through GitLab CI/CD, the code that explains the error is already there. In this tutorial, Salesforce calls a custom GitLab Duo Agent Platform flow through the Flows API the moment an error happens. The flow investigates the code, and your team gets a GitLab issue that already contains the root-cause analysis.",[12,22,23],{},"Along the way, three parts of the GitLab platform work together: GitLab Duo Agent Platform investigates the error, a GitLab issue tracks the work, and GitLab CI/CD runs the flow and ships the fix.",[12,25,26],{},"Salesforce is the example we’ll walk through in this tutorial, but the same approach works for any system that can make an HTTP request.",[28,29,31],"h2",{"id":30},"what-youll-build","What you'll build",[12,33,34],{},"Salesforce makes one call to GitLab. A custom flow in GitLab Duo Agent Platform does the rest.",[12,36,37],{},[38,39],"img",{"alt":40,"src":41},"From a Salesforce error to a deployed fix, on one platform","https://res.cloudinary.com/about-gitlab-com/image/upload/v1793038948/do3owb7ivg2uqixoeiqo.jpg",[12,43,44],{},"Errors reach GitLab Duo Agent Platform automatically from your Apex error handling, or on demand from a button. Either way, the same Apex job calls the Flows API, and the flow opens an issue with its analysis.",[28,46,48],{"id":47},"prerequisites","Prerequisites",[50,51,52,63,77,80,83,86],"ul",{},[53,54,55,56,62],"li",{},"GitLab Premium or Ultimate, on GitLab.com or GitLab 19.5 and later. The ",[57,58,61],"a",{"href":59,"rel":60},"https://docs.gitlab.com/api/duo_agent_platform_flows/",[],"Flows API"," used in this tutorial is generally available from 19.5.",[53,64,65,70,71,76],{},[57,66,69],{"href":67,"rel":68},"https://docs.gitlab.com/user/duo_agent_platform/",[],"GitLab Duo Agent Platform"," turned on, with ",[57,72,75],{"href":73,"rel":74},"https://docs.gitlab.com/user/duo_agent_platform/flows/custom/",[],"custom flows"," allowed for your top-level group.",[53,78,79],{},"Your Salesforce metadata (Apex classes, triggers, Flows) stored in a GitLab project. This is the project the flow will read.",[53,81,82],{},"A Maintainer or Owner role in that project.",[53,84,85],{},"In Salesforce, permission to create a Named Credential, a custom metadata type, and Apex classes.",[53,87,88],{},"Your Salesforce deployments must be running through a GitLab CI/CD pipeline, so the fix can ship from the same issue.",[28,90,92],{"id":91},"step-1-write-the-triage-flow","Step 1: Write the triage flow",[12,94,95],{},"Start in GitLab, because Salesforce will need the flow's ID later.",[12,97,98,99,103,104,109,110,114],{},"A ",[57,100,102],{"href":73,"rel":101},[],"custom flow"," is one YAML file in the ",[57,105,108],{"href":106,"rel":107},"https://docs.gitlab.com/user/duo_agent_platform/flows/custom_flows_schema/",[],"flow registry v1 syntax",". This one has a single agent. When Salesforce starts the flow, it sends the error details as the flow's goal. The agent reads them as ",[111,112,113],"code",{},"context:goal",", investigates the repository, and opens one issue.",[116,117,122],"pre",{"className":118,"code":119,"language":120,"meta":121,"style":121},"language-yaml shiki shiki-themes github-light","version: \"v1\"\nenvironment: ambient\n\ncomponents:\n  - name: \"sf_error_triage\"\n    type: AgentComponent\n    prompt_id: \"sf_error_triage_prompt\"\n    inputs:\n      - from: \"context:project_id\"\n        as: \"project_id\"\n      - from: \"context:goal\"\n        as: \"error_report\"\n    toolset:\n      - \"find_files\"      # locate the class or Flow in the repository\n      - \"grep\"\n      - \"read_file\"\n      - \"list_commits\"    # find recent changes to that file\n      - \"create_issue\"    # the only write: open the triage issue\n\nprompts:\n  - prompt_id: \"sf_error_triage_prompt\"\n    name: \"Salesforce error triage\"\n    unit_primitives: []\n    prompt_template:\n      system: |\n        You triage Salesforce runtime errors for a team that keeps its\n        Salesforce metadata (Apex classes, triggers, Flows) in this project.\n\n        You receive an error report with a class name, exception type,\n        message and stack trace.\n\n        1. Find the source file for the class or Flow named in the report.\n        2. Read the code around the lines in the stack trace.\n        3. List recent commits that touched that file and identify any change\n           that plausibly introduced the error.\n        4. Create one issue:\n           - Title: \"[Salesforce error] \u003Cexception type> in \u003Cclass>\"\n           - Label: salesforce-error\n           - Description: the original error, then sections for\n             Likely cause, Affected component, Suspect change,\n             Suggested next step, and Confidence (high, medium or low,\n             with one line of reasoning).\n\n        Rules:\n        - Cite file paths, line numbers and commit SHAs for every claim.\n        - If you cannot find the code or a suspect commit, say so. Do not guess.\n        - Do not change code. A person decides what happens next.\n      user: |\n        Project ID: {{project_id}}\n        Error report:\n        {{error_report}}\n      placeholder: history\n\nrouters:\n  - from: \"sf_error_triage\"\n    to: \"end\"\n\nflow:\n  entry_point: \"sf_error_triage\"\n","yaml","",[111,123,124,141,152,159,168,182,193,204,212,226,237,249,259,267,279,287,295,306,317,322,330,342,353,362,370,382,388,394,399,405,411,416,422,428,434,440,446,452,458,464,470,476,482,487,493,499,505,511,521,527,533,539,550,555,563,574,585,590,598],{"__ignoreMap":121},[125,126,129,133,137],"span",{"class":127,"line":128},"line",1,[125,130,132],{"class":131},"shJU0","version",[125,134,136],{"class":135},"sgsFI",": ",[125,138,140],{"class":139},"sYBdl","\"v1\"\n",[125,142,144,147,149],{"class":127,"line":143},2,[125,145,146],{"class":131},"environment",[125,148,136],{"class":135},[125,150,151],{"class":139},"ambient\n",[125,153,155],{"class":127,"line":154},3,[125,156,158],{"emptyLinePlaceholder":157},true,"\n",[125,160,162,165],{"class":127,"line":161},4,[125,163,164],{"class":131},"components",[125,166,167],{"class":135},":\n",[125,169,171,174,177,179],{"class":127,"line":170},5,[125,172,173],{"class":135},"  - ",[125,175,176],{"class":131},"name",[125,178,136],{"class":135},[125,180,181],{"class":139},"\"sf_error_triage\"\n",[125,183,185,188,190],{"class":127,"line":184},6,[125,186,187],{"class":131},"    type",[125,189,136],{"class":135},[125,191,192],{"class":139},"AgentComponent\n",[125,194,196,199,201],{"class":127,"line":195},7,[125,197,198],{"class":131},"    prompt_id",[125,200,136],{"class":135},[125,202,203],{"class":139},"\"sf_error_triage_prompt\"\n",[125,205,207,210],{"class":127,"line":206},8,[125,208,209],{"class":131},"    inputs",[125,211,167],{"class":135},[125,213,215,218,221,223],{"class":127,"line":214},9,[125,216,217],{"class":135},"      - ",[125,219,220],{"class":131},"from",[125,222,136],{"class":135},[125,224,225],{"class":139},"\"context:project_id\"\n",[125,227,229,232,234],{"class":127,"line":228},10,[125,230,231],{"class":131},"        as",[125,233,136],{"class":135},[125,235,236],{"class":139},"\"project_id\"\n",[125,238,240,242,244,246],{"class":127,"line":239},11,[125,241,217],{"class":135},[125,243,220],{"class":131},[125,245,136],{"class":135},[125,247,248],{"class":139},"\"context:goal\"\n",[125,250,252,254,256],{"class":127,"line":251},12,[125,253,231],{"class":131},[125,255,136],{"class":135},[125,257,258],{"class":139},"\"error_report\"\n",[125,260,262,265],{"class":127,"line":261},13,[125,263,264],{"class":131},"    toolset",[125,266,167],{"class":135},[125,268,270,272,275],{"class":127,"line":269},14,[125,271,217],{"class":135},[125,273,274],{"class":139},"\"find_files\"",[125,276,278],{"class":277},"sAwPA","      # locate the class or Flow in the repository\n",[125,280,282,284],{"class":127,"line":281},15,[125,283,217],{"class":135},[125,285,286],{"class":139},"\"grep\"\n",[125,288,290,292],{"class":127,"line":289},16,[125,291,217],{"class":135},[125,293,294],{"class":139},"\"read_file\"\n",[125,296,298,300,303],{"class":127,"line":297},17,[125,299,217],{"class":135},[125,301,302],{"class":139},"\"list_commits\"",[125,304,305],{"class":277},"    # find recent changes to that file\n",[125,307,309,311,314],{"class":127,"line":308},18,[125,310,217],{"class":135},[125,312,313],{"class":139},"\"create_issue\"",[125,315,316],{"class":277},"    # the only write: open the triage issue\n",[125,318,320],{"class":127,"line":319},19,[125,321,158],{"emptyLinePlaceholder":157},[125,323,325,328],{"class":127,"line":324},20,[125,326,327],{"class":131},"prompts",[125,329,167],{"class":135},[125,331,333,335,338,340],{"class":127,"line":332},21,[125,334,173],{"class":135},[125,336,337],{"class":131},"prompt_id",[125,339,136],{"class":135},[125,341,203],{"class":139},[125,343,345,348,350],{"class":127,"line":344},22,[125,346,347],{"class":131},"    name",[125,349,136],{"class":135},[125,351,352],{"class":139},"\"Salesforce error triage\"\n",[125,354,356,359],{"class":127,"line":355},23,[125,357,358],{"class":131},"    unit_primitives",[125,360,361],{"class":135},": []\n",[125,363,365,368],{"class":127,"line":364},24,[125,366,367],{"class":131},"    prompt_template",[125,369,167],{"class":135},[125,371,373,376,378],{"class":127,"line":372},25,[125,374,375],{"class":131},"      system",[125,377,136],{"class":135},[125,379,381],{"class":380},"sD7c4","|\n",[125,383,385],{"class":127,"line":384},26,[125,386,387],{"class":139},"        You triage Salesforce runtime errors for a team that keeps its\n",[125,389,391],{"class":127,"line":390},27,[125,392,393],{"class":139},"        Salesforce metadata (Apex classes, triggers, Flows) in this project.\n",[125,395,397],{"class":127,"line":396},28,[125,398,158],{"emptyLinePlaceholder":157},[125,400,402],{"class":127,"line":401},29,[125,403,404],{"class":139},"        You receive an error report with a class name, exception type,\n",[125,406,408],{"class":127,"line":407},30,[125,409,410],{"class":139},"        message and stack trace.\n",[125,412,414],{"class":127,"line":413},31,[125,415,158],{"emptyLinePlaceholder":157},[125,417,419],{"class":127,"line":418},32,[125,420,421],{"class":139},"        1. Find the source file for the class or Flow named in the report.\n",[125,423,425],{"class":127,"line":424},33,[125,426,427],{"class":139},"        2. Read the code around the lines in the stack trace.\n",[125,429,431],{"class":127,"line":430},34,[125,432,433],{"class":139},"        3. List recent commits that touched that file and identify any change\n",[125,435,437],{"class":127,"line":436},35,[125,438,439],{"class":139},"           that plausibly introduced the error.\n",[125,441,443],{"class":127,"line":442},36,[125,444,445],{"class":139},"        4. Create one issue:\n",[125,447,449],{"class":127,"line":448},37,[125,450,451],{"class":139},"           - Title: \"[Salesforce error] \u003Cexception type> in \u003Cclass>\"\n",[125,453,455],{"class":127,"line":454},38,[125,456,457],{"class":139},"           - Label: salesforce-error\n",[125,459,461],{"class":127,"line":460},39,[125,462,463],{"class":139},"           - Description: the original error, then sections for\n",[125,465,467],{"class":127,"line":466},40,[125,468,469],{"class":139},"             Likely cause, Affected component, Suspect change,\n",[125,471,473],{"class":127,"line":472},41,[125,474,475],{"class":139},"             Suggested next step, and Confidence (high, medium or low,\n",[125,477,479],{"class":127,"line":478},42,[125,480,481],{"class":139},"             with one line of reasoning).\n",[125,483,485],{"class":127,"line":484},43,[125,486,158],{"emptyLinePlaceholder":157},[125,488,490],{"class":127,"line":489},44,[125,491,492],{"class":139},"        Rules:\n",[125,494,496],{"class":127,"line":495},45,[125,497,498],{"class":139},"        - Cite file paths, line numbers and commit SHAs for every claim.\n",[125,500,502],{"class":127,"line":501},46,[125,503,504],{"class":139},"        - If you cannot find the code or a suspect commit, say so. Do not guess.\n",[125,506,508],{"class":127,"line":507},47,[125,509,510],{"class":139},"        - Do not change code. A person decides what happens next.\n",[125,512,514,517,519],{"class":127,"line":513},48,[125,515,516],{"class":131},"      user",[125,518,136],{"class":135},[125,520,381],{"class":380},[125,522,524],{"class":127,"line":523},49,[125,525,526],{"class":139},"        Project ID: {{project_id}}\n",[125,528,530],{"class":127,"line":529},50,[125,531,532],{"class":139},"        Error report:\n",[125,534,536],{"class":127,"line":535},51,[125,537,538],{"class":139},"        {{error_report}}\n",[125,540,542,545,547],{"class":127,"line":541},52,[125,543,544],{"class":131},"      placeholder",[125,546,136],{"class":135},[125,548,549],{"class":139},"history\n",[125,551,553],{"class":127,"line":552},53,[125,554,158],{"emptyLinePlaceholder":157},[125,556,558,561],{"class":127,"line":557},54,[125,559,560],{"class":131},"routers",[125,562,167],{"class":135},[125,564,566,568,570,572],{"class":127,"line":565},55,[125,567,173],{"class":135},[125,569,220],{"class":131},[125,571,136],{"class":135},[125,573,181],{"class":139},[125,575,577,580,582],{"class":127,"line":576},56,[125,578,579],{"class":131},"    to",[125,581,136],{"class":135},[125,583,584],{"class":139},"\"end\"\n",[125,586,588],{"class":127,"line":587},57,[125,589,158],{"emptyLinePlaceholder":157},[125,591,593,596],{"class":127,"line":592},58,[125,594,595],{"class":131},"flow",[125,597,167],{"class":135},[125,599,601,604,606],{"class":127,"line":600},59,[125,602,603],{"class":131},"  entry_point",[125,605,136],{"class":135},[125,607,181],{"class":139},[12,609,610],{},"The toolset is deliberately narrow: four tools read and one creates an issue. The flow can't push code or change existing issues, which makes it easy to review and easy to trust.",[12,612,613],{},"Two lines in the prompt do the most work. Requiring a citation for every claim lets an engineer check the reasoning in a minute. Allowing \"not found\" stops the agent from inventing a cause.",[12,615,616,617,621,622,621,625,628,629,632,633,636],{},"To create the flow, go to your project, select ",[618,619,620],"strong",{},"AI"," > ",[618,623,624],{},"Flows",[618,626,627],{},"New flow",", choose ",[618,630,631],{},"Flow",", paste the YAML, and select ",[618,634,635],{},"Create flow",". You can also build and test it in VS Code with the GitLab flow builder.",[28,638,640],{"id":639},"step-2-enable-the-flow-and-get-its-consumer-id","Step 2: Enable the flow and get its consumer ID",[12,642,643],{},"A flow must be enabled in a project before anything can run it.",[645,646,647,659,676],"ol",{},[53,648,649,650,621,652,654,655,658],{},"In your project, select ",[618,651,620],{},[618,653,624],{},", open the ",[618,656,657],{},"Managed"," tab, and select your flow.",[53,660,661,662,665,666,669,670,675],{},"Select ",[618,663,664],{},"Enable"," and choose the project that holds your Salesforce code. GitLab creates a service account for the flow, named ",[111,667,668],{},"ai-\u003Cflow>-\u003Cgroup>",". The flow runs with a ",[57,671,674],{"href":672,"rel":673},"https://docs.gitlab.com/user/duo_agent_platform/composite_identity/",[],"composite identity",", so it can never access more than the user who starts it. When Salesforce starts the flow through the API, GitLab runs it as this service account.",[53,677,678],{},"You don't need a mention or assign trigger. Salesforce will start this flow through the API.",[12,680,681,682,685,686,691,692,695],{},"To start a custom flow through the API, Salesforce passes the flow's ",[111,683,684],{},"ai_catalog_item_consumer_id",". ",[57,687,690],{"href":688,"rel":689},"https://docs.gitlab.com/api/duo_agent_platform_flows/#look-up-the-consumer-id",[],"Look it up with a short GraphQL query"," from the docs, and use the number at the end of the returned ",[111,693,694],{},"gid://gitlab/AiCatalogItemConsumer/\u003Cnumber>",". Note it, along with the project ID.",[12,697,698,699,704,705,708],{},"Finally, create a ",[57,700,703],{"href":701,"rel":702},"https://docs.gitlab.com/user/project/settings/project_access_tokens/",[],"project access token"," with the ",[111,706,707],{},"api"," scope and at least the Developer role. Salesforce will use it to call GitLab. With a lower role, the API refuses to run catalog flows.",[710,711,712],"blockquote",{},[12,713,714,717],{},[618,715,716],{},"Note:"," This token has broad access to your project, and GitLab doesn't yet offer a narrower way for an external system to start a flow. Treat this setup as a proof of concept, not a production pattern. Use it only in a test project, and review it with your security team before going further.",[28,719,721],{"id":720},"step-3-call-the-flow-from-salesforce","Step 3: Call the flow from Salesforce",[12,723,724,727,728,731,732,735,736,739],{},[618,725,726],{},"Store the token in a Named Credential."," Create a Named Credential called ",[111,729,730],{},"GitLab_API"," with the URL ",[111,733,734],{},"https://gitlab.com",", backed by an External Credential that sends your project access token in the ",[111,737,738],{},"PRIVATE-TOKEN"," header. The token never appears in code.",[12,741,742,745],{},[618,743,744],{},"Call the Flows API from a Queueable."," Salesforce doesn't allow callouts in the middle of saving a record, so the call runs as a background job. The job turns the exception into the flow's goal and starts the flow:",[116,747,751],{"className":748,"code":749,"language":750,"meta":121,"style":121},"language-apex shiki shiki-themes github-light","public with sharing class DuoTriageJob implements Queueable, Database.AllowsCallouts {\n    private final String goal;\n\n    public DuoTriageJob(Exception e, String className) {\n        goal = 'Class: ' + className\n            + '\\nException: ' + e.getTypeName()\n            + '\\nMessage: ' + e.getMessage()\n            + '\\nStack trace:\\n' + e.getStackTraceString();\n    }\n\n    public void execute(QueueableContext ctx) {\n        Duo_Triage_Setting__mdt cfg = Duo_Triage_Setting__mdt.getInstance('Default');\n\n        HttpRequest req = new HttpRequest();\n        req.setEndpoint('callout:GitLab_API/api/v4/ai/duo_workflows/workflows');\n        req.setMethod('POST');\n        req.setHeader('Content-Type', 'application/json');\n        req.setBody(JSON.serialize(new Map\u003CString, Object>{\n            'project_id'                    => cfg.Project_Id__c,\n            'ai_catalog_item_consumer_id'   => cfg.Consumer_Id__c.intValue(),\n            'goal'                          => goal,\n            'start_workflow'                => true,\n            'allow_agent_to_request_user'   => false,\n            'agent_privileges'              => new List\u003CInteger>{ 1, 2, 3 },\n            'pre_approved_agent_privileges' => new List\u003CInteger>{ 1, 2, 3 }\n        }));\n        HttpResponse res = new Http().send(req);\n        // 201 Created: the response includes web_url, a link to the agent session.\n    }\n}\n","apex",[111,752,753,758,763,767,772,777,782,787,792,797,801,806,811,815,820,825,830,835,840,845,850,855,860,865,870,875,880,885,890,894],{"__ignoreMap":121},[125,754,755],{"class":127,"line":128},[125,756,757],{},"public with sharing class DuoTriageJob implements Queueable, Database.AllowsCallouts {\n",[125,759,760],{"class":127,"line":143},[125,761,762],{},"    private final String goal;\n",[125,764,765],{"class":127,"line":154},[125,766,158],{"emptyLinePlaceholder":157},[125,768,769],{"class":127,"line":161},[125,770,771],{},"    public DuoTriageJob(Exception e, String className) {\n",[125,773,774],{"class":127,"line":170},[125,775,776],{},"        goal = 'Class: ' + className\n",[125,778,779],{"class":127,"line":184},[125,780,781],{},"            + '\\nException: ' + e.getTypeName()\n",[125,783,784],{"class":127,"line":195},[125,785,786],{},"            + '\\nMessage: ' + e.getMessage()\n",[125,788,789],{"class":127,"line":206},[125,790,791],{},"            + '\\nStack trace:\\n' + e.getStackTraceString();\n",[125,793,794],{"class":127,"line":214},[125,795,796],{},"    }\n",[125,798,799],{"class":127,"line":228},[125,800,158],{"emptyLinePlaceholder":157},[125,802,803],{"class":127,"line":239},[125,804,805],{},"    public void execute(QueueableContext ctx) {\n",[125,807,808],{"class":127,"line":251},[125,809,810],{},"        Duo_Triage_Setting__mdt cfg = Duo_Triage_Setting__mdt.getInstance('Default');\n",[125,812,813],{"class":127,"line":261},[125,814,158],{"emptyLinePlaceholder":157},[125,816,817],{"class":127,"line":269},[125,818,819],{},"        HttpRequest req = new HttpRequest();\n",[125,821,822],{"class":127,"line":281},[125,823,824],{},"        req.setEndpoint('callout:GitLab_API/api/v4/ai/duo_workflows/workflows');\n",[125,826,827],{"class":127,"line":289},[125,828,829],{},"        req.setMethod('POST');\n",[125,831,832],{"class":127,"line":297},[125,833,834],{},"        req.setHeader('Content-Type', 'application/json');\n",[125,836,837],{"class":127,"line":308},[125,838,839],{},"        req.setBody(JSON.serialize(new Map\u003CString, Object>{\n",[125,841,842],{"class":127,"line":319},[125,843,844],{},"            'project_id'                    => cfg.Project_Id__c,\n",[125,846,847],{"class":127,"line":324},[125,848,849],{},"            'ai_catalog_item_consumer_id'   => cfg.Consumer_Id__c.intValue(),\n",[125,851,852],{"class":127,"line":332},[125,853,854],{},"            'goal'                          => goal,\n",[125,856,857],{"class":127,"line":344},[125,858,859],{},"            'start_workflow'                => true,\n",[125,861,862],{"class":127,"line":355},[125,863,864],{},"            'allow_agent_to_request_user'   => false,\n",[125,866,867],{"class":127,"line":364},[125,868,869],{},"            'agent_privileges'              => new List\u003CInteger>{ 1, 2, 3 },\n",[125,871,872],{"class":127,"line":372},[125,873,874],{},"            'pre_approved_agent_privileges' => new List\u003CInteger>{ 1, 2, 3 }\n",[125,876,877],{"class":127,"line":384},[125,878,879],{},"        }));\n",[125,881,882],{"class":127,"line":390},[125,883,884],{},"        HttpResponse res = new Http().send(req);\n",[125,886,887],{"class":127,"line":396},[125,888,889],{},"        // 201 Created: the response includes web_url, a link to the agent session.\n",[125,891,892],{"class":127,"line":401},[125,893,796],{},[125,895,896],{"class":127,"line":407},[125,897,898],{},"}\n",[12,900,901,902,905],{},"The project ID and consumer ID from Step 2 live in a custom metadata type, ",[111,903,904],{},"Duo_Triage_Setting__mdt",", so you can change them without a deployment.",[12,907,908],{},"Three settings in the request body do the most work:",[50,910,911,919,933],{},[53,912,913,918],{},[618,914,915],{},[111,916,917],{},"allow_agent_to_request_user: false"," means the flow runs to completion without pausing for questions. Nobody is watching a Salesforce error at 2 a.m.",[53,920,921,926,927,932],{},[618,922,923],{},[111,924,925],{},"agent_privileges"," limits the agent to reading files (1), reading GitLab (2), and writing to GitLab (3), which it needs to create the issue. It can't run commands or use Git. ",[57,928,931],{"href":929,"rel":930},"https://docs.gitlab.com/api/duo_agent_platform_flows/#list-all-agent-privileges",[],"List all privileges"," to check the IDs on your instance.",[53,934,935,940],{},[618,936,937],{},[111,938,939],{},"pre_approved_agent_privileges"," repeats the same list, so the flow never stops to wait for tool approval.",[12,942,943],{},"This example leaves out response checks, retries, and tests. Add them before you use it beyond a proof of concept.",[28,945,947],{"id":946},"step-4-start-the-flow-automatically-or-on-demand","Step 4: Start the flow automatically or on demand",[12,949,950,953],{},[618,951,952],{},"Automatically."," Queue the job wherever your code catches and handles an exception:",[116,955,957],{"className":748,"code":956,"language":750,"meta":121,"style":121},"try {\n    OpportunityDiscountService.applyTierDiscount(opportunities);\n} catch (Exception e) {\n    System.enqueueJob(new DuoTriageJob(e, 'OpportunityDiscountService'));\n    // ...your existing error handling\n}\n",[111,958,959,964,969,974,979,984],{"__ignoreMap":121},[125,960,961],{"class":127,"line":128},[125,962,963],{},"try {\n",[125,965,966],{"class":127,"line":143},[125,967,968],{},"    OpportunityDiscountService.applyTierDiscount(opportunities);\n",[125,970,971],{"class":127,"line":154},[125,972,973],{},"} catch (Exception e) {\n",[125,975,976],{"class":127,"line":161},[125,977,978],{},"    System.enqueueJob(new DuoTriageJob(e, 'OpportunityDiscountService'));\n",[125,980,981],{"class":127,"line":170},[125,982,983],{},"    // ...your existing error handling\n",[125,985,986],{"class":127,"line":184},[125,987,898],{},[12,989,990],{},"If the whole transaction is rolled back, Salesforce discards the queued job too, so place the call where your code handles the error and carries on.",[12,992,993,996,997,1000],{},[618,994,995],{},"On demand."," Some teams would rather choose which errors are worth investigating. Wrap the job in an invocable Apex action, label it ",[618,998,999],{},"Ask GitLab Duo to investigate",", and add it to a screen flow that runs as a quick action on the record where you keep errors, such as a log record or a support case. One click in Salesforce, and the issue appears in GitLab a few minutes later.",[28,1002,1004],{"id":1003},"step-5-what-your-team-sees","Step 5: What your team sees",[12,1006,1007],{},"A user saves an Opportunity, an Apex trigger throws, and a few minutes later a new issue appears in the GitLab project. Here is an illustrative example of what the flow writes:",[116,1009,1013],{"className":1010,"code":1011,"language":1012,"meta":121,"style":121},"language-markdown shiki shiki-themes github-light","## [Salesforce error] System.NullPointerException in OpportunityDiscountService\n\nLabel: salesforce-error\n\n### Original error\nAttempt to de-reference a null object\nClass.OpportunityDiscountService.applyTierDiscount: line 48, column 1\nTrigger.OpportunityTrigger: line 12, column 1\n\n### Likely cause\napplyTierDiscount() reads opp.Account.Tier__c without a null check (line 48).\nOpportunities saved without an Account reach this line with opp.Account == null.\n\n### Affected component\nforce-app/main/default/classes/OpportunityDiscountService.cls,\ncalled from OpportunityTrigger (before update).\n\n### Suspect change\nCommit 3f9c2ab, \"Apply tier discount on stage change\", added the Tier__c lookup.\nBefore that commit, the method returned early when AccountId was blank.\n\n### Suggested next step\nRestore the early return for a blank AccountId, or guard the lookup.\nAdd a test that updates an Opportunity with no Account.\n\n### Confidence\nHigh. The stack trace line matches the new code in 3f9c2ab.\n","markdown",[111,1014,1015,1021,1025,1030,1034,1039,1044,1049,1054,1058,1063,1068,1073,1077,1082,1087,1092,1096,1101,1106,1111,1115,1120,1125,1130,1134,1139],{"__ignoreMap":121},[125,1016,1017],{"class":127,"line":128},[125,1018,1020],{"class":1019},"surfw","## [Salesforce error] System.NullPointerException in OpportunityDiscountService\n",[125,1022,1023],{"class":127,"line":143},[125,1024,158],{"emptyLinePlaceholder":157},[125,1026,1027],{"class":127,"line":154},[125,1028,1029],{"class":135},"Label: salesforce-error\n",[125,1031,1032],{"class":127,"line":161},[125,1033,158],{"emptyLinePlaceholder":157},[125,1035,1036],{"class":127,"line":170},[125,1037,1038],{"class":1019},"### Original error\n",[125,1040,1041],{"class":127,"line":184},[125,1042,1043],{"class":135},"Attempt to de-reference a null object\n",[125,1045,1046],{"class":127,"line":195},[125,1047,1048],{"class":135},"Class.OpportunityDiscountService.applyTierDiscount: line 48, column 1\n",[125,1050,1051],{"class":127,"line":206},[125,1052,1053],{"class":135},"Trigger.OpportunityTrigger: line 12, column 1\n",[125,1055,1056],{"class":127,"line":214},[125,1057,158],{"emptyLinePlaceholder":157},[125,1059,1060],{"class":127,"line":228},[125,1061,1062],{"class":1019},"### Likely cause\n",[125,1064,1065],{"class":127,"line":239},[125,1066,1067],{"class":135},"applyTierDiscount() reads opp.Account.Tier__c without a null check (line 48).\n",[125,1069,1070],{"class":127,"line":251},[125,1071,1072],{"class":135},"Opportunities saved without an Account reach this line with opp.Account == null.\n",[125,1074,1075],{"class":127,"line":261},[125,1076,158],{"emptyLinePlaceholder":157},[125,1078,1079],{"class":127,"line":269},[125,1080,1081],{"class":1019},"### Affected component\n",[125,1083,1084],{"class":127,"line":281},[125,1085,1086],{"class":135},"force-app/main/default/classes/OpportunityDiscountService.cls,\n",[125,1088,1089],{"class":127,"line":289},[125,1090,1091],{"class":135},"called from OpportunityTrigger (before update).\n",[125,1093,1094],{"class":127,"line":297},[125,1095,158],{"emptyLinePlaceholder":157},[125,1097,1098],{"class":127,"line":308},[125,1099,1100],{"class":1019},"### Suspect change\n",[125,1102,1103],{"class":127,"line":319},[125,1104,1105],{"class":135},"Commit 3f9c2ab, \"Apply tier discount on stage change\", added the Tier__c lookup.\n",[125,1107,1108],{"class":127,"line":324},[125,1109,1110],{"class":135},"Before that commit, the method returned early when AccountId was blank.\n",[125,1112,1113],{"class":127,"line":332},[125,1114,158],{"emptyLinePlaceholder":157},[125,1116,1117],{"class":127,"line":344},[125,1118,1119],{"class":1019},"### Suggested next step\n",[125,1121,1122],{"class":127,"line":355},[125,1123,1124],{"class":135},"Restore the early return for a blank AccountId, or guard the lookup.\n",[125,1126,1127],{"class":127,"line":364},[125,1128,1129],{"class":135},"Add a test that updates an Opportunity with no Account.\n",[125,1131,1132],{"class":127,"line":372},[125,1133,158],{"emptyLinePlaceholder":157},[125,1135,1136],{"class":127,"line":384},[125,1137,1138],{"class":1019},"### Confidence\n",[125,1140,1141],{"class":127,"line":390},[125,1142,1143],{"class":135},"High. The stack trace line matches the new code in 3f9c2ab.\n",[12,1145,1146],{},"Nothing in Salesforce or the codebase changed. The flow did the first round of investigation and left the decision to an engineer: fix it now, schedule it, or close it as expected behavior.",[12,1148,1149,1150,1153],{},"The Flows API response includes a ",[111,1151,1152],{},"web_url"," for the agent session. Open it to see each step the flow took, which is the fastest way to tune the prompt.",[28,1155,1157],{"id":1156},"guardrails","Guardrails",[12,1159,1160],{},"If you take this pattern further, check these points first.",[50,1162,1163,1169,1175,1181],{},[53,1164,1165,1168],{},[618,1166,1167],{},"Send the shape of the error, not the data."," Strip record IDs, emails, and free text that may hold customer data from the message before it leaves Salesforce. Review what the goal contains with your security team before you turn this on.",[53,1170,1171,1174],{},[618,1172,1173],{},"Grant the fewest privileges."," Reading files, reading GitLab, and creating an issue are enough. Expand the flow, for example to open merge requests, only after it has earned trust with accurate analysis.",[53,1176,1177,1180],{},[618,1178,1179],{},"Scope the token."," Use a project access token for one project, not a personal token, and rotate it on a schedule.",[53,1182,1183,1186],{},[618,1184,1185],{},"Keep a person in charge."," The flow investigates; an engineer decides. Citations in every issue let the engineer verify the reasoning instead of redoing it.",[28,1188,1190],{"id":1189},"one-platform-from-error-to-fix","One platform, from error to fix",[12,1192,1193],{},"Follow that error from start to finish:",[50,1195,1196,1202,1208],{},[53,1197,1198,1201],{},[618,1199,1200],{},"GitLab Duo investigates it."," The flow reads the stack trace, finds the code, and points to the change that most likely caused the error.",[53,1203,1204,1207],{},[618,1205,1206],{},"A GitLab issue tracks it."," The analysis becomes work the team can label, prioritize, assign, and plan into a milestone, like any other issue.",[53,1209,1210,1213],{},[618,1211,1212],{},"GitLab CI/CD runs it and ships the fix."," The flow itself runs on GitLab CI/CD, and so does your Salesforce deployment pipeline. An engineer opens a merge request from the issue, the pipeline validates and deploys the change to Salesforce, and the issue closes when the merge request merges.",[12,1215,1216],{},"Because every step happens in GitLab, the trail stays connected. The issue links to the merge request, the merge request to its pipeline, and the pipeline to the deployment. Anyone can see what broke, why, who fixed it, and when the fix reached production.",[28,1218,1220],{"id":1219},"beyond-salesforce-errors","Beyond Salesforce errors",[12,1222,1223],{},"Strip away the Salesforce details and the pattern is simple: a business system makes one HTTP call, and a custom GitLab Duo flow that knows your code does the investigation. Any system that can send a request can start a flow.",[12,1225,1226],{},"Here are a few ideas for where the same pattern could help:",[50,1228,1229,1232,1235],{},[53,1230,1231],{},"A failed sync in an ERP integration, traced to the mapping code that last changed.",[53,1233,1234],{},"A support case tagged \"possible bug,\" checked against recent releases before it reaches an engineer.",[53,1236,1237],{},"A failed scheduled data job, matched to the last change in its pipeline definition.",[12,1239,1240],{},"For DevSecOps teams, this means errors from the business systems they support arrive as issues with a likely cause attached, not as raw logs to trace manually. Business teams don't need to learn GitLab, and engineers don't need to watch another dashboard. Each system keeps doing its job, and GitLab Duo Agent Platform gives engineering a head start every time something breaks.",[28,1242,1244],{"id":1243},"try-it-yourself","Try it yourself",[12,1246,1247,1248,1253,1254,1259],{},"Pick one business system your team supports and one error it logs today. Give a custom flow the code, call it from that system, and see what the first analysis tells you. Start a ",[57,1249,1252],{"href":1250,"rel":1251},"https://about.gitlab.com/gitlab-duo-agent-platform/",[],"free trial of GitLab Duo Agent Platform",", or if you're already on GitLab Premium or Ultimate, ",[57,1255,1258],{"href":1256,"rel":1257},"https://docs.gitlab.com/user/duo_agent_platform/turn_on_off/",[],"turn on Duo Agent Platform"," and build your first custom flow.",[12,1261,1262],{},[618,1263,1264],{},"Further reading",[50,1266,1267,1272,1278,1284,1290],{},[53,1268,1269],{},[57,1270,61],{"href":59,"rel":1271},[],[53,1273,1274],{},[57,1275,1277],{"href":73,"rel":1276},[],"Custom flows",[53,1279,1280],{},[57,1281,1283],{"href":106,"rel":1282},[],"Custom flow YAML schema",[53,1285,1286],{},[57,1287,1289],{"href":672,"rel":1288},[],"Composite identity",[53,1291,1292],{},[57,1293,1296],{"href":1294,"rel":1295},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-complete-getting-started-guide/",[],"GitLab Duo Agent Platform: complete getting started guide",[1298,1299,1300],"style",{},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .surfw, html code.shiki .surfw{--shiki-default:#005CC5;--shiki-default-font-weight:bold}",{"title":121,"searchDepth":143,"depth":143,"links":1302},[1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313],{"id":30,"depth":143,"text":31},{"id":47,"depth":143,"text":48},{"id":91,"depth":143,"text":92},{"id":639,"depth":143,"text":640},{"id":720,"depth":143,"text":721},{"id":946,"depth":143,"text":947},{"id":1003,"depth":143,"text":1004},{"id":1156,"depth":143,"text":1157},{"id":1189,"depth":143,"text":1190},{"id":1219,"depth":143,"text":1220},{"id":1243,"depth":143,"text":1244},"ai","2026-10-27","Learn how to call a custom GitLab flow from Salesforce so every error arrives as a GitLab issue with root-cause analysis, ready to fix and deploy.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1789480051/yl5u9r9o48evmmdjiygl.png",{},"/en-us/blog/extend-gitlab-duo-agent-platform-into-your-business-systems",{"config":1324,"title":5,"description":1316},{"noIndex":1319},"extend-gitlab-duo-agent-platform-into-your-business-systems","en-us/blog/extend-gitlab-duo-agent-platform-into-your-business-systems",[620,1328,1329],"tutorial","integrations","BlogPost","r2IsS2cFQJEqbTonN0xrn3dlGGnbjVYcyyowv2kUuak",{"logo":1333,"freeTrial":1338,"sales":1343,"login":1348,"items":1353,"search":1689,"minimal":1720,"duo":1739,"switchNav":1748,"pricingDeployment":1759},{"config":1334},{"href":1335,"dataGaName":1336,"dataGaLocation":1337},"/","gitlab logo","header",{"text":1339,"config":1340},"Get free trial",{"href":1341,"dataGaName":1342,"dataGaLocation":1337},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1344,"config":1345},"Request a demo",{"href":1346,"dataGaName":1347,"dataGaLocation":1337},"/request-a-demo/","sales",{"text":1349,"config":1350},"Sign in",{"href":1351,"dataGaName":1352,"dataGaLocation":1337},"https://gitlab.com/users/sign_in/","sign in",[1354,1440,1528,1533,1613,1667],{"text":1355,"left":157,"config":1356,"menu":1358},"Platform",{"dataNavLevelOne":1357},"platform",{"type":1359,"link":1360,"columns":1364,"feature":1429},"lists",{"text":1361,"config":1362},"Explore the Platform",{"href":1363,"dataGaName":1357,"dataGaLocation":1337},"/platform/",[1365,1388,1411],{"title":1366,"items":1367},"DevOps",[1368,1373,1378,1383],{"text":1369,"config":1370},"CI/CD",{"href":1371,"dataGaLocation":1337,"dataGaName":1372},"/solutions/continuous-integration/","ci/cd",{"text":1374,"config":1375},"Source Code Management",{"href":1376,"dataGaLocation":1337,"dataGaName":1377},"/solutions/source-code-management/","source code management",{"text":1379,"config":1380},"Agile Delivery",{"href":1381,"dataGaLocation":1337,"dataGaName":1382},"/solutions/agile-delivery/","agile delivery",{"text":1384,"config":1385},"Artifact Management",{"href":1386,"dataGaLocation":1337,"dataGaName":1387},"/artifact-central/","artifact management",{"title":1389,"items":1390},"Security & Governance",[1391,1396,1401,1406],{"text":1392,"config":1393},"Application Security Testing",{"href":1394,"dataGaLocation":1337,"dataGaName":1395},"/solutions/application-security-testing/","application security testing",{"text":1397,"config":1398},"Governance & Compliance",{"href":1399,"dataGaLocation":1337,"dataGaName":1400},"/solutions/software-compliance/","governance and compliance",{"text":1402,"config":1403},"Secrets Management",{"href":1404,"dataGaLocation":1337,"dataGaName":1405},"/gitlab-secrets-manager/","secrets management",{"text":1407,"config":1408},"Supply Chain Security",{"href":1409,"dataGaLocation":1337,"dataGaName":1410},"/solutions/supply-chain/","supply chain security",{"title":1412,"items":1413},"Agentic AI & Context",[1414,1419,1424],{"text":1415,"config":1416},"Duo Agent Platform",{"href":1417,"dataGaLocation":1337,"dataGaName":1418},"/gitlab-duo-agent-platform/","duo agent platform",{"text":1420,"config":1421},"Orbit Context Graph",{"href":1422,"dataGaLocation":1337,"dataGaName":1423},"/gitlab-orbit/","orbit",{"text":1425,"config":1426},"Visibility & Measurement",{"href":1427,"dataGaLocation":1337,"dataGaName":1428},"/solutions/visibility-measurement/","visibility and measurement",{"config":1430,"title":1433,"text":1434,"link":1435},{"background":1431,"textColor":1432},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1790185102/o7dn32anqcb6z8dgd3as.jpg')","#000","GitLab Orbit is generally available","Higher agent accuracy, lower token cost",{"text":1436,"config":1437},"Read the announcement",{"href":1438,"dataGaName":1439,"dataGaLocation":1337},"/blog/gitlab-orbit-ga/","orbit ga announcement",{"text":1441,"left":157,"config":1442,"menu":1444},"Solutions",{"dataNavLevelOne":1443},"solutions",{"type":1359,"link":1445,"columns":1449,"feature":1519},{"text":1446,"config":1447},"View all Solutions",{"href":1448,"dataGaName":1443,"dataGaLocation":1337},"/solutions/",[1450,1468,1486],{"title":1451,"items":1452},"Outcomes",[1453,1458,1463],{"text":1454,"config":1455},"DevOps Modernization",{"href":1456,"dataGaLocation":1337,"dataGaName":1457},"/assessments/devops-modernization-assessment/","devops modernization",{"text":1459,"config":1460},"Security Modernization",{"href":1461,"dataGaLocation":1337,"dataGaName":1462},"/assessments/security-modernization-assessment/","security modernization",{"text":1464,"config":1465},"AI Modernization",{"href":1466,"dataGaLocation":1337,"dataGaName":1467},"/assessments/ai-modernization-assessment/","ai modernization",{"title":1469,"items":1470},"By size",[1471,1476,1481],{"text":1472,"config":1473},"Enterprise",{"href":1474,"dataGaLocation":1337,"dataGaName":1475},"/enterprise/","enterprise",{"text":1477,"config":1478},"Small Business",{"href":1479,"dataGaLocation":1337,"dataGaName":1480},"/small-business/","small business",{"text":1482,"config":1483},"Startups",{"href":1484,"dataGaLocation":1337,"dataGaName":1485},"/solutions/startups/","startups",{"title":1487,"items":1488},"Industries",[1489,1494,1499,1504,1509,1514],{"text":1490,"config":1491},"Financial Services",{"href":1492,"dataGaLocation":1337,"dataGaName":1493},"/solutions/finance/","financial services",{"text":1495,"config":1496},"Public Sector",{"href":1497,"dataGaLocation":1337,"dataGaName":1498},"/solutions/public-sector/","public sector",{"text":1500,"config":1501},"Telecommunications",{"href":1502,"dataGaLocation":1337,"dataGaName":1503},"/solutions/telecommunications/","telecommunications",{"text":1505,"config":1506},"Automotive",{"href":1507,"dataGaLocation":1337,"dataGaName":1508},"/solutions/automotive/","automotive",{"text":1510,"config":1511},"Education",{"href":1512,"dataGaLocation":1337,"dataGaName":1513},"/solutions/education/","education",{"text":1515,"config":1516},"Aerospace",{"href":1517,"dataGaLocation":1337,"dataGaName":1518},"/solutions/aerospace/","aerospace",{"config":1520,"title":1521,"text":1522,"link":1523},{"background":1431,"textColor":1432},"GitLab Security Standard","Learn how to harden your software factory and let AI agents earn autonomy, without trading away security.",{"text":1524,"config":1525},"Explore the standard",{"href":1526,"dataGaName":1527,"dataGaLocation":1337},"/gitlab-security-standard/","gitlab security standard",{"text":1529,"config":1530},"Pricing",{"href":1531,"dataGaName":1532,"dataGaLocation":1337,"dataNavLevelOne":1532},"/pricing/","pricing",{"text":1534,"config":1535,"menu":1537},"Resources",{"dataNavLevelOne":1536},"resources",{"type":1359,"link":1538,"columns":1542,"feature":1604},{"text":1539,"config":1540},"View all resources",{"href":1541,"dataGaName":1536,"dataGaLocation":1337},"/resources/",[1543,1576],{"title":1544,"items":1545},"Discover",[1546,1551,1556,1561,1566,1571],{"text":1547,"config":1548},"Docs",{"href":1549,"dataGaName":1550,"dataGaLocation":1337},"https://docs.gitlab.com/","docs",{"text":1552,"config":1553},"University",{"href":1554,"dataGaName":1555,"dataGaLocation":1337},"https://university.gitlab.com/","university",{"text":1557,"config":1558},"Demo Series",{"href":1559,"dataGaName":1560,"dataGaLocation":1337},"/gitlab-technical-demo-series/","demo series",{"text":1562,"config":1563},"Demo Hub",{"href":1564,"dataGaName":1565,"dataGaLocation":1337},"/demo-hub/","demo hub",{"text":1567,"config":1568},"Services",{"href":1569,"dataGaName":1570,"dataGaLocation":1337},"/services/","services",{"text":1572,"config":1573},"Well Architected",{"href":1574,"dataGaName":1575,"dataGaLocation":1337},"/resources/well-architected/","well architected",{"title":1577,"items":1578},"Connect",[1579,1584,1589,1594,1599],{"text":1580,"config":1581},"Blog",{"href":1582,"dataGaName":1583,"dataGaLocation":1337},"/blog/","blog",{"text":1585,"config":1586},"Community",{"href":1587,"dataGaName":1588,"dataGaLocation":1337},"/community/","community",{"text":1590,"config":1591},"Customers",{"href":1592,"dataGaName":1593,"dataGaLocation":1337},"/customers/","customers",{"text":1595,"config":1596},"Partners",{"href":1597,"dataGaName":1598,"dataGaLocation":1337},"/partners/","partners",{"text":1600,"config":1601},"Events",{"href":1602,"dataGaName":1603,"dataGaLocation":1337},"/events/","events",{"config":1605,"title":1606,"text":1607,"link":1608},{"background":1431,"textColor":1432},"What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1609,"config":1610},"Read the latest",{"href":1611,"dataGaName":1612,"dataGaLocation":1337},"/whats-new/","whats new",{"text":1614,"config":1615,"menu":1617},"Company",{"dataNavLevelOne":1616},"company",{"type":1359,"columns":1618},[1619],{"items":1620},[1621,1626,1632,1637,1642,1647,1652,1657,1662],{"text":1622,"config":1623},"About",{"href":1624,"dataGaName":1625,"dataGaLocation":1337},"/company/","about",{"text":1627,"config":1628,"footerGa":1631},"Jobs",{"href":1629,"dataGaName":1630,"dataGaLocation":1337},"/jobs/","jobs",{"dataGaName":1630},{"text":1633,"config":1634},"Press",{"href":1635,"dataGaName":1636,"dataGaLocation":1337},"/press/","press",{"text":1638,"config":1639},"Handbook",{"href":1640,"dataGaName":1641,"dataGaLocation":1337},"https://handbook.gitlab.com/","handbook",{"text":1643,"config":1644},"Leadership",{"href":1645,"dataGaName":1646,"dataGaLocation":1337},"/company/team/e-group/","leadership",{"text":1648,"config":1649},"Investor relations",{"href":1650,"dataGaName":1651,"dataGaLocation":1337},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1653,"config":1654},"Trust Center",{"href":1655,"dataGaName":1656,"dataGaLocation":1337},"/security/","trust center",{"text":1658,"config":1659},"AI Transparency Center",{"href":1660,"dataGaName":1661,"dataGaLocation":1337},"/ai-transparency-center/","ai transparency center",{"text":1663,"config":1664},"Newsletter",{"href":1665,"dataGaName":1666,"dataGaLocation":1337},"/company/contact/#contact-forms","newsletter",{"text":1668,"config":1669,"menu":1670},"Contact us",{"dataNavLevelOne":1616},{"type":1359,"columns":1671},[1672],{"items":1673},[1674,1679,1684],{"text":1675,"config":1676},"Talk to sales",{"href":1677,"dataGaName":1678,"dataGaLocation":1337},"/sales/","talk to sales",{"text":1680,"config":1681},"Support portal",{"href":1682,"dataGaName":1683,"dataGaLocation":1337},"https://support.gitlab.com/hc/en-us","support portal",{"text":1685,"config":1686},"Customer portal",{"href":1687,"dataGaName":1688,"dataGaLocation":1337},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1690,"login":1691,"suggestions":1698},"Close",{"text":1692,"link":1693},"To search repositories and projects, login to",{"text":1694,"config":1695},"gitlab.com",{"href":1351,"dataGaName":1696,"dataGaLocation":1697},"search login","search",{"text":1699,"default":1700},"Suggestions",[1701,1703,1706,1708,1712,1716],{"text":69,"config":1702},{"href":1417,"dataGaName":69,"dataGaLocation":1697},{"text":1704,"config":1705},"Code Suggestions (AI)",{"href":1417,"dataGaName":1704,"dataGaLocation":1697},{"text":1369,"config":1707},{"href":1371,"dataGaName":1369,"dataGaLocation":1697},{"text":1709,"config":1710},"GitLab on AWS",{"href":1711,"dataGaName":1709,"dataGaLocation":1697},"/partners/technology-partners/aws/",{"text":1713,"config":1714},"GitLab on Google Cloud",{"href":1715,"dataGaName":1713,"dataGaLocation":1697},"/partners/technology-partners/google-cloud-platform/",{"text":1717,"config":1718},"Why GitLab?",{"href":1719,"dataGaName":1717,"dataGaLocation":1697},"/why-gitlab/",{"freeTrial":1721,"mobileIcon":1726,"desktopIcon":1731,"secondaryButton":1734},{"text":1722,"config":1723},"Start free trial",{"href":1724,"dataGaName":1342,"dataGaLocation":1725},"https://gitlab.com/-/trials/new/","nav",{"altText":1727,"config":1728},"Gitlab Icon",{"src":1729,"dataGaName":1730,"dataGaLocation":1725},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1727,"config":1732},{"src":1733,"dataGaName":1730,"dataGaLocation":1725},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1735,"config":1736},"Get Started",{"href":1737,"dataGaName":1738,"dataGaLocation":1725},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1740,"mobileIcon":1744,"desktopIcon":1746},{"text":1741,"config":1742},"Learn more about GitLab Duo",{"href":1417,"dataGaName":1743,"dataGaLocation":1725},"gitlab duo",{"altText":1727,"config":1745},{"src":1729,"dataGaName":1730,"dataGaLocation":1725},{"altText":1727,"config":1747},{"src":1733,"dataGaName":1730,"dataGaLocation":1725},{"button":1749,"mobileIcon":1754,"desktopIcon":1756},{"text":1750,"config":1751},"/switch",{"href":1752,"dataGaName":1753,"dataGaLocation":1725},"#contact","switch",{"altText":1727,"config":1755},{"src":1729,"dataGaName":1730,"dataGaLocation":1725},{"altText":1727,"config":1757},{"src":1758,"dataGaName":1730,"dataGaLocation":1725},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1760,"mobileIcon":1765,"desktopIcon":1767},{"text":1761,"config":1762},"Back to pricing",{"href":1531,"dataGaName":1763,"dataGaLocation":1725,"icon":1764},"back to pricing","GoBack",{"altText":1727,"config":1766},{"src":1729,"dataGaName":1730,"dataGaLocation":1725},{"altText":1727,"config":1768},{"src":1733,"dataGaName":1730,"dataGaLocation":1725},{"title":1770,"button":1771,"config":1775},"GitLab Orbit is generally available. Increase agent accuracy and lower token cost",{"text":1436,"config":1772},{"href":1438,"dataGaName":1773,"dataGaLocation":1774},"orbit-ga-banner","global-banner",{"layout":1776,"disabled":1319},"release",{"data":1778},{"text":1779,"config":1780,"items":1785,"minimal":2013},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"twitter":1781,"facebook":1782,"youtube":1783,"linkedin":1784},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1786,1834,1893,1940,1981],{"title":1529,"links":1787,"subMenu":1803},[1788,1793,1798],{"text":1789,"config":1790},"View plans",{"href":1531,"dataGaName":1791,"dataGaLocation":1792},"view plans","footer",{"text":1794,"config":1795},"Why Premium?",{"href":1796,"dataGaName":1797,"dataGaLocation":1792},"/pricing/premium/","why premium",{"text":1799,"config":1800},"Why Ultimate?",{"href":1801,"dataGaName":1802,"dataGaLocation":1792},"/pricing/ultimate/","why ultimate",[1804],{"title":1805,"links":1806},"Contact Us",[1807,1810,1812,1814,1819,1824,1829],{"text":1808,"config":1809},"Contact sales",{"href":1677,"dataGaName":1347,"dataGaLocation":1792},{"text":1680,"config":1811},{"href":1682,"dataGaName":1683,"dataGaLocation":1792},{"text":1685,"config":1813},{"href":1687,"dataGaName":1688,"dataGaLocation":1792},{"text":1815,"config":1816},"Status",{"href":1817,"dataGaName":1818,"dataGaLocation":1792},"https://status.gitlab.com/","status",{"text":1820,"config":1821},"Terms of use",{"href":1822,"dataGaName":1823,"dataGaLocation":1792},"/terms/","terms of use",{"text":1825,"config":1826},"Privacy statement",{"href":1827,"dataGaName":1828,"dataGaLocation":1792},"/privacy/","privacy statement",{"text":1830,"config":1831},"Cookie preferences",{"dataGaName":1832,"dataGaLocation":1792,"id":1833,"isOneTrustButton":157},"cookie preferences","ot-sdk-btn",{"title":1355,"links":1835,"subMenu":1851},[1836,1839,1841,1843,1845,1847],{"text":1837,"config":1838},"Explore the platform",{"href":1363,"dataGaName":1357,"dataGaLocation":1792},{"text":1415,"config":1840},{"href":1417,"dataGaName":1418,"dataGaLocation":1792},{"text":1369,"config":1842},{"href":1371,"dataGaName":1372,"dataGaLocation":1792},{"text":1420,"config":1844},{"href":1422,"dataGaName":1423,"dataGaLocation":1792},{"text":1402,"config":1846},{"href":1404,"dataGaName":1405,"dataGaLocation":1792},{"text":1848,"config":1849},"Why GitLab",{"href":1719,"dataGaName":1850,"dataGaLocation":1792},"why gitlab",[1852],{"title":1853,"links":1854},"Topics",[1855,1859,1864,1868,1873,1878,1883,1888],{"text":1369,"config":1856},{"href":1857,"dataGaName":1858,"dataGaLocation":1792},"/topics/ci-cd/","cicd",{"text":1860,"config":1861},"GitOps",{"href":1862,"dataGaName":1863,"dataGaLocation":1792},"/topics/gitops/","gitops",{"text":1366,"config":1865},{"href":1866,"dataGaName":1867,"dataGaLocation":1792},"/topics/devops/","devops",{"text":1869,"config":1870},"Version Control",{"href":1871,"dataGaName":1872,"dataGaLocation":1792},"/topics/version-control/","version control",{"text":1874,"config":1875},"DevSecOps",{"href":1876,"dataGaName":1877,"dataGaLocation":1792},"/topics/devsecops/","devsecops",{"text":1879,"config":1880},"Cloud Native",{"href":1881,"dataGaName":1882,"dataGaLocation":1792},"/topics/cloud-native/","cloud native",{"text":1884,"config":1885},"AI for Coding",{"href":1886,"dataGaName":1887,"dataGaLocation":1792},"/topics/devops/ai-for-coding/","ai for coding",{"text":1889,"config":1890},"Agentic AI",{"href":1891,"dataGaName":1892,"dataGaLocation":1792},"/topics/agentic-ai/","agentic ai",{"title":1441,"links":1894},[1895,1898,1901,1904,1907,1910,1912,1914,1916,1918,1920,1923,1925,1928,1932,1936],{"text":1896,"config":1897},"DevOps modernization",{"href":1456,"dataGaName":1457,"dataGaLocation":1792},{"text":1899,"config":1900},"Security modernization",{"href":1461,"dataGaName":1462,"dataGaLocation":1792},{"text":1902,"config":1903},"AI modernization",{"href":1466,"dataGaName":1467,"dataGaLocation":1792},{"text":1905,"config":1906},"Financial services",{"href":1492,"dataGaName":1493,"dataGaLocation":1792},{"text":1908,"config":1909},"Public sector",{"href":1497,"dataGaName":1498,"dataGaLocation":1792},{"text":1500,"config":1911},{"href":1502,"dataGaName":1503,"dataGaLocation":1792},{"text":1505,"config":1913},{"href":1507,"dataGaName":1508,"dataGaLocation":1792},{"text":1510,"config":1915},{"href":1512,"dataGaName":1513,"dataGaLocation":1792},{"text":1515,"config":1917},{"href":1517,"dataGaName":1518,"dataGaLocation":1792},{"text":1472,"config":1919},{"href":1474,"dataGaName":1475,"dataGaLocation":1792},{"text":1921,"config":1922},"Small business",{"href":1479,"dataGaName":1480,"dataGaLocation":1792},{"text":1482,"config":1924},{"href":1484,"dataGaName":1485,"dataGaLocation":1792},{"text":1860,"config":1926},{"href":1927,"dataGaName":1863,"dataGaLocation":1792},"/solutions/gitops/",{"text":1929,"config":1930},"Software composition analysis",{"href":1409,"dataGaName":1931,"dataGaLocation":1792},"software composition analysis",{"text":1933,"config":1934},"Value stream management",{"href":1427,"dataGaName":1935,"dataGaLocation":1792},"value stream management",{"text":1937,"config":1938},"All solutions",{"href":1448,"dataGaName":1939,"dataGaLocation":1792},"all solutions",{"title":1534,"links":1941},[1942,1947,1952,1954,1956,1958,1960,1962,1964,1966,1968,1970,1972,1974,1977],{"text":1943,"config":1944},"Install",{"href":1945,"dataGaName":1946,"dataGaLocation":1792},"/install/","install",{"text":1948,"config":1949},"Quick start guides",{"href":1950,"dataGaName":1951,"dataGaLocation":1792},"/get-started/","quick setup checklists",{"text":1547,"config":1953},{"href":1549,"dataGaName":1550,"dataGaLocation":1792},{"text":1552,"config":1955},{"href":1554,"dataGaName":1555,"dataGaLocation":1792},{"text":1557,"config":1957},{"href":1559,"dataGaName":1560,"dataGaLocation":1792},{"text":1562,"config":1959},{"href":1564,"dataGaName":1565,"dataGaLocation":1792},{"text":1567,"config":1961},{"href":1569,"dataGaName":1570,"dataGaLocation":1792},{"text":1580,"config":1963},{"href":1582,"dataGaName":1583,"dataGaLocation":1792},{"text":1585,"config":1965},{"href":1587,"dataGaName":1588,"dataGaLocation":1792},{"text":1590,"config":1967},{"href":1592,"dataGaName":1593,"dataGaLocation":1792},{"text":1595,"config":1969},{"href":1597,"dataGaName":1598,"dataGaLocation":1792},{"text":1600,"config":1971},{"href":1602,"dataGaName":1603,"dataGaLocation":1792},{"text":1663,"config":1973},{"href":1665,"dataGaName":1666,"dataGaLocation":1792},{"text":1975,"config":1976},"What's new",{"href":1611,"dataGaName":1612,"dataGaLocation":1792},{"text":1978,"config":1979},"All resources",{"href":1541,"dataGaName":1980,"dataGaLocation":1792},"all resources",{"title":1614,"links":1982},[1983,1985,1987,1989,1991,1993,1995,1997,1999,2003,2008],{"text":1622,"config":1984},{"href":1624,"dataGaName":1616,"dataGaLocation":1792},{"text":1627,"config":1986},{"href":1629,"dataGaName":1630,"dataGaLocation":1792},{"text":1633,"config":1988},{"href":1635,"dataGaName":1636,"dataGaLocation":1792},{"text":1638,"config":1990},{"href":1640,"dataGaName":1641,"dataGaLocation":1792},{"text":1643,"config":1992},{"href":1645,"dataGaName":1646,"dataGaLocation":1792},{"text":1648,"config":1994},{"href":1650,"dataGaName":1651,"dataGaLocation":1792},{"text":1653,"config":1996},{"href":1655,"dataGaName":1656,"dataGaLocation":1792},{"text":1658,"config":1998},{"href":1660,"dataGaName":1661,"dataGaLocation":1792},{"text":2000,"config":2001},"Sustainability",{"href":2002,"dataGaName":2000,"dataGaLocation":1792},"/sustainability/",{"text":2004,"config":2005},"Diversity, inclusion and belonging (DIB)",{"href":2006,"dataGaName":2007,"dataGaLocation":1792},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":2009,"config":2010},"Modern Slavery Transparency Statement",{"href":2011,"dataGaName":2012,"dataGaLocation":1792},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":2014},[2015,2018,2021],{"text":2016,"config":2017},"Terms",{"href":1822,"dataGaName":1823,"dataGaLocation":1792},{"text":2019,"config":2020},"Cookies",{"dataGaName":1832,"dataGaLocation":1792,"id":1833,"isOneTrustButton":157},{"text":2022,"config":2023},"Privacy",{"href":1827,"dataGaName":1828,"dataGaLocation":1792},[2025],{"id":2026,"title":7,"body":1318,"config":2027,"content":2029,"description":1318,"extension":2032,"meta":2033,"navigation":157,"path":2034,"seo":2035,"stem":2036,"__hash__":2037},"blogAuthors/en-us/blog/authors/harshit-bhandari.yml",{"template":2028},"BlogAuthor",{"name":7,"config":2030},{"headshot":2031},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1793028052/lgrcu3sxswh8oo4bttts.jpg","yml",{},"/en-us/blog/authors/harshit-bhandari",{},"en-us/blog/authors/harshit-bhandari","3-60eJOCJPjNf6gMbzrISAzt5ZapgW2YytmhD8tME4A",[2039,2047,2055],{"title":2040,"description":2041,"heroImage":2042,"category":1314,"date":2043,"authors":2044,"slug":2046,"externalUrl":1318},"Turn Jira tickets into GitLab merge requests with Duo Agent Platform","Learn how to build a custom Jira agent with GitLab Duo Agent Platform to manage your tickets and turn them into merge requests.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774028474/bvfgeoiz0pijij3ow7vd.png","2026-11-12",[2045],"Itzik Gan Baruch","jira-ticket-to-gitlab-mr-with-duo-agent-platform",{"title":2048,"description":2049,"heroImage":2050,"category":1314,"date":2051,"authors":2052,"slug":2054,"externalUrl":1318},"How to design a decision-grade pilot for agentic AI","A practical framework for deciding when agentic AI can safely act in your software lifecycle, using workflow evidence, risk-based thresholds, and governance.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774957323/xfnzvlwc4c2vhal3v3jv.png","2026-11-09",[2053],"Nina Sesti","how-to-develop-a-decision-grade-ai-pilot",{"title":2056,"description":2057,"heroImage":2058,"category":1314,"date":2059,"authors":2060,"slug":2062,"externalUrl":1318},"The Pentagon wants to know who checks code when AI writes it","Learn what Department of War Instruction 8430.01 asks of AI-assisted software delivery, and how GitLab keeps AI code traceable and verified.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1776347152/unw3mzatkd5xyfbzcnni.png","2026-11-06",[2061],"Elisabeth Burrows","department-of-war-instruction-for-ai-generated-code",{"header":2064,"text":2065,"button":2069,"disclaimer":2072},"Start your free\n\n30-day GitLab trial\n",[2066,2067,2068],"GitLab Duo Agent Platform access","Try our most advanced features","Automate complex tasks with AI",{"text":1339,"config":2070},{"href":2071,"dataGaName":1342,"dataGaLocation":1583},"https://gitlab.com/-/trials/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/blog/","No credit card required.",{"header":2074,"blurb":2075,"button":2076,"secondaryButton":2081},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":2077,"config":2078},"Get your free trial",{"href":2079,"dataGaName":1342,"dataGaLocation":2080},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1808,"config":2082},{"href":1677,"dataGaName":1347,"dataGaLocation":2080},1794911775837]