Skip to content
AskTable

Documentation feedback

Current pageWeb embedding/en/integrations/embed

0 / 5,000

Your feedback will be sent to the maintenance team.

Go to console
Go to console
AskTable
Go to console

Integrations and development

Embed a question window in a web page

Generate a public question address and place it in your web page with an iframe; visitors do not sign in.

Anonymous embedding turns an agent into a public address that you place in your web page with an iframe. Visitors do not sign in to AskTable, and all visitors share the data scope bound to the address.

When visitors need to use their own identity and permissions, use user-identity embedding instead. WeCom and WPS pages can also host the iframe; this is unrelated to WeCom or WPS sign-in.

This requires a project owner or project administrator. Entry: “More” → “Embeds”, or “Agent integrations” → “Integrate AskTable in business systems”.

Steps

Create an address

Click “New address”, choose an agent, and enter a name (required, up to 255 characters).

Choose the data scope

Choose a role; all visitors query within that role's scope. If the role has required variables, fill them in; they apply to all visitors. Choosing no role means no extra restriction, so visitors can reach the agent's full data scope; make sure that is suitable to publish.

Embeds do not inherit the creator's data permissions. After the role or variables change, visitors' next questions use the new settings.

Restrict embedding sites

Turn on “Trusted domains” and enter the domains allowed to embed the address (the domain of the page containing the iframe, not AskTable's domain), such as example.com; use *.example.com for all subdomains, without http://. When off, any website can embed the address.

Copy the embed code

The address is enabled immediately after saving. In the list item's “More” menu, click “Copy embed code” and paste it into your page:

<iframe src="https://<your AskTable site>/embed/emb_xxxx" referrerpolicy="strict-origin-when-cross-origin" style="width:100%;height:600px;border:0"></iframe>

Keep referrerpolicy. Firefox relies on it to identify the parent page's origin; without it, if your page sets no-referrer, requests are rejected when trusted domains are on.

Verify

Verify on the real website domain: the page opens and completes a question; sites not in trusted domains are rejected; visitors cannot reach data outside the role's scope; visitor sessions disconnect after the address is disabled.

Manage addresses

The list shows each address's role, trusted domains, active conversations in the last 7 days, and last activity time. Turn off the switch on the right to disable it; visitor sessions disconnect immediately. After turning it on again, visitors refresh the page to continue.

Visitor session credentials are valid for 24 hours. Refreshing in the same browser within 24 hours returns to the same conversation. After trusted domains are tightened, the change applies at the latest when credentials renew or expire after 24 hours; in an emergency, disable the address first.

The visitor page starts new conversations with fast mode on by default, and visitors can turn it off.

Common issues

Message visitors seeError codeAction
This embed is unavailableEMBED_DISABLED (403)Turn the switch on in “Embeds”
Origin not allowedEMBED_ORIGIN_NOT_ALLOWED (403)Add the website domain to trusted domains; make sure referrerpolicy was not removed
Resource not foundRESOURCE_NOT_FOUND (404)The address was deleted, or the emb_ identifier is wrong
SymptomCauseAction
Old pages still open after changing trusted domainsVisitor session credentials have not expiredWait up to 24 hours, or disable the address first
Visitors reach only part of the dataThat is the bound role's scopeChange the role or adjust its scope
A refresh starts a new conversationSession credentials are older than 24 hoursExpected behavior