Skip to content

Carry the right conversation across a login change

Treat login as an identity boundary, not just a page refresh. Test the signed-out and signed-in states, verify the authenticated identity before showing history, and send uncertain or missing context to a human without guessing who owns it.

What you need

For a support-platform or knowledge-base owner testing a chatbot embedded in a site where customers may sign in during a conversation.

  • A synthetic visitor conversation and a separate test account with a known identity.
  • The approved identity-verification method and session transition event.
  • A test script covering sign-in, sign-out, refresh, account switch and failed verification.

Verify safe chatbot context handoff across a visitor-to-user identity change.

  1. Start a synthetic conversation as an anonymous visitor and record its test ID.
  2. Sign in to the intended test account without copying private data into the test.
  3. Check whether the platform links, retains or separates the prior conversation under its documented identity rules.
  4. Sign out, switch to a second test account and verify that the first account’s history is not shown.
  5. If identity or history is ambiguous, stop the automated answer and route the issue for authorized human review.

The old visitor thread must not leak to the next account

Synthetic test identities and conversation IDs only.

Scroll the table to see all columns.

Session transition test cases
Starting stateEventExpected historyObservedDecision
Visitor A, thread C-11Sign in as Account AOnly C-11 if platform policy permits linkingC-11 shownReview linking rule
Account A, thread C-11Sign out, then sign in as Account BNo Account A historyC-11 still shownFail; block chatbot context
Visitor B, thread C-22Sign in fails verificationNo authenticated historyNo history shownPass; ask for human help

Account B sees Account A’s thread in the second row, so the flow fails. Do not resolve this by displaying the visitor history to every signed-in user; verify platform identity mapping and rerun the test.

What to hand over

An identity-transition test log with each state, expected conversation visibility, observed result and a pass, fail or review decision.

Limitation. The test can verify the configured cases, but cannot establish identity security for every browser, device, session timeout or platform configuration.

Next step

Bring a test-state diagram and synthetic conversations. Agree which history may be linked to an account and when the chatbot must stop.

Discuss a support chatbot workflow

Sources