Link Laifaxin
- Goal: copy the
accesstokenand current workspaceorgIdfrom a signed-in Laifaxin page so a trusted AI tool connects to the correct workspace. - Time required: about 3 minutes the first time and less than 1 minute once familiar.
- This page retrieves both connection values and runs a read-only check. It does not automatically search for prospects or send email.
Before Start
Make sure that:
- you have opened and signed in to Laifaxin on the web with Chrome or Edge;
- you have selected the exact personal or company workspace for this task from the avatar menu in the upper-right corner;
- if the B2B toolkit is not installed yet, first install it and run the health check, then return here. If it is already installed, open the original trusted local ZCode task.
accesstoken: the account credential, usually a long string;orgId: the current workspace ID. A personal workspace may match the user ID, while a company workspace normally uses a different numeric value;- do not infer a company
orgIdfrom the middle of the token; use theorgIdvalue stored by the browser; - retrieve both values again after switching personal accounts or company workspaces. Never send them to group chats, support tickets, public documents, or an untrusted shared AI task.
Choose Method
| Your situation | Recommended method | What it involves |
|---|---|---|
| First time, or code feels unfamiliar | Method 1: follow the interface | Find both values without entering code |
| You want the faster path | Method 2: one command | Copy both values once and paste the complete block into ZCode |
Use Method 1 the first time. Method 2 is easier once you understand where both values come from.
Application Method
Open Developer Tools
Right-click a blank area of the signed-in Laifaxin page, then select Inspect.
If Inspect is not visible, press
F12on Windows or⌥ Option + ⌘ Command + Ion Mac.
Open Application
Select Application at the top of Developer Tools. If it is hidden, open the » overflow menu or additional tabs menu.
Select Local Storage
Expand:
Storage
└── Local Storage
└── https://web.laifaxin.com
Then select https://web.laifaxin.com.
Copy accesstoken
Find accesstoken in the Key column, then double-click the long string in its Value cell:
- press
Ctrl + A, thenCtrl + Con Windows; press⌘ Command + A, then⌘ Command + Con Mac; - return to the current trusted local ZCode task and send
accesstoken=<the complete value you just copied>.

Copy orgId
Return to the same table and enter orgId in the filter box:
- find the
orgIdrow; - copy the complete number or string from its Value cell;
- return to the same ZCode task and send
orgId=<the complete value you just copied>.
- ✅ Copy the complete values beside
accesstokenandorgId. - ❌ Do not copy only the key names or another row such as
UserAtom. - ❌ Do not add quotation marks or spaces around either value, and do not truncate it.
- The screenshot demonstrates the table location; every account has different values.
One-Command Console Method
This is the faster path: one fixed command copies the accesstoken and current workspace orgId together.
- Copy only the complete command shown on this page; never run unrelated code from an unknown source.
- The command only reads local storage and places both values on your clipboard; it does not modify Laifaxin data.
- Run it only on a signed-in
web.laifaxin.compage. - If the browser displays a paste warning, first verify that the command exactly matches this page, then follow the browser's visible instructions.
Open Console
Right-click the Laifaxin page, select Inspect, then select Console at the top of Developer Tools.
Copy Both Values
var t=localStorage.getItem("accesstoken");t&&t!=="null"?(copy("accesstoken="+t+"\norgId="+localStorage.getItem("orgId")),"✅ 已复制到剪贴板!请回到对话框 Ctrl+V 粘贴发送给 AI"):"❌ 未登录或页面不对——请先登录 web.laifaxin.com 再重试";
Paste the command and press Enter:
✅ 已复制到剪贴板: the copy succeeded; return to the current ZCode task, paste, and send;❌ 未登录或页面不对: you are not signed in or are on the wrong page; verify the URL and sign-in state, then retry;- the pasted block should contain two lines beginning with
accesstoken=andorgId=. Do not split it, remove the field names, or retype it manually; the current toolkit recognizes the complete block. - the current command directly returns the
✅or❌message, with no extraundefinedline.
Paste the Connection Block
With either method, place both accesstoken=... and orgId=... in the same trusted local ZCode task: Method 1 sends them as two separate messages, while Method 2 pastes the complete two-line block once. Then have the AI run the read-only login check first. The toolkit does not require a dedicated field named Laifaxin Token.
If you only run this connection test, clear both values when the test ends. If you immediately continue the complete workflow in the same trusted local task, they may be used temporarily for check_login.py, gate_check.sh, and later tools that genuinely require authentication. Never write them to files, runs/, logs, summaries, screenshots, backups, or migration packages, or echo the token in messages. Clear them when the workflow ends; retrieve them again after switching accounts, workspaces, login state, or tasks.
Read-Only
After both values are in the same ZCode task, send the instruction below. For Method 1, ZCode first combines the two labeled values into one two-line block; for Method 2, it uses the block you already pasted. ZCode runs the commands; you do not need to use a terminal:
Use the accesstoken=... and orgId=... values I just provided in this task. If I sent them separately, first combine them by field name into one two-line block. Do not echo the real values.
Run these checks in order and report in plain language:
1. Run tools/onboard_check.py and confirm that the environment passed.
2. Pass the complete two-line block unchanged to the --token argument of tools/check_login.py so the current tool can split accesstoken and orgId automatically. Report pass/fail and identify the current user and workspace separately without showing the token.
3. After login passes, use the recognized accesstoken and orgId to run tools/gate_check.sh --token <token> --org <orgId>, then report whether the general connection gate passed.
If this is only a connection test, clear the token and orgId when the checks end. If you immediately continue in the same trusted local task, they may be used temporarily by later tools that genuinely require authentication.
Do not write either value to files, runs, logs, message summaries, screenshots, backups, or migration packages, or echo the token; clear both when the workflow ends.
If any check fails, stop. Do not search or save prospects, generate templates, create sequences, add contacts, or activate sending.
Continue only after all three checks explicitly pass and the current user and workspace are correct.
Troubleshoot
Missing App
Open the » overflow menu or additional tabs menu. You can also make the Developer Tools panel wider.
No Storage
Confirm that the current page is https://web.laifaxin.com and that your account is signed in. Refresh the page, then reopen Developer Tools.
Copy Trouble
Use Method 2 instead. One command copies both values as an accesstoken= / orgId= two-line block; paste the complete block into ZCode.
Paste Blocked
This is a browser safety warning intended to prevent malicious code. Do not disable browser security settings. First verify that the command exactly matches this page, then read and follow the instructions displayed by the browser.
Shows an Error or Includes null
If the console shows ❌ 未登录或页面不对, or the copied block contains orgId=null, the page did not provide complete connection details. Check that:
- the current site is
web.laifaxin.com; - your account is still signed in;
- you refreshed the page and ran the command again;
- if needed, you signed out and signed back in before retrying.
After Switch
Yes. Run the one-command copy again after switching personal accounts or company workspaces because the orgId changes. Recopying the complete block avoids mixing an old workspace with the current account.
Advanced: alternative commands if the recommended command fails
Replace the key name in these examples with either accesstoken or orgId:
copy(window.localStorage.getItem("accesstoken"));
Use the browser clipboard API:
navigator.clipboard.writeText(localStorage.getItem("accesstoken"));
Read and display the value without copying it automatically:
localStorage.getItem("accesstoken");
The last command displays the complete value. Avoid using it while sharing or recording your screen.