Skip to content
AskTable

Documentation feedback

Current pageConnect Coze/en/integrations/coze

0 / 5,000

Your feedback will be sent to the maintenance team.

Go to console
Go to console

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 asker system 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:

ValuePurpose
Service URLAskTable's external URL; request paths use /v1
Project IDX-Project-Id request header
API KeyAuthorization: Bearer YOUR_API_KEY request header
Agent IDdata_agent_id when creating the conversation
Current user questionMessage question, up to 4096 characters

Bind plugin parameters to variables

Configure three requests in order, using the same authentication headers for each:

OrderRequestParameters and result
1POST /v1/conversationsSend JSON data_agent_id and retain the returned id
2POST /v1/conversations/<id>/messagesSend JSON question; 202 means execution accepted
3GET /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

ItemValue or defaultWhere to change it
Entry pointAgent conversation API; old /v1/integration/query removedHTTP tool or custom plugin
IdentityPersonal Key follows the owner's current permissions; system asker calls all project AgentsAskTable “Agent integration”
New conversationRequires data_agent_id; data source IDs alone are insufficientCreate conversation request
Data scopeDetermined jointly by the Agent and execution identity; a trusted server controls system roles and variablesAskTable configuration and calling service
Execution result202 only accepts execution; read answers from conversation detailsWorkflow waiting and result extraction
CredentialsNever place them in public prompts, replies, or code repositoriesCoze secure credential settings

Troubleshooting

SymptomIdentifying conditionResolution
Old plugin returns 404Still requests /v1/integration/queryMigrate to the Agent conversation flow above
Authentication failureMissing Bearer , or Key expired or revokedCheck secure credentials and request headers
Conversation creation failsAgent ID missing or inaccessible to the current identityList accessible Agents first and use one of their IDs
Accepted response without an answerThe message endpoint's 202 is treated as the final resultRead conversation details and handle waiting, clarification, and failure states
Different users see the same historyWorkflow shares a conversation IDIsolate conversation state and credential identity by user

Next steps