Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.
Adding a pre-call API tool and a call transfer tool
1
Open the phase
On the Tools page, pick Pre-call, On-call or Post-call, then click API in the side panel.
2
Name the request
Enter a tool name, the method (GET, POST, PUT, PATCH or DELETE) and your endpoint’s URL. The name is saved as lowercase letters, digits and underscores, so CRM Lookup becomes crm_lookup.
3
Add parameters
Fill the Headers, Path, Query and Body tabs. Each row has a key, a value and a source; a Static row also has a String, Number or Boolean type toggle. + Test value on a Variable, Dynamic or JQ row gives Test API a sample value.The body can be application/json, multipart/form-data or x-www-form-urlencoded. A JSON body has a Pretty form view and an Editor view: “Use @ to insert variables, # to create dynamic values, and `...` for jq expressions inside the JSON editor.” Copy cURL copies the request as a cURL command.
4
Test and shape the response
Click Test API. The Response tab then shows the result and response time (it is not offered for DELETE). Keep only what the agent needs: tick keys in the response, or write a jq transform. On-call outputs are read by the model, and long payloads slow it down.
The Response tab after Test API
5
Set behaviour and save
On the Settings tab, set the timeout and retries (Request settings). Click Add to assistant (Save tool when editing). For an on-call tool, mention it in the prompt.
The tool appears in the phase’s list on the Tools page.
An API tool’s menu has Enable or Disable, Share to workspace (Workspace tools) and Delete.
The call record: id, status, sub_status, call_type, call_category, to_number, from_number, call_duration, transcript, recording_url, retry_count, hangup_source, user_message_count and more. A pre-call tool gets the fields known when the call is set up, such as id, to_number, from_number, agent_id and retry_count, with call_duration at 0. An on-call tool also gets the transcript so far, call_duration and the message counts. call_cost, recording_url, hangup_source and call_category are filled only after the call.
A payment reminder agent for Acme Finance should know the amount due before it says hello.
1
Create the pre-call tool
On Pre-call, click API. Name it crm_lookup, method GET, URL https://crm.example.com/api/customers.
2
Pass the phone number
On Query, add a Variable row with key phone and value custom_args.mobile_number. On Headers, add a Static row Authorization with your CRM token.
3
Keep the useful fields
Click Test API. In Response, tick amount_due, due_date and rm_phone. Add 404 under Block call on status codes so no call goes out for an unknown customer.
4
Use the fields in the prompt
Save, then use the fields in the first message and script:
Hello @{{callee_name}}, this is Riya from Acme Finance. I'm calling about your EMI of ₹@((crm_lookup.amount_due)), due on @((crm_lookup.due_date)).If the caller disputes the amount, use @||call_transfer|| to reach their relationship manager.
A test call opens with the customer’s real amount and due date.
Set the call transfer Target to @((crm_lookup.rm_phone)) and each caller reaches their own manager.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Ringg AI","description":"Build AI agents that make and answer phone calls, talk on your website and chat on WhatsApp, then run them from the Ringg AI dashboard or REST API.","colors":{"primary":"#0A0A0B","light":"#FFFFFF","dark":"#0A0A0B"},"logo":{"light":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/logo/light.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=053f22dbaf5140cd8e5dadb1d4d057cd","dark":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/logo/dark.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=cf9075384ec572e1a19b939d5a8674af","href":"https://www.ringg.ai"},"favicon":"https://mintcdn.com/ringgai-0da73d20/ZLVFI55VhZ4gmYrF/favicon.svg?fit=max\u0026auto=format\u0026n=ZLVFI55VhZ4gmYrF\u0026q=85\u0026s=e612fcf76df43d6468baa340dc3fde50","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","python","javascript"]},"mdx":{"auth":{"method":"key","name":"X-API-KEY"},"server":"https://prod-api.ringg.ai/ca/api/v0"}},"appearance":{"default":"dark"},"background":{"decoration":"grid"},"navbar":{"links":[{"href":"/resources/learn/all-lessons","label":"Learn"},{"href":"mailto:admin@ringg.ai","label":"Contact us"}],"primary":{"type":"button","label":"Dashboard","href":"https://www.ringg.ai/dashboard"}},"footer":{"socials":{"x":"https://x.com/ringg_ai","linkedin":"https://www.linkedin.com/company/ringg","youtube":"https://www.youtube.com/@RinggAI","instagram":"https://www.instagram.com/ringg_ai","discord":"https://discord.gg/YuEnb8Vsca"},"links":[{"header":"For AI agents","items":[{"label":"llms.txt","href":"https://docs.ringg.ai/llms.txt"},{"label":"skill.md","href":"https://docs.ringg.ai/skill.md"},{"label":"OpenAPI spec","href":"https://docs.ringg.ai/api-reference/openapi.json"},{"label":"MCP server","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]}]},"search":{"prompt":"Search the docs"},"seo":{"metatags":{"canonical":"https://docs.ringg.ai","og:site_name":"Ringg AI Docs","twitter:site":"@ringg_ai"},"organization":{"id":"https://www.ringg.ai/#organization","legalName":"Stoic AI Private Limited","url":"https://www.ringg.ai","logo":"https://assets.ringg.ai/images/logo/logo.svg","sameAs":["https://x.com/ringg_ai","https://www.linkedin.com/company/ringg","https://www.youtube.com/@RinggAI","https://www.instagram.com/ringg_ai","https://discord.gg/YuEnb8Vsca"]}},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","latex":false},"errors":{"404":{"redirect":false,"title":"This page doesn't exist","description":"It may have moved in the docs rebuild. The suggestions below usually have it; otherwise start from [the introduction](/get-started/ringg-ai) or search above."}},"contextual":{"options":["copy","view","chatgpt","claude","mcp","download-spec"],"display":"header"},"markdown":{"instructions":["To search or read these docs, connect the Ringg docs MCP server at https://docs.ringg.ai/mcp (no key needed; tools search_ringg_ai and query_docs_filesystem_ringg_ai) instead of browsing pages one by one. Setup for each client: https://docs.ringg.ai/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants.md","The dashboard labels agents \"Assistants\"; these docs say \"agent\". Both mean the same object, identified by agent_id.","API base URL: https://prod-api.ringg.ai/ca/api/v0. Send the workspace API key in the X-API-KEY header, from server-side code only.","Placing a call dials a real phone number and spends credits. Confirm the number with the user before calling.","To act on a Ringg workspace (place calls, edit agents, read transcripts), use the separate Ringg workspace MCP server at https://mcp.ringg.ai/mcp: https://docs.ringg.ai/resources/mcp-server/workspace-mcp-server/overview.md"]},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"ringgai-0da73d20","hasAudioNarration":false,"actualSubdomain":"ringgai-0da73d20","customDomains":["docs.ringg.ai"],"gitSource":{"type":"github","owner":"stonkr","repo":"ringg-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true,"edits":true,"issues":true},"entitlements":{},"buildId":"6adb52e21a579503f2299e23","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Documentation","count":90},{"language":"default","tag":"API reference","count":52},{"language":"default","tag":"Build agents","count":37},{"language":"default","tag":"Resources","count":34},{"language":"default","tag":"Learn","count":27},{"language":"default","tag":"Inventory","count":23},{"language":"default","tag":"Deploy","count":22},{"language":"default","tag":"Customize agent behaviour","count":19},{"language":"default","tag":"Agents","count":17},{"language":"default","tag":"Calling","count":15}],"searchSettings":{"showContentSnippets":true,"maxResults":8}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img.nav-logo{height:1.375rem!important;width:auto!important}.figure-card{display:flex;flex-direction:column;margin:0.5rem 0;overflow:hidden;border:1px solid rgb(10 10 11 / 0.08);border-radius:1rem;background:#ffffff;text-decoration:none!important;transition:border-color 150ms}.figure-card:hover{border-color:rgb(10 10 11 / 0.2)}.dark .figure-card{border-color:rgb(255 255 255 / 0.08);background:rgb(var(--background-dark))}.dark .figure-card:hover{border-color:rgb(255 255 255 / 0.2)}.figure-card-panel{display:flex;justify-content:center;height:12rem;margin:0.375rem 0.375rem 0;border-radius:0.75rem;-webkit-mask-image:linear-gradient(to bottom, #000 62%, transparent);mask-image:linear-gradient(to bottom, #000 62%, transparent);background:#f6f6f7 url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='256' fill='none' stroke='%230a0a0b' stroke-opacity='0.03' stroke-width='1.5'%3E%3Ccircle cx='32' cy='32' r='25'/%3E%3Ccircle cx='96' cy='32' r='25'/%3E%3Crect x='135' y='7' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='32' r='25'/%3E%3Ccircle cx='288' cy='32' r='25'/%3E%3Ccircle cx='352' cy='32' r='25'/%3E%3Ccircle cx='32' cy='96' r='25'/%3E%3Ccircle cx='96' cy='96' r='25'/%3E%3Ccircle cx='160' cy='96' r='25'/%3E%3Ccircle cx='224' cy='96' r='25'/%3E%3Ccircle cx='288' cy='96' r='25'/%3E%3Ccircle cx='352' cy='96' r='25'/%3E%3Ccircle cx='32' cy='160' r='25'/%3E%3Crect x='71' y='135' width='50' height='50' rx='8'/%3E%3Ccircle cx='160' cy='160' r='25'/%3E%3Ccircle cx='224' cy='160' r='25'/%3E%3Crect x='263' y='135' width='50' height='50' rx='8'/%3E%3Crect x='327' y='135' width='50' height='50' rx='8'/%3E%3Crect x='7' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='96' cy='224' r='25'/%3E%3Crect x='135' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='224' r='25'/%3E%3Crect x='263' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='352' cy='224' r='25'/%3E%3C/svg%3E\") center / 192px 128px}.dark .figure-card-panel{background:#0f0f11 url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='384' height='256' fill='none' stroke='%23ffffff' stroke-opacity='0.025' stroke-width='1.5'%3E%3Ccircle cx='32' cy='32' r='25'/%3E%3Ccircle cx='96' cy='32' r='25'/%3E%3Crect x='135' y='7' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='32' r='25'/%3E%3Ccircle cx='288' cy='32' r='25'/%3E%3Ccircle cx='352' cy='32' r='25'/%3E%3Ccircle cx='32' cy='96' r='25'/%3E%3Ccircle cx='96' cy='96' r='25'/%3E%3Ccircle cx='160' cy='96' r='25'/%3E%3Ccircle cx='224' cy='96' r='25'/%3E%3Ccircle cx='288' cy='96' r='25'/%3E%3Ccircle cx='352' cy='96' r='25'/%3E%3Ccircle cx='32' cy='160' r='25'/%3E%3Crect x='71' y='135' width='50' height='50' rx='8'/%3E%3Ccircle cx='160' cy='160' r='25'/%3E%3Ccircle cx='224' cy='160' r='25'/%3E%3Crect x='263' y='135' width='50' height='50' rx='8'/%3E%3Crect x='327' y='135' width='50' height='50' rx='8'/%3E%3Crect x='7' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='96' cy='224' r='25'/%3E%3Crect x='135' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='224' cy='224' r='25'/%3E%3Crect x='263' y='199' width='50' height='50' rx='8'/%3E%3Ccircle cx='352' cy='224' r='25'/%3E%3C/svg%3E\") center / 192px 128px}.figure-card-panel{--hairline-plate: #f6f6f7}.dark .figure-card-panel{--hairline-plate: #0f0f11}.figure-card-panel>[data-hairline]{width:13.75rem}.figure-card-text{flex:1;padding:0.25rem 1.25rem 1.25rem}.figure-card-title{font-weight:600;color:rgb(17 24 39)}.dark .figure-card-title{color:rgb(255 255 255)}.figure-card-body{margin-top:0.25rem;font-size:0.9375rem;line-height:1.6;color:rgb(75 85 99)}.dark .figure-card-body{color:rgb(161 161 170)}"}],"page":{"pagePath":"documentation/build-agents/customize-agent-behaviour/tools/api-tools","slug":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools","pageMetadata":{"title":"API tools","sidebarTitle":"API tools","description":"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.","href":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools"},"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: \"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\"\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`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Check,CodeBlock,Frame,Heading,OptimizedImage,ResponseField,Step,Steps,Table}=_components;if(!Check)_missingMdxReference(`Check`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`add-an-api-tool`,children:`Add an API tool`}),`\n`,_jsx(Frame,{caption:`Adding a pre-call API tool and a call transfer tool`,children:_jsx(`video`,{alt:`Adding a pre-call API tool and a call transfer tool`,\"aria-label\":`Adding a pre-call API tool and a call transfer tool`,controls:true,muted:true,playsInline:true,className:`mint-w-full mint-rounded-xl`,style:{aspectRatio:`16 / 10`},preload:`metadata`,controlsList:`nodownload noremoteplayback`,poster:`/media/agents-tools/poster.webp`,children:_jsx(`source`,{src:`https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/video.webm?fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=e746fa64f67cc224c574dcfd082bf09a`,type:`video/webm; codecs=\"av01.0.09M.08\"`,\"data-path\":`media/agents-tools/video.webm`})})}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Open the phase`,children:_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Tools`}),` page, pick `,_jsx(_components.strong,{children:`Pre-call`}),`, `,_jsx(_components.strong,{children:`On-call`}),` or `,_jsx(_components.strong,{children:`Post-call`}),`, then click `,_jsx(_components.strong,{children:`API`}),` in the side panel.`]})}),_jsx(Step,{title:`Name the request`,children:_jsxs(_components.p,{children:[`Enter a tool name, the method (`,_jsx(_components.strong,{children:`GET`}),`, `,_jsx(_components.strong,{children:`POST`}),`, `,_jsx(_components.strong,{children:`PUT`}),`, `,_jsx(_components.strong,{children:`PATCH`}),` or `,_jsx(_components.strong,{children:`DELETE`}),`) and your endpoint’s URL. The name is saved as lowercase letters, digits and underscores, so `,_jsx(_components.code,{children:`CRM Lookup`}),` becomes `,_jsx(_components.code,{children:`crm_lookup`}),`.`]})}),_jsxs(Step,{title:`Add parameters`,children:[_jsxs(_components.p,{children:[`Fill the `,_jsx(_components.strong,{children:`Headers`}),`, `,_jsx(_components.strong,{children:`Path`}),`, `,_jsx(_components.strong,{children:`Query`}),` and `,_jsx(_components.strong,{children:`Body`}),` tabs. Each row has a key, a value and a `,_jsx(_components.a,{href:`#parameter-sources`,children:`source`}),`; a `,_jsx(_components.strong,{children:`Static`}),` row also has a `,_jsx(_components.strong,{children:`String`}),`, `,_jsx(_components.strong,{children:`Number`}),` or `,_jsx(_components.strong,{children:`Boolean`}),` type toggle. `,_jsx(_components.strong,{children:`+ Test value`}),` on a Variable, Dynamic or JQ row gives `,_jsx(_components.strong,{children:`Test API`}),` a sample value.`]}),_jsxs(_components.p,{children:[`The body can be `,_jsx(_components.code,{children:`application/json`}),`, `,_jsx(_components.code,{children:`multipart/form-data`}),` or `,_jsx(_components.code,{children:`x-www-form-urlencoded`}),`. A JSON body has a `,_jsx(_components.strong,{children:`Pretty`}),` form view and an `,_jsx(_components.strong,{children:`Editor`}),` view: “Use `,_jsx(_components.code,{children:`@`}),` to insert variables, `,_jsx(_components.code,{children:`#`}),` to create dynamic values, and `,_jsx(_components.code,{children:\"`...`\"}),` for jq expressions inside the JSON editor.” `,_jsx(_components.strong,{children:`Copy cURL`}),` copies the request as a cURL command.`]})]}),_jsxs(Step,{title:`Test and shape the response`,children:[_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Test API`}),`. The `,_jsx(_components.strong,{children:`Response`}),` tab then shows the result and response time (it is not offered for DELETE). Keep only what the agent needs: tick keys in the response, or write a jq transform. On-call outputs are read by the model, and long payloads slow it down.`]}),_jsx(Frame,{caption:`The Response tab after Test API`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=eab38e7e46b2ca41dbed15c32e352680`,alt:`New pre-call API tool crm_lookup with GET and a CRM URL, the Response tab showing customer and loan objects with loan ticked, and a response time of 182ms`,\"data-og-width\":`1344`,width:`1344`,\"data-og-height\":`1512`,height:`1512`,\"data-path\":`media/agents-tools/api-tool-response.webp`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=280\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=29fe4fa5bc2af356e7220abf90849f77 280w, https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=560\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=d96a92e8a5b92b904e3301e908368e60 560w, https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=840\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=5b07ff317a2ad722fe92a4b8e18bc718 840w, https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=1100\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=a4f1099f74245a9bf3c7662448e6d5f3 1100w, https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=1650\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=00a5efcf8f98c4f9e1c98f8b1b52088d 1650w, https://mintcdn.com/ringgai-0da73d20/zhzhS2waLZvF8qXk/media/agents-tools/api-tool-response.webp?w=2500\u0026fit=max\u0026auto=format\u0026n=zhzhS2waLZvF8qXk\u0026q=85\u0026s=416b4d5ac27e289ad9eac7d51a3b2ebc 2500w`})})]}),_jsxs(Step,{title:`Set behaviour and save`,children:[_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Settings`}),` tab, set the timeout and retries (`,_jsx(_components.a,{href:`#request-settings`,children:`Request settings`}),`). Click `,_jsx(_components.strong,{children:`Add to assistant`}),` (`,_jsx(_components.strong,{children:`Save tool`}),` when editing). For an on-call tool, `,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/tools/overview#use-on-call-tools-in-the-prompt`,children:`mention it in the prompt`}),`.`]}),_jsx(Check,{children:_jsxs(_components.p,{children:[`The tool appears in the phase’s list on the `,_jsx(_components.strong,{children:`Tools`}),` page.`]})})]})]}),`\n`,_jsxs(_components.p,{children:[`An API tool’s menu has `,_jsx(_components.strong,{children:`Enable`}),` or `,_jsx(_components.strong,{children:`Disable`}),`, `,_jsx(_components.strong,{children:`Share to workspace`}),` (`,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/tools/workspace-tools#workspace-tools`,children:`Workspace tools`}),`) and `,_jsx(_components.strong,{children:`Delete`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`parameter-sources`,children:`Parameter sources`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Source`}),_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Phases`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Static`})}),_jsx(_components.td,{children:`A fixed value, such as an auth header`}),_jsx(_components.td,{children:`All`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Variable`})}),_jsx(_components.td,{children:`A value from the call context, picked from a list`}),_jsx(_components.td,{children:`All`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Dynamic`})}),_jsx(_components.td,{children:`Filled by the agent from the conversation; describe it, such as “Order ID the caller reads out”`}),_jsx(_components.td,{children:`On-call`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`JQ`})}),_jsx(_components.td,{children:`A jq expression over the call context`}),_jsx(_components.td,{children:`All`})]})]})]}),`\n`,_jsx(_components.p,{children:`The call context has these groups:`}),`\n`,_jsx(ResponseField,{name:`custom_args`,type:`object`,id:`param-custom-args`,children:_jsxs(_components.p,{children:[`The agent’s `,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/custom-variables`,children:`custom variables`}),`, such as `,_jsx(_components.code,{children:`callee_name`}),` and `,_jsx(_components.code,{children:`mobile_number`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`call_data`,type:`object`,id:`param-call-data`,children:_jsxs(_components.p,{children:[`The call record: `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`status`}),`, `,_jsx(_components.code,{children:`sub_status`}),`, `,_jsx(_components.code,{children:`call_type`}),`, `,_jsx(_components.code,{children:`call_category`}),`, `,_jsx(_components.code,{children:`to_number`}),`, `,_jsx(_components.code,{children:`from_number`}),`, `,_jsx(_components.code,{children:`call_duration`}),`, `,_jsx(_components.code,{children:`transcript`}),`, `,_jsx(_components.code,{children:`recording_url`}),`, `,_jsx(_components.code,{children:`retry_count`}),`, `,_jsx(_components.code,{children:`hangup_source`}),`, `,_jsx(_components.code,{children:`user_message_count`}),` and more. A pre-call tool gets the fields known when the call is set up, such as `,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`to_number`}),`, `,_jsx(_components.code,{children:`from_number`}),`, `,_jsx(_components.code,{children:`agent_id`}),` and `,_jsx(_components.code,{children:`retry_count`}),`, with `,_jsx(_components.code,{children:`call_duration`}),` at `,_jsx(_components.code,{children:`0`}),`. An on-call tool also gets the transcript so far, `,_jsx(_components.code,{children:`call_duration`}),` and the message counts. `,_jsx(_components.code,{children:`call_cost`}),`, `,_jsx(_components.code,{children:`recording_url`}),`, `,_jsx(_components.code,{children:`hangup_source`}),` and `,_jsx(_components.code,{children:`call_category`}),` are filled only after the call.`]})}),`\n`,_jsx(ResponseField,{name:`tool_output`,type:`object`,id:`param-tool-output`,children:_jsxs(_components.p,{children:[`Fields another tool returned, as `,_jsx(_components.code,{children:`tool_name.field`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`platform_analysis`,type:`object`,id:`param-platform-analysis`,children:_jsxs(_components.p,{children:[`Post-call only. Ringg’s analysis: `,_jsx(_components.code,{children:`summary`}),`, `,_jsx(_components.code,{children:`classification`}),`, `,_jsx(_components.code,{children:`key_points`}),`, `,_jsx(_components.code,{children:`action_items`}),`, `,_jsx(_components.code,{children:`callback_requested`}),`, `,_jsx(_components.code,{children:`callback_requested_time`}),` and more (`,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/webhooks/field-reference#analysis-fields`,children:`Analysis fields`}),`).`]})}),`\n`,_jsx(ResponseField,{name:`client_analysis`,type:`object`,id:`param-client-analysis`,children:_jsxs(_components.p,{children:[`Post-call only. Your `,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/advanced-analysis`,children:`Advanced Analysis`}),` variables.`]})}),`\n`,_jsxs(_components.p,{children:[`In jq, the same groups are `,_jsx(_components.code,{children:`.custom_args`}),`, `,_jsx(_components.code,{children:`.call_data`}),`, `,_jsx(_components.code,{children:`.api_responses.\u003ctool>`}),` (or `,_jsx(_components.code,{children:`.tool_outputs`}),`), `,_jsx(_components.code,{children:`.platform_analysis`}),` and `,_jsx(_components.code,{children:`.client_analysis`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`request-settings`,children:`Request settings`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Values`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Timeout (seconds)`})}),_jsx(_components.td,{children:`Max waiting time for the API’s response, per attempt. Empty means 60 seconds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Retry count`})}),_jsxs(_components.td,{children:[`0 to 10. Retries on timeouts, connection errors, `,_jsx(_components.code,{children:`429`}),`, `,_jsx(_components.code,{children:`500`}),`, `,_jsx(_components.code,{children:`502`}),`, `,_jsx(_components.code,{children:`503`}),` and `,_jsx(_components.code,{children:`504`}),`. Other statuses, such as `,_jsx(_components.code,{children:`404`}),`, are never retried.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Backoff`})}),_jsxs(_components.td,{children:[`Shown when retries are above 0. `,_jsx(_components.strong,{children:`Exponential`}),` (default), `,_jsx(_components.strong,{children:`Linear`}),` or `,_jsx(_components.strong,{children:`Constant`}),`, with `,_jsx(_components.strong,{children:`Initial delay (ms)`}),` (default 500) and `,_jsx(_components.strong,{children:`Max delay (ms)`}),` (default 5000).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Block call on status codes`})}),_jsx(_components.td,{children:`Pre-call only. Codes from 400 to 599 that abort the whole call; other 4xx and 5xx only skip this tool’s data.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Trigger on unanswered calls`})}),_jsx(_components.td,{children:`Post-call only, off by default. Runs the tool when the call isn’t picked up, as long as an attempt was made.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Tool Execution Message`})}),_jsxs(_components.td,{children:[`On-call only. Spoken when the tool triggers, one per `,_jsx(_components.a,{href:`/documentation/build-agents/customize-agent-behaviour/voice-and-language#languages`,children:`agent language`}),`. Empty means silent.`]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example-look-up-the-customer-before-the-call`,children:`Example: look up the customer before the call`}),`\n`,_jsx(_components.p,{children:`A payment reminder agent for Acme Finance should know the amount due before it says hello.`}),`\n`,_jsxs(Steps,{children:[_jsx(Step,{title:`Create the pre-call tool`,children:_jsxs(_components.p,{children:[`On `,_jsx(_components.strong,{children:`Pre-call`}),`, click `,_jsx(_components.strong,{children:`API`}),`. Name it `,_jsx(_components.code,{children:`crm_lookup`}),`, method `,_jsx(_components.strong,{children:`GET`}),`, URL `,_jsx(_components.code,{children:`https://crm.example.com/api/customers`}),`.`]})}),_jsx(Step,{title:`Pass the phone number`,children:_jsxs(_components.p,{children:[`On `,_jsx(_components.strong,{children:`Query`}),`, add a `,_jsx(_components.strong,{children:`Variable`}),` row with key `,_jsx(_components.code,{children:`phone`}),` and value `,_jsx(_components.code,{children:`custom_args.mobile_number`}),`. On `,_jsx(_components.strong,{children:`Headers`}),`, add a `,_jsx(_components.strong,{children:`Static`}),` row `,_jsx(_components.code,{children:`Authorization`}),` with your CRM token.`]})}),_jsx(Step,{title:`Keep the useful fields`,children:_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Test API`}),`. In `,_jsx(_components.strong,{children:`Response`}),`, tick `,_jsx(_components.code,{children:`amount_due`}),`, `,_jsx(_components.code,{children:`due_date`}),` and `,_jsx(_components.code,{children:`rm_phone`}),`. Add `,_jsx(_components.code,{children:`404`}),` under `,_jsx(_components.strong,{children:`Block call on status codes`}),` so no call goes out for an unknown customer.`]})}),_jsxs(Step,{title:`Use the fields in the prompt`,children:[_jsx(_components.p,{children:`Save, then use the fields in the first message and script:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Hello @{{callee_name}}, this is Riya from Acme Finance. I'm calling about your EMI of ₹@((crm_lookup.amount_due)), due on @((crm_lookup.due_date)).`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`If the caller disputes the amount, use @||call_transfer|| to reach their relationship manager.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(Check,{children:_jsxs(_components.p,{children:[`A `,_jsx(_components.a,{href:`/documentation/build-agents/test-and-improve/test-an-agent`,children:`test call`}),` opens with the customer’s real amount and due date.`]})})]})]}),`\n`,_jsxs(_components.p,{children:[`Set the call transfer `,_jsx(_components.strong,{children:`Target`}),` to `,_jsx(_components.code,{children:`@((crm_lookup.rm_phone))`}),` and each caller reaches their own manager.`]})]})}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":"API tools","sidebarTitle":"API tools","description":"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.","href":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Add an API tool","slug":"add-an-api-tool","depth":2,"children":[{"title":"Parameter sources","slug":"parameter-sources","depth":3,"children":[]},{"title":"Request settings","slug":"request-settings","depth":3,"children":[]}]},{"title":"Example: look up the customer before the call","slug":"example-look-up-the-customer-before-the-call","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/ringgai-0da73d20/45c33e65ef05fabf/hairline.js"],"dynamicCss":".mint-w-full {\n width: 100%\n}\n.mint-rounded-xl {\n border-radius: 0.75rem\n}","subdomain":"ringgai-0da73d20","siteName":"Ringg AI","title":"API tools - Ringg AI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-12T09:07:23.985Z","originalFileLocation":"documentation/build-agents/customize-agent-behaviour/tools/api-tools.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=\"dark\"}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=\"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Ringg AI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"API tools - Ringg AI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Ringg AI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://ringgai-0da73d20.mintlify.site/_mintlify/api/og/v2?division=Tools\u0026amp;title=API+tools\u0026amp;description=Add+an+API+tool+to+a+Ringg+AI+agent%3A+call+your+own+endpoint+before%2C+during+or+after+a+call%2C+map+parameters+from+variables+or+the+conversation%2C+and+use+the+respo\u0026amp;theme=737b8671029ef070100737b1\u0026amp;signature=95f26e74e254f7d2ab0253a834e02be2285a0a6a5fee0b8b5d63d4546465fc62\">\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=\"API tools - Ringg AI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://ringgai-0da73d20.mintlify.site/_mintlify/api/og/v2?division=Tools\u0026amp;title=API+tools\u0026amp;description=Add+an+API+tool+to+a+Ringg+AI+agent%3A+call+your+own+endpoint+before%2C+during+or+after+a+call%2C+map+parameters+from+variables+or+the+conversation%2C+and+use+the+respo\u0026amp;theme=737b8671029ef070100737b1\u0026amp;signature=95f26e74e254f7d2ab0253a834e02be2285a0a6a5fee0b8b5d63d4546465fc62\">\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/ringgai-0da73d20/p7P0VdTXwvUPgoLE/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Ringg AI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0A0A0B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/documentation/build-agents/customize-agent-behaviour/tools/api-tools.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.ringg.ai/#organization\",\"name\":\"Ringg AI\",\"legalName\":\"Stoic AI Private Limited\",\"url\":\"https://www.ringg.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.ringg.ai/images/logo/logo.svg\"},\"sameAs\":[\"https://x.com/ringg_ai\",\"https://www.linkedin.com/company/ringg\",\"https://www.youtube.com/@RinggAI\",\"https://www.instagram.com/ringg_ai\",\"https://discord.gg/YuEnb8Vsca\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ringg.ai#website\",\"name\":\"Ringg AI\",\"url\":\"https://docs.ringg.ai\",\"publisher\":{\"@id\":\"https://www.ringg.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools#webpage\",\"url\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools\",\"name\":\"API tools\",\"description\":\"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\",\"dateModified\":\"2026-10-12T09:07:23.985Z\",\"isPartOf\":{\"@id\":\"https://docs.ringg.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Build agents\",\"item\":\"https://docs.ringg.ai/documentation/build-agents/agents/agent-types\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Customize agent behaviour\",\"item\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/agent-prompt\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Tools\",\"item\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/overview\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"API tools\",\"item\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools#article\",\"headline\":\"API tools\",\"name\":\"API tools\",\"description\":\"Add an API tool to a Ringg AI agent: call your own endpoint before, during or after a call, map parameters from variables or the conversation, and use the response in the prompt.\",\"url\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ringg.ai/documentation/build-agents/customize-agent-behaviour/tools/api-tools#webpage\"},\"dateModified\":\"2026-10-12T09:07:23.985Z\",\"publisher\":{\"@id\":\"https://www.ringg.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ringg.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Ringg AI\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Ringg AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools.md","siteName":"Ringg AI","nav":{"global":null,"tabs":[{"tab":"Get started","pages":[{"title":"Get started","href":"/get-started/introduction"}]},{"tab":"Documentation","pages":[{"title":"Ringg AI documentation","sidebarTitle":"Introduction","icon":"book-open","href":"/documentation/introduction"},{"group":"Build agents","icon":"bot","pages":[{"group":"Agents","pages":[{"title":"Agent types","sidebarTitle":"Agent types","href":"/documentation/build-agents/agents/agent-types"},{"title":"Create an agent","sidebarTitle":"Create an agent","href":"/documentation/build-agents/agents/create-an-agent"},{"group":"Multi-prompt agents","pages":[{"title":"Multi-prompt agents","sidebarTitle":"Overview","href":"/documentation/build-agents/agents/multi-prompt-agents/overview"},{"title":"Node types and connections","sidebarTitle":"Node types and connections","href":"/documentation/build-agents/agents/multi-prompt-agents/node-types-and-connections"},{"title":"Multi-prompt global settings","sidebarTitle":"Global settings","href":"/documentation/build-agents/agents/multi-prompt-agents/global-settings"},{"title":"Test and convert multi-prompt agents","sidebarTitle":"Test and convert","href":"/documentation/build-agents/agents/multi-prompt-agents/test-and-convert"}]},{"group":"WhatsApp agents","tag":"NEW","pages":[{"title":"WhatsApp agents","sidebarTitle":"Overview","href":"/documentation/build-agents/agents/whatsapp-agents/overview"},{"title":"Create a WhatsApp agent","sidebarTitle":"Create an agent","href":"/documentation/build-agents/agents/whatsapp-agents/create-an-agent"},{"title":"WhatsApp Flows","sidebarTitle":"Flows","href":"/documentation/build-agents/agents/whatsapp-agents/flows"},{"title":"Build WhatsApp Flows in Ringg","sidebarTitle":"Flow builder","href":"/documentation/build-agents/agents/whatsapp-agents/flow-builder"},{"title":"WhatsApp Flows with live data","sidebarTitle":"Flows with live data","href":"/documentation/build-agents/agents/whatsapp-agents/flows-live-data"},{"title":"Live data from your server","sidebarTitle":"Live data from your server","href":"/documentation/build-agents/agents/whatsapp-agents/flows-your-server"}]}]},{"group":"Customize agent behaviour","pages":[{"title":"Agent prompt","sidebarTitle":"Agent prompt","href":"/documentation/build-agents/customize-agent-behaviour/agent-prompt"},{"title":"Voice and language","sidebarTitle":"Voice and language","href":"/documentation/build-agents/customize-agent-behaviour/voice-and-language"},{"title":"Custom variables","sidebarTitle":"Custom variables","href":"/documentation/build-agents/customize-agent-behaviour/custom-variables"},{"title":"Attach a knowledge base","sidebarTitle":"Attach a knowledge base","href":"/documentation/build-agents/customize-agent-behaviour/attach-a-knowledge-base"},{"group":"Tools","pages":[{"title":"Tools","sidebarTitle":"Overview","description":"How Ringg AI agent tools work: the pre-call, on-call and post-call phases, the kinds of tool on each, using on-call tools in the prompt, and managing tools from an AI assistant.","href":"/documentation/build-agents/customize-agent-behaviour/tools/overview"},{"title":"API tools","sidebarTitle":"API tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/api-tools"},{"title":"Integration tools","sidebarTitle":"Integration tools","description":"Add an integration tool to a Ringg AI agent: run an action on a connected app account, such as a calendar event, a sheet row or a Slack post, and bind its parameters.","href":"/documentation/build-agents/customize-agent-behaviour/tools/integration-tools"},{"title":"System tools","sidebarTitle":"System tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/system-tools"},{"title":"Function tools and conditions","sidebarTitle":"Function tools and conditions","href":"/documentation/build-agents/customize-agent-behaviour/tools/function-tools-and-conditions"},{"title":"Post-call tools","sidebarTitle":"Post-call tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/post-call-tools"},{"title":"Workspace tools","sidebarTitle":"Workspace tools","href":"/documentation/build-agents/customize-agent-behaviour/tools/workspace-tools"},{"title":"WhatsApp tools","sidebarTitle":"WhatsApp tools","tag":"NEW","href":"/documentation/build-agents/customize-agent-behaviour/tools/whatsapp-tools"}]},{"title":"Call settings","sidebarTitle":"Call settings","href":"/documentation/build-agents/customize-agent-behaviour/call-settings"},{"title":"Advanced Analysis","sidebarTitle":"Advanced Analysis","href":"/documentation/build-agents/customize-agent-behaviour/advanced-analysis"},{"title":"Event Subscription","sidebarTitle":"Event Subscription","href":"/documentation/build-agents/customize-agent-behaviour/event-subscription"},{"group":"Webhooks","pages":[{"title":"Webhook setup and errors","sidebarTitle":"Setup and errors","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/setup-and-errors"},{"title":"Call events","sidebarTitle":"Call events","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/call-events"},{"title":"WhatsApp chat events","sidebarTitle":"WhatsApp chat events","tag":"NEW","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/whatsapp-chat-events"},{"title":"Webhook field reference","sidebarTitle":"Field reference","href":"/documentation/build-agents/customize-agent-behaviour/webhooks/field-reference"}]}]},{"group":"Test and improve","pages":[{"title":"Test an agent","sidebarTitle":"Test an agent","href":"/documentation/build-agents/test-and-improve/test-an-agent"},{"title":"Drafts and versions","sidebarTitle":"Drafts and versions","href":"/documentation/build-agents/test-and-improve/drafts-and-versions"}]},{"group":"Workflows","pages":[{"title":"Workflows","sidebarTitle":"Overview","href":"/documentation/build-agents/workflows/overview"},{"title":"Build a workflow","sidebarTitle":"Build a workflow","href":"/documentation/build-agents/workflows/build-a-workflow"},{"title":"Test and publish a workflow","sidebarTitle":"Test and publish","href":"/documentation/build-agents/workflows/test-and-publish"},{"title":"Workflow block reference","sidebarTitle":"Block reference","href":"/documentation/build-agents/workflows/block-reference"}]}]},{"group":"Inventory","icon":"package","pages":[{"title":"Knowledge base","sidebarTitle":"Knowledge base","href":"/documentation/inventory/knowledge-base"},{"group":"Tools (integrations)","pages":[{"title":"Connect an app","sidebarTitle":"Connect an app","href":"/documentation/inventory/tools-integrations/connect-an-app"},{"title":"Connect WhatsApp","sidebarTitle":"Connect WhatsApp","tag":"NEW","href":"/documentation/inventory/tools-integrations/connect-whatsapp"}]},{"group":"Phone numbers","pages":[{"title":"Phone numbers","sidebarTitle":"Overview","href":"/documentation/inventory/phone-numbers/overview"},{"title":"Buy or import a number","sidebarTitle":"Buy or import a number","href":"/documentation/inventory/phone-numbers/buy-or-import-a-number"},{"group":"Your own telephony","pages":[{"title":"Bring your own telephony","sidebarTitle":"BYOT overview","href":"/documentation/inventory/phone-numbers/your-own-telephony/byot-overview"},{"title":"SIP trunking","sidebarTitle":"SIP trunking","href":"/documentation/inventory/phone-numbers/your-own-telephony/sip-trunking"},{"title":"Plivo","sidebarTitle":"Plivo","href":"/documentation/inventory/phone-numbers/your-own-telephony/plivo"},{"title":"Exotel","sidebarTitle":"Exotel","href":"/documentation/inventory/phone-numbers/your-own-telephony/exotel"},{"title":"Twilio","sidebarTitle":"Twilio","href":"/documentation/inventory/phone-numbers/your-own-telephony/twilio"},{"title":"Telnyx","sidebarTitle":"Telnyx","href":"/documentation/inventory/phone-numbers/your-own-telephony/telnyx"},{"title":"InTalk","sidebarTitle":"InTalk","href":"/documentation/inventory/phone-numbers/your-own-telephony/intalk"},{"title":"Ameyo","sidebarTitle":"Ameyo","href":"/documentation/inventory/phone-numbers/your-own-telephony/ameyo"},{"title":"Ozonetel","sidebarTitle":"Ozonetel","href":"/documentation/inventory/phone-numbers/your-own-telephony/ozonetel"},{"title":"New provider requirements","sidebarTitle":"New provider requirements","href":"/documentation/inventory/phone-numbers/your-own-telephony/new-provider-requirements"}]},{"title":"Number pools","sidebarTitle":"Number pools","href":"/documentation/inventory/phone-numbers/number-pools"},{"title":"Inbound agent number","sidebarTitle":"Inbound agent number","href":"/documentation/inventory/phone-numbers/inbound-agent-number"}]}]},{"group":"Deploy","icon":"rocket","pages":[{"group":"Campaigns","pages":[{"title":"Campaigns","sidebarTitle":"Overview","href":"/documentation/deploy/campaigns/overview"},{"title":"Create a campaign","sidebarTitle":"Create a campaign","href":"/documentation/deploy/campaigns/create-a-campaign"},{"title":"Workflow campaign","sidebarTitle":"Workflow campaign","href":"/documentation/deploy/campaigns/workflow-campaign"},{"title":"Campaigns by API","sidebarTitle":"Campaigns by API","href":"/documentation/deploy/campaigns/campaigns-by-api"},{"title":"Calling list","sidebarTitle":"Calling list","href":"/documentation/deploy/campaigns/calling-list"},{"title":"Manage a campaign","sidebarTitle":"Manage a campaign","href":"/documentation/deploy/campaigns/manage-a-campaign"}]},{"group":"Web and apps","pages":[{"group":"Web widget","pages":[{"title":"Web widget","sidebarTitle":"Overview","href":"/documentation/deploy/web-and-apps/web-widget/overview"},{"title":"Web widget configuration","sidebarTitle":"Configuration","href":"/documentation/deploy/web-and-apps/web-widget/configuration"},{"title":"Web widget events","sidebarTitle":"Events","href":"/documentation/deploy/web-and-apps/web-widget/events"},{"title":"Chat mode","sidebarTitle":"Chat mode","href":"/documentation/deploy/web-and-apps/web-widget/chat-mode"},{"title":"Chat components","sidebarTitle":"Components","href":"/documentation/deploy/web-and-apps/web-widget/components"},{"title":"Chat component data","sidebarTitle":"Data","href":"/documentation/deploy/web-and-apps/web-widget/data"},{"title":"Chat component recipes","sidebarTitle":"Recipes","href":"/documentation/deploy/web-and-apps/web-widget/recipes"},{"title":"Web widget styling","sidebarTitle":"Styling","href":"/documentation/deploy/web-and-apps/web-widget/styling"},{"title":"Web widget launch checklist","sidebarTitle":"Launch checklist","href":"/documentation/deploy/web-and-apps/web-widget/launch-checklist"}]},{"group":"Mobile apps","pages":[{"title":"Mobile app install","sidebarTitle":"Install","href":"/documentation/deploy/web-and-apps/mobile-apps/install"},{"title":"Mobile widget configuration","sidebarTitle":"Configuration","href":"/documentation/deploy/web-and-apps/mobile-apps/configuration"},{"title":"Mobile widget events","sidebarTitle":"Events","href":"/documentation/deploy/web-and-apps/mobile-apps/events"}]}]},{"group":"WhatsApp","tag":"NEW","pages":[{"title":"Start a conversation","sidebarTitle":"Start a conversation","href":"/documentation/deploy/whatsapp/start-a-conversation"},{"title":"WhatsApp Relay","sidebarTitle":"Relay overview","href":"/documentation/deploy/whatsapp/relay-overview"},{"title":"WhatsApp Relay integration guide","sidebarTitle":"Relay integration guide","href":"/documentation/deploy/whatsapp/relay-integration-guide"},{"title":"WhatsApp Relay troubleshooting","sidebarTitle":"Relay troubleshooting","href":"/documentation/deploy/whatsapp/relay-troubleshooting"}]}]},{"group":"Monitor","icon":"chart-line","pages":[{"title":"Logs","sidebarTitle":"Logs","href":"/documentation/monitor/logs"},{"title":"Analytics","sidebarTitle":"Analytics","href":"/documentation/monitor/analytics"},{"title":"Evals","sidebarTitle":"Evals","href":"/documentation/monitor/evals"},{"title":"Alerts","sidebarTitle":"Alerts","href":"/documentation/monitor/alerts"}]},{"group":"Manage account","icon":"settings","pages":[{"title":"Members","sidebarTitle":"Members","href":"/documentation/manage-account/members"},{"title":"API key","sidebarTitle":"API key","href":"/documentation/manage-account/api-key"},{"title":"Billing","sidebarTitle":"Billing","href":"/documentation/manage-account/billing"},{"title":"Call limits","sidebarTitle":"Call limits","href":"/documentation/manage-account/call-limits"},{"group":"Ringg Spaces","pages":[{"title":"Ringg Spaces","sidebarTitle":"Overview","href":"/documentation/manage-account/ringg-spaces/overview"},{"title":"Create and manage Ringg Spaces","sidebarTitle":"Create and manage","href":"/documentation/manage-account/ringg-spaces/create-and-manage"},{"title":"Ringg Spaces by API","sidebarTitle":"Ringg Spaces by API","href":"/documentation/manage-account/ringg-spaces/ringg-spaces-by-api"}]}]},{"group":"Ringg Labs","icon":"flask-conical","pages":[{"group":"Parrot STT","pages":[{"title":"Parrot STT Python SDK","sidebarTitle":"Python SDK","href":"/documentation/ringg-labs/parrot-stt/python-sdk"},{"title":"Parrot STT on TrueFoundry","sidebarTitle":"TrueFoundry","href":"/documentation/ringg-labs/parrot-stt/truefoundry"}]}]}]},{"tab":"Analytics platform","pages":[{"title":"Analytics platform","href":"/analytics-platform/introduction"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/api-reference/introduction/quickstart"}]},{"tab":"Resources","menu":[{"item":"MCP server","description":"Let Claude, ChatGPT or Cursor work in your workspace, or search these docs","pages":[{"title":"MCP server","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]},{"item":"Learn","description":"Lessons that build a payment-reminder system end to end","pages":[{"title":"Learn","href":"/resources/learn/all-lessons"}]},{"item":"Security","description":"How Ringg protects your data, and what to do on your side","pages":[{"title":"Security","href":"/resources/security/security"}]},{"item":"Changelog","description":"New features, API changes and new guides","pages":[{"title":"Changelog","href":"/resources/changelog/changelog"}]}],"pages":[{"title":"Resources","href":"/resources/mcp-server/docs-mcp-server/mcp-for-ai-assistants"}]}]},"basePath":"","title":"API tools - Ringg AI","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-BXrZabKK.js","DynamicMarkdown-CtasenyM.js","zoom-image-lightbox-C5F0mVLH.js","lightbox-handle-r17bVUz3.js"]}