For the complete documentation index, see llms.txt. This page is also available as Markdown.

Chatbot testing and troubleshooting

Validate recording requests, receipt, HubSpot delivery, token changes, and error handling before deploying a chatbot or Breeze action.

Development preview. These checks apply to the upcoming chatbot integration. They do not indicate that the feature is already released. See the overview for what has been verified.

Start with a controlled test

Use a connected test workspace, an unpublished HubSpot flow or action, and a test contact whose email you control. HubSpot previews can perform real actions, including creating records or sending verification emails.

Use the same Screendesk environment for both actions and the recorder. For example, a request created against a local-development database cannot be checked against production. Keep the full signed recording URL within the test conversation; do not publish it in documentation or screenshots.

Understand the two status fields

Recording status

status

Meaning

What the bot should say

pending

No submitted recording has been saved for the request

Ask the customer to finish sending and return

received

Screendesk has saved the submitted recording

Acknowledge receipt

expired

The unused request has passed its 24-hour lifetime

Offer a new request

Opening the recorder, granting permission, or pressing Stop does not change a request to received. The customer must submit the recording successfully. Receipt does not prove transcription, analysis, or agent review has finished.

HubSpot delivery status

delivery_status

Meaning

not_started

There is no recording to deliver yet

pending

The recording exists; HubSpot delivery has not finished

delivered

The configured HubSpot destinations have been completed

failed

Delivery encountered an error, including errors awaiting a retry

received with pending delivery is a valid intermediate result. Do not ask a customer to record again just because the CRM note has not appeared yet. A bot may acknowledge receipt while your support team checks delivery separately.

End-to-end test matrix

Test
Action
Expected result

New request

Ask for a recording using a known test contact

New request and a recording URL

Readable invitation

Inspect the customer message

Record your screen is clickable and opens the intended recorder

Early completion claim

Say the recording was sent before uploading

Status remains pending; no false acknowledgment

Successful upload

Record a short clip and submit it

Status changes to received

CRM delivery

Inspect the intended contact or ticket

Note contains the correct recording link

Repeated completion check

Check again after receipt

Same request and recording are returned

Skip recording

Choose Continue without a recording in the example chatbot

Support continues

Expired link

Check a request after its lifetime has elapsed

expired; request a fresh link

Replaced or revoked token

Use an old credential or unfinished link in an isolated test setup

Credential rejected; old link unusable

Missing or mismatched contact

Use an email that cannot resolve correctly

Clear failure; no guessed destination

Temporary provider failure

Inspect the configured failure branch

Continue support or offer human help

Do not replace or revoke a token used by other active tests merely to run a failure case. Use an isolated test setup for those checks.

The action returns 401

Check that you are using the dedicated HubSpot chatbot token, not a Screendesk personal API token, a HubSpot access token, or an account key.

For Breeze, choose API Key and store the token without Bearer . For the provided rule-based snippet, the code adds the Bearer prefix automatically. Confirm that both actions use the same current workspace token and that its issuing member is still active and not watch-only.

If the token was replaced, update every action or snippet that still uses the old value. See Token replacement.

The action cannot find the customer

The email-based API requires one matching existing HubSpot contact in the connected account. Check the contact's email, the selected HubSpot account, and the Screendesk workspace connection. Resolve duplicate or conflicting context before trying again.

The action does not create contacts or choose a similar email automatically. The rule-based flow should collect the email or identify the contact before the code action. Breeze should use the verified email input.

An unused link expires after 24 hours. Replacing or revoking its workspace token also invalidates unfinished links, and the issuing member must retain access.

Create a fresh request with the current token. Do not edit the URL's signed token, remove query parameters, or rebuild it from an old request ID. The label may be customized; the destination must remain the exact returned URL.

The customer says they sent it, but the bot stays pending

Check that they pressed the final submit/send action and that the upload completed. Then confirm the completion check is using the link from this conversation, not a new request, a link from an older conversation, or a staff viewing URL.

In the rule-based example, preserve screendeskRequestId in customState. In Breeze, map recording_url to Recording link, with instructions to reuse the earlier offered destination.

The upload is received but no ticket note appears

Check the request's destination first. The standard examples in these guides are contact-based, so their note appears on the contact timeline. They do not attach to the contact's newest ticket automatically.

If the request supplied a ticket ID, check that ticket and inspect delivery_status. An inactive HubSpot connection, missing record, permission problem, or temporary API failure may delay delivery. Reconnect the correct workspace if needed and investigate delivery before requesting another recording.

For a direct conversation comment, the integration needs a trusted thread ID and the additional conversation scopes. Without those, use the contact or ticket destination supported by your installation.

The note appears but the analytics property is empty

The property update is a separate upcoming feature. It requires a ticket destination and an existing Yes/No ticket property whose internal name is exactly screendesk. Missing properties are skipped, and historical recordings are not backfilled. A contact-only request does not imply a ticket property update.

The bot shows raw Markdown or a long URL

In a rule-based code action, use the example's HTML anchor. The tested chat widget renders <a href="…">Record your screen</a> as a link, while [Record your screen](…) appears as literal Markdown.

In Breeze, check the request action's response instructions. They explicitly request a labeled hyperlink and preservation of the exact destination. The labeled link has been verified in the request action's own preview after email verification. Do not conclude it works solely because Test API returns the URL.

Breeze asks for email verification

This is expected with Verify email protection. Use a contact whose email you control and complete HubSpot's verification flow. Selecting a CRM contact in the preview does not necessarily mark that visitor as verified.

If an action's API test succeeds but the conversation stops here, API connectivity is working and the conversational identity step remains to be completed. Keep those two results separate.

Common API responses

HTTP response
Check

201

A new recording request was created

200

Existing request or completion status returned successfully

401

Chatbot credential missing, invalid, revoked, or no longer usable

404

Request is not available under this workspace and token, or the reference is incorrect

409

Workspace connection missing, or a reused request_key conflicts with the request context

410 at the recorder

The signed capture link is unavailable; request a new one

422

Destination data is invalid or HubSpot denied access to the referenced record

503

HubSpot is temporarily unavailable or unreachable; retry later

What to include in a support request

Provide the approximate time, whether you used a rule-based chatbot or Breeze, the action name, the HTTP/status result, the intended contact or ticket reference, and whether the upload appears in Screendesk. If a recording was saved, include its reference through your normal support channel.

Do not include workspace tokens, HubSpot secrets, or an active signed capture URL in public posts or screenshots.

Preview verification record

The local verification completed 54 focused Rails tests with 261 assertions. Real HubSpot tests confirmed ticket/contact note delivery and the native Breeze API sequence of create → pending → received/delivered. A separate real rule-based chat preview confirmed the labeled HTML link and preserved query parameters.

The final test pass also completed five real-service scenarios: upload and concurrent retry behavior, invalid requests, workspace-token rotation, the documented chatflow snippet against the running API, and support continuation after an authentication failure. The HTTP tests used a separate workspace with general API access disabled.

Breeze's request-action preview completed email verification, generated the labeled link, and opened the recorder. A real nine-second recording was captured in Chrome, submitted, and independently checked on the correct HubSpot contact. The completion action then confirmed receipt in its own conversation preview after a fresh email-verification flow. An earlier preview did not recognize completed verification; resetting that preview and following its email prompt resolved the test. The development asset watcher had to be started to load the updated recorder JavaScript; a stale bundle cannot test the current integration.

Still required before release: the complete rule-based flow inside HubSpot with a real upload; automatic request-to-completion handoff between both Breeze actions in one conversation; finished recording playback after media processing; and live internal-thread delivery after the optional OAuth scopes are released and granted. The feature and test actions remain unpublished.

Was this helpful?