Configuration and administration
Connect Coze
Call AskTable through REST API from Coze Agents or workflows.
HTTP calls or a custom plugin let a Coze Agent use AskTable's data analysis capabilities. The current version creates a conversation with a data Agent, sends a question, and reads the result. The old single-query plugin configuration using only datasource_ids cannot be used directly with the current version.
Before you begin
- An AskTable project and an Agent you can use with ready data sources.
- The AskTable service URL, project ID, and Agent ID; see REST API.
- A Coze account and a workflow that can configure HTTP calls or a custom plugin.
- Choose a credential identity: a personal Key to act as yourself, or an
askersystem integration Key for a trusted business system. Create it in main navigation → “Agent integration”; plaintext appears only once.
Steps
Check the plugin endpoint
The historical Query Excel or databases with a sentence plugin uses data source IDs. Check its actual endpoint first. If it still calls /v1/integration/query, the current AskTable version has removed that endpoint, so the old configuration cannot be used.
For the current version, configure HTTP calls or a custom plugin following the conversation flow below. The deployment instance's /v1/redoc is authoritative for endpoints and fields. An old plugin's presence does not establish compatibility with the current version.
Add the plugin to an Agent
Add a tool that can call AskTable REST API to your Coze Agent or workflow. If wrapping the full flow in one tool, include conversation creation, message submission, waiting, and answer retrieval rather than returning only the creation result.
Prepare connection variables
The old at_auth and at_ds_id settings are no longer sufficient. Prepare these connection values and keep the Key in the platform's secure credential settings:
| Value | Purpose |
|---|---|
| Service URL | AskTable's external URL; request paths use /v1 |
| Project ID | X-Project-Id request header |
| API Key | Authorization: Bearer YOUR_API_KEY request header |
| Agent ID | data_agent_id when creating the conversation |
| Current user question | Message question, up to 4096 characters |
Bind plugin parameters to variables
Configure three requests in order, using the same authentication headers for each:
| Order | Request | Parameters and result |
|---|---|---|
| 1 | POST /v1/conversations | Send JSON data_agent_id and retain the returned id |
| 2 | POST /v1/conversations/<id>/messages | Send JSON question; 202 means execution accepted |
| 3 | GET /v1/conversations/<id> | Wait for execution to finish and read text blocks in assistant message content |
A personal Key uses its owner's current data role and variables; parameters cannot override them. System integration can specify role_id and role_variables in the first request, chosen by a trusted server; omitting the role applies no role filtering. See REST API for request examples.
Debug using preview
First ask the same question with the same Agent in the AskTable web interface, then verify in Coze. pending and streaming mean execution is incomplete; set polling intervals and an overall timeout. clarifying requires clarification and must not be returned as a successful answer.
Test a normal question, an unauthorized call, and timeout handling. Do not expose Keys, connection configuration, or sensitive information from detailed errors in Coze replies.
Use the same configuration in workflows or chatflows
Retain the conversation ID in the workflow and send follow-ups to its /messages endpoint. Isolate conversation IDs between users so one user does not continue another's history. To display live progress, use the event stream described in the current instance documentation.
Key constraints
| Item | Value or default | Where to change it |
|---|---|---|
| Entry point | Agent conversation API; old /v1/integration/query removed | HTTP tool or custom plugin |
| Identity | Personal Key follows the owner's current permissions; system asker calls all project Agents | AskTable “Agent integration” |
| New conversation | Requires data_agent_id; data source IDs alone are insufficient | Create conversation request |
| Data scope | Determined jointly by the Agent and execution identity; a trusted server controls system roles and variables | AskTable configuration and calling service |
| Execution result | 202 only accepts execution; read answers from conversation details | Workflow waiting and result extraction |
| Credentials | Never place them in public prompts, replies, or code repositories | Coze secure credential settings |
Troubleshooting
| Symptom | Identifying condition | Resolution |
|---|---|---|
| Old plugin returns 404 | Still requests /v1/integration/query | Migrate to the Agent conversation flow above |
| Authentication failure | Missing Bearer , or Key expired or revoked | Check secure credentials and request headers |
| Conversation creation fails | Agent ID missing or inaccessible to the current identity | List accessible Agents first and use one of their IDs |
| Accepted response without an answer | The message endpoint's 202 is treated as the final result | Read conversation details and handle waiting, clarification, and failure states |
| Different users see the same history | Workflow shares a conversation ID | Isolate conversation state and credential identity by user |
Next steps
- Complete requests and permission conditions: REST API
- Let AI clients discover tools directly: MCP
- Prepare an available Agent: Create and configure a data Agent