The SDK as a plain typed API client - the shape of a cron job or data sync.
Uses: Python SDK · CLI
Not everything needs an agent. The simplest use of the SDK is as a typed API client: resolve a connection, execute a tool, use the output.
from engini import Enginiclient = Engini() # reads ENGINI_API_KEYconn_id = next(c.connection_id for c in client.connections.list(application="salesforce"))result = client.tools.execute( "salesforce_getrecords", {"sobject": "Account"}, connection_id=conn_id)accounts = result.output or []print(f"{len(accounts)} accounts (history {result.history_id}):")for account in accounts[:10]: print(f" - {account.get('Name')} [{account.get('Id')}]")
That’s a complete export script. Wrap it in your scheduler of choice, add typed error handling for retries on EnginiRateLimitError, and you have a production sync.The same thing from the CLI:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Engini Docs","colors":{"primary":"#5533FF","light":"#D4CCFD","dark":"#0C0C0C"},"logo":{"light":"https://mintcdn.com/engini/AklLlExJ3eAXOGtW/logo/engini-lockup-light.svg?fit=max\u0026auto=format\u0026n=AklLlExJ3eAXOGtW\u0026q=85\u0026s=c0debedd989ac1aae7434afcf8929a79","dark":"https://mintcdn.com/engini/AklLlExJ3eAXOGtW/logo/engini-lockup-dark.svg?fit=max\u0026auto=format\u0026n=AklLlExJ3eAXOGtW\u0026q=85\u0026s=21df93b2081ea3e02ddd60b93533ee87"},"favicon":{"light":"https://mintcdn.com/engini/i8sQTvfL0BFarJoA/logo/favicon-light-theme.png?fit=max\u0026auto=format\u0026n=i8sQTvfL0BFarJoA\u0026q=85\u0026s=cd4460dad6b41e8f324c74cb2cdaefcf","dark":"https://mintcdn.com/engini/i8sQTvfL0BFarJoA/logo/favicon-dark-theme.png?fit=max\u0026auto=format\u0026n=i8sQTvfL0BFarJoA\u0026q=85\u0026s=b68510adf1642927b33d448bcb7bbae2"},"navbar":{"links":[{"href":"/help/getting-started/what-is-engini","label":"Help Center"},{"href":"/developers","label":"Developers"},{"href":"mailto:support@engini.io","label":"Support"}],"primary":{"type":"button","label":"Open engini","href":"https://app.engini.io"}},"footer":{"socials":{"website":"https://engini.ai","github":"https://github.com/engini"}},"fonts":{"heading":{"family":"Space Grotesk"},"body":{"family":"Inter"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"engini","hasAudioNarration":false,"actualSubdomain":"engini","customDomains":["docs.engini.ai"],"gitSource":{"type":"github","owner":"engini","repo":"engini-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6afeb1f945f7499c2565e8cb","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"default","tag":"Help Center","count":158},{"language":"default","tag":"Apps","count":142},{"language":"default","tag":"Developers","count":140},{"language":"default","tag":"API Reference","count":90},{"language":"default","tag":"Endpoints","count":89},{"language":"default","tag":"Guides","count":39},{"language":"default","tag":"Release Notes","count":35},{"language":"default","tag":"Tutorials","count":26},{"language":"default","tag":"Connections","count":23},{"language":"default","tag":"Triggers","count":22}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"#topbar-cta-button>a::before{content:\"\";position:relative;z-index:10;display:block;flex:none;width:1.15em;height:1.15em;margin-right:0.4em;background-color:#ffffff;-webkit-mask:url(\"/logo/engini-symbol-mono.svg\") no-repeat center / contain;mask:url(\"/logo/engini-symbol-mono.svg\") no-repeat center / contain}.dark #topbar-cta-button>a>span{background-color:#5533ff}[data-component-part=\"products-selector-trigger\"]{display:none}@media (min-width: 1024px){#navbar div:has(>nav[aria-label=\"Main\"]),#navbar nav[aria-label=\"Main\"],#navbar nav[aria-label=\"Main\"]>ul{display:contents}#navbar div:has(>[data-component-part=\"products-selector-trigger\"]){flex:none}#navbar nav[aria-label=\"Main\"] li,#navbar div:has(>#theme-preference-menu-trigger){order:3}#navbar nav[aria-label=\"Main\"] li:has(>a[href=\"/help/getting-started/what-is-engini\"]),#navbar nav[aria-label=\"Main\"] li:has(>a[href=\"/developers\"]){order:1}#navbar nav[aria-label=\"Main\"] li:has(>a[href=\"/developers\"]){margin-right:0}#navbar div:has(>#search-bar-entry){order:2;flex:0 1 26rem;margin-inline:auto}}body:not(:has(#engini-home)) #navbar:has(a[aria-current=\"location\"][href^=\"/help\"]) nav[aria-label=\"Main\"] a[href=\"/help/getting-started/what-is-engini\"],body:not(:has(#engini-home)) #navbar:has(a[aria-current=\"location\"][href^=\"/developers\"]) nav[aria-label=\"Main\"] a[href=\"/developers\"]{color:rgb(var(--primary))}:is(.dark) body:not(:has(#engini-home)) #navbar:has(a[aria-current=\"location\"][href^=\"/help\"]) nav[aria-label=\"Main\"] a[href=\"/help/getting-started/what-is-engini\"],:is(.dark) body:not(:has(#engini-home)) #navbar:has(a[aria-current=\"location\"][href^=\"/developers\"]) nav[aria-label=\"Main\"] a[href=\"/developers\"]{color:rgb(var(--primary-light))}body:has(#engini-home) #navbar div:has(>.nav-tabs){display:none}body:has(#engini-home):has(#navbar div>.nav-tabs){--topbar-tabs-height: 0rem}"}]}
{"page":{"pagePath":"developers/cookbook/scripted-automation","slug":"/developers/cookbook/scripted-automation","pageMetadata":{"title":"Scripted automation (no LLM)","description":"The SDK as a plain typed API client - the shape of a cron job or data sync.","href":"/developers/cookbook/scripted-automation"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"The SDK as a plain typed API client - the shape of a cron job or data sync.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Info}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Info)_missingMdxReference(`Info`,true);return _jsxs(_Fragment,{children:[_jsxs(Info,{children:[_jsx(_components.strong,{children:`Uses:`}),` Python SDK · CLI`]}),`\n`,_jsx(_components.p,{children:`Not everything needs an agent. The simplest use of the SDK is as a typed API client: resolve a connection, execute a tool, use the output.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`13`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` engini `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Engini`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`client `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` Engini() `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# reads ENGINI_API_KEY`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conn_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` next`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(c.connection_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` c `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.connections.list(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`application`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"salesforce\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`))`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.tools.execute(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"salesforce_getrecords\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sobject\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Account\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`connection_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`conn_id`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`accounts `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result.output `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`or`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` []`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(accounts)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` accounts (history `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result.history_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`):\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` account `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` accounts[:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\" - `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`account.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Name'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` [`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`account.get(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`]\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`That’s a complete export script. Wrap it in your scheduler of choice, add `,_jsx(_components.a,{href:`/developers/sdk/errors-pagination`,children:`typed error handling`}),` for retries on `,_jsx(_components.code,{children:`EnginiRateLimitError`}),`, and you have a production sync.`]}),`\n`,_jsx(_components.p,{children:`The same thing from the CLI:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`engini`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tools`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` call`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` salesforce_getrecords`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --args`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"sobject\":\"Account\"}'`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --connection`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` jq`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '.output | length'`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Source: `,_jsx(_components.a,{href:`https://github.com/engini/engini-sdk/blob/main/python/examples/salesforce_export.py`,children:_jsx(_components.code,{children:`python/examples/salesforce_export.py`})}),` (`,_jsx(_components.code,{children:`uv run salesforce_export.py`}),`).`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Scripted automation (no LLM)","description":"The SDK as a plain typed API client - the shape of a cron job or data sync.","href":"/developers/cookbook/scripted-automation"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/engini/4837fd513836c58c/posthog.js"],"subdomain":"engini","siteName":"Engini Docs","title":"Scripted automation (no LLM) - Engini Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-08T10:39:34.277Z","originalFileLocation":"developers/cookbook/scripted-automation.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"The SDK as a plain typed API client - the shape of a cron job or data sync.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Engini Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Scripted automation (no LLM) - Engini Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"The SDK as a plain typed API client - the shape of a cron job or data sync.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Engini Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.engini.ai/developers/cookbook/scripted-automation\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://engini.mintlify.site/_mintlify/api/og/v2?division=Automate\u0026amp;title=Scripted+automation+%28no+LLM%29\u0026amp;description=The+SDK+as+a+plain+typed+API+client+-+the+shape+of+a+cron+job+or+data+sync.\u0026amp;theme=83bfac60ebabbb324d46e845\u0026amp;signature=f8693ad4be827b4ba38e480e2ad755a543858c87809863dda2ee89be0e481c9c\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Scripted automation (no LLM) - Engini Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"The SDK as a plain typed API client - the shape of a cron job or data sync.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://engini.mintlify.site/_mintlify/api/og/v2?division=Automate\u0026amp;title=Scripted+automation+%28no+LLM%29\u0026amp;description=The+SDK+as+a+plain+typed+API+client+-+the+shape+of+a+cron+job+or+data+sync.\u0026amp;theme=83bfac60ebabbb324d46e845\u0026amp;signature=f8693ad4be827b4ba38e480e2ad755a543858c87809863dda2ee89be0e481c9c\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/engini/o6JYIjfH8wvKkeNu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Engini Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5533FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.engini.ai/developers/cookbook/scripted-automation\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/developers/cookbook/scripted-automation.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.engini.ai/#organization\",\"name\":\"Engini Docs\",\"url\":\"https://docs.engini.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/engini/AklLlExJ3eAXOGtW/logo/engini-lockup-light.svg?fit=max\u0026auto=format\u0026n=AklLlExJ3eAXOGtW\u0026q=85\u0026s=c0debedd989ac1aae7434afcf8929a79\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.engini.ai#website\",\"name\":\"Engini Docs\",\"url\":\"https://docs.engini.ai\",\"publisher\":{\"@id\":\"https://docs.engini.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.engini.ai/developers/cookbook/scripted-automation#webpage\",\"url\":\"https://docs.engini.ai/developers/cookbook/scripted-automation\",\"name\":\"Scripted automation (no LLM)\",\"description\":\"The SDK as a plain typed API client - the shape of a cron job or data sync.\",\"dateModified\":\"2026-10-08T10:39:34.277Z\",\"isPartOf\":{\"@id\":\"https://docs.engini.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.engini.ai/developers/cookbook/scripted-automation#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.engini.ai/developers/cookbook/scripted-automation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Automate\",\"item\":\"https://docs.engini.ai/developers/cookbook/cli-walkthrough\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Scripted automation (no LLM)\",\"item\":\"https://docs.engini.ai/developers/cookbook/scripted-automation\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.engini.ai/developers/cookbook/scripted-automation#article\",\"headline\":\"Scripted automation (no LLM)\",\"name\":\"Scripted automation (no LLM)\",\"description\":\"The SDK as a plain typed API client - the shape of a cron job or data sync.\",\"url\":\"https://docs.engini.ai/developers/cookbook/scripted-automation\",\"mainEntityOfPage\":{\"@id\":\"https://docs.engini.ai/developers/cookbook/scripted-automation#webpage\"},\"dateModified\":\"2026-10-08T10:39:34.277Z\",\"publisher\":{\"@id\":\"https://docs.engini.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.engini.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Engini Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Engini Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/developers/cookbook/scripted-automation.md","siteName":"Engini Docs","nav":{"global":null,"products":[{"product":"Help Center","icon":"circle-question","description":"Use Engini","pages":[{"title":"Help Center","href":"/help/getting-started/what-is-engini"}]},{"product":"Developers","icon":"code","description":"Build on Engini","tabs":[{"tab":"Get Started","pages":[{"title":"Get Started","href":"/developers"}]},{"tab":"Cookbook","groups":[{"group":"Start here","pages":[{"title":"Cookbook","href":"/developers/cookbook"}]},{"group":"Connect apps","pages":[{"title":"Connect a customer's app (OAuth)","href":"/developers/cookbook/connect-customer-app"},{"title":"Sync a database connection's objects","href":"/developers/cookbook/sync-database-objects"}]},{"group":"Run tools","pages":[{"title":"REST API walkthrough (cURL)","href":"/developers/cookbook/rest-api-walkthrough"},{"title":"Page through a large catalog","href":"/developers/cookbook/page-through-large-catalog"},{"title":"Debug a failed tool call","href":"/developers/cookbook/debug-failed-tool-call"}]},{"group":"Build agents","pages":[{"title":"Scope an agent with a toolset","href":"/developers/cookbook/scope-agent-toolset"},{"title":"Build a monday.com assistant","href":"/developers/cookbook/build-monday-assistant"},{"title":"Build a Slack assistant","href":"/developers/cookbook/build-slack-assistant"},{"title":"Gmail agent with file attachments","href":"/developers/cookbook/gmail-agent-attachments"},{"title":"Automate GitHub from an agent or a pipeline","href":"/developers/cookbook/automate-github"},{"title":"Priority ERP assistant","href":"/developers/cookbook/priority-erp-assistant"}]},{"group":"React to events","pages":[{"title":"Receive trigger events on a webhook","href":"/developers/cookbook/receive-trigger-events-webhook"},{"title":"Debug and replay a failed delivery","href":"/developers/cookbook/debug-replay-failed-delivery"},{"title":"Develop a trigger locally","href":"/developers/cookbook/develop-trigger-locally"}]},{"group":"Automate","pages":[{"title":"CLI walkthrough (human \u0026 agent)","href":"/developers/cookbook/cli-walkthrough"},{"title":"Run Engini in CI/CD","href":"/developers/cookbook/run-engini-ci-cd"},{"title":"Sync CRM data on a schedule","href":"/developers/cookbook/sync-crm-data-schedule"},{"title":"Work with large tool results","description":"Drill into a big payload with handles, dot-paths and projections - instead of paying for all of it.","href":"/developers/cookbook/large-tool-results"},{"title":"Scripted automation (no LLM)","href":"/developers/cookbook/scripted-automation"}]}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/developers/sdk"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/developers/cli"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/developers/api-reference"}]},{"tab":"For AI Agents","pages":[{"title":"For AI Agents","href":"/developers/ai-agents"}]}]}]},"basePath":"","title":"Scripted automation (no LLM) - Engini Docs","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}