541457bc24
- kb.js: entries { id, title, questions, answer, tags, pattern, handoff, order, source, updated } in DATA_DIR/kb.json (temp file + rename). BM25 over title, question variants and tags (answer at a low weight) with word bigrams; the top hits go into the system prompt as KNOWLEDGE BASE, and when nothing fits the prompt says to answer "I'm not sure, ask support" (Help at SITE_URL/help).
- One source: chatbot.js CANNED seeds the KB (ids c-*, regex = instant-answer pattern, same first-match order); kb-seed.js seeds the network notes from the home page, the wallets guide FAQ, the earning guide and the Coinbase support reply in LinkSpin wording (f-*). The fast path serves the KB entry; the in-code CANNED only answers if the KB store fails. Unedited seeds follow code changes, edited ones are left alone, deleted seeds stay deleted.
- Admin > Knowledge base: list, search, filter by source, add, edit, delete, Try a question. Em dashes in admin input become commas.
- chatbot.js: reasoning off for deepseek (as on IAP), keepalive-padded OpenRouter replies parsed, OPENROUTER_URL override for tests, KNOWLEDGE_DATE 2026-10-20. New public GET /api/chat/kb-stamp.
- QA: qa/kb-retrieval.cjs (12 sample questions rank the right entry first), qa/kb-chat.mjs (local copy + mock OpenRouter), bash qa/run.sh kb; walk lists admin#kb.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
58 lines
8.0 KiB
JavaScript
58 lines
8.0 KiB
JavaScript
// Knowledge-base seeds that are not CANNED fast-path answers (kb.js): the home page's network notes, the
|
|
// wallets guide's Common questions, the earning guide, and support replies worth keeping. An entry here
|
|
// that nobody has edited in Admin > Knowledge base is refreshed when its text changes in this file; edit
|
|
// it in the admin pane and it becomes the admin's own.
|
|
// House rules: plain words, no em dashes, never a promise of income.
|
|
const { SITE_HOST, SITE_URL } = require('./host');
|
|
const FAQ = [
|
|
{ id: 'f-coinbase', title: 'Can I use my regular Coinbase account?', source: 'ticket',
|
|
questions: ['Can I use my regular Coinbase account?', 'Can I use Coinbase?', 'Can I connect my Coinbase exchange account?', 'How do I connect Coinbase?', 'Can I pay from my exchange account?'],
|
|
tags: ['coinbase', 'exchange account', 'connect coinbase', 'wallet', 'safepal'],
|
|
answer: 'Your regular Coinbase account won\'t connect here. Coinbase is an exchange: they hold the crypto for you, which works for buying and selling. LinkSpin runs on a smart contract on Polygon, and to buy a package or receive payouts you sign that contract yourself, which only a wallet you control can do. You don\'t need Coinbase Wallet; we recommend SafePal (free, phone app or desktop browser extension). Install it, write down your recovery phrase, add Polygon (POL) and copy your address, send POL from Coinbase choosing the Polygon network (send a small test first), then open ' + SITE_HOST + ' in SafePal\'s browser (or the browser with the extension), sign in with your email, open Credits in your Control Room and tap Link a wallet (one free signature). You only need a wallet to buy a package or receive payouts.' },
|
|
{ id: 'f-team-here', title: 'Already on InstantAdPay? Your team is already here', source: 'faq',
|
|
questions: ['I am already on InstantAdPay, do I start over?', 'Will my InstantAdPay sponsor be my sponsor here?', 'Can I sign in with my InstantAdPay email?'],
|
|
tags: ['instantadpay', 'sponsor', 'carry-over', 'team', 'network'],
|
|
answer: 'Sign in with the email you use on InstantAdPay and your sponsor is placed for you before you buy anything: the same people above you, the same people below you, the same wallet. LinkSpin is a second property to build on, with tools you will use every day.' },
|
|
{ id: 'f-new-here', title: 'New here: where to start', source: 'faq',
|
|
questions: ['I am new, where do I start?', 'What should I do first?', 'How do I get started?'],
|
|
tags: ['getting started', 'new member', 'first steps'],
|
|
answer: 'Make a spin link on the home page at ' + SITE_URL + ', promote it anywhere, and watch the clicks in your Control Room. Create your free account at ' + SITE_URL + '/join with just your email. Buy a package when you want your own ads in front of the network. Email first, wallet only when you are ready to be paid.' },
|
|
{ id: 'f-how-much-pol', title: 'How much POL do I need?', source: 'faq',
|
|
questions: ['How much POL do I need?', 'How much POL for fees?', 'What does a package cost in POL?'],
|
|
tags: ['pol', 'fees', 'gas', 'buy packages'],
|
|
answer: 'The Credits screen shows the live POL cost of each package. Have that plus 2 or 3 POL for network fees; there is no other cost. Trust Wallet users should keep about double, because Trust blocks a purchase that spends most of the wallet.' },
|
|
{ id: 'f-moonpay-declined', title: 'MoonPay declined my card', source: 'faq',
|
|
questions: ['Why did MoonPay decline my card?', 'My card was refused buying POL', 'MoonPay will not take my payment'],
|
|
tags: ['moonpay', 'card', 'declined', 'buy pol'],
|
|
answer: 'Some banks block crypto purchases. Try a different card, Apple Pay or Google Pay, or buy POL on an exchange and withdraw it to your own wallet on the Polygon network. MoonPay is an independent provider with its own fees, limits and a first-time ID check (minimum order usually around $30).' },
|
|
{ id: 'f-same-wallet-positions', title: 'One wallet, one position', source: 'faq',
|
|
questions: ['Can I use the same wallet for more than one position?', 'How do I add positions for Qualified Start?'],
|
|
tags: ['wallet', 'position', 'qualified start', 'metamask'],
|
|
answer: 'One address is one position on the contract. For Qualified Start, add extra accounts inside MetaMask, each with its own address, and link them as positions under your main wallet. The Qualified Start videos in Training walk through it.' },
|
|
{ id: 'f-payouts-where', title: 'Where do my payouts go?', source: 'faq',
|
|
questions: ['Where do my payouts go?', 'Which wallet gets paid?', 'Does the site hold my earnings?'],
|
|
tags: ['payout', 'wallet', 'custody'],
|
|
answer: 'To the wallet address you switched payouts on with, in the same transaction as the purchase that earned them. Nothing is held on the site. The Wallet screen in your Control Room shows what was paid to that wallet.' },
|
|
{ id: 'f-exchange-withdraw', title: 'Sending POL from an exchange', source: 'faq',
|
|
questions: ['How do I send POL from Binance or Kraken?', 'Which network do I pick when withdrawing from an exchange?', 'I sent POL on the wrong network'],
|
|
tags: ['exchange', 'withdraw', 'network', 'polygon', 'binance', 'kraken'],
|
|
answer: 'Coinbase, Kraken, Binance and most exchanges sell POL. Withdraw it to your own wallet address and pick the Polygon network on the withdrawal screen, never MATIC on Ethereum or another chain. Sending on the wrong network can lose the funds, so send a small test first.' },
|
|
{ id: 'f-claim-streak', title: 'The daily set and the claim streak', source: 'faq',
|
|
questions: ['How does the daily claim streak work?', 'How much does the daily claim pay?', 'When does the daily ad set reset?'],
|
|
tags: ['daily set', 'claim streak', 'earn credits', 'reset'],
|
|
answer: 'Earn credits > Watch ads gives five ads a day: each opens full screen, a 10-second countdown runs, you pass a quick click-the-icon check and earn 1 credit. Finish all five and Claim appears. The claim pays 5 credits on day 1, 7 on day 2, 10 from day 3, and 25 on every 7th day in a row; miss a day and it restarts. Days are counted in UTC, so the set resets at 7 PM Central (6 PM in winter time). Credits are ad delivery, never money.' },
|
|
{ id: 'f-visits-videos', title: 'Verified visits, videos and inbox ads', source: 'faq',
|
|
questions: ['How do verified visits pay?', 'How many videos can I watch a day?', 'How do inbox solo ads pay?'],
|
|
tags: ['verified visits', 'videos', 'inbox', 'earn credits'],
|
|
answer: 'After the daily set is claimed you can make up to 20 verified visits a day, 1 credit each: open a member\'s site in a new tab and stay for the dwell; each is a different site. Videos credit only when they play to the end, up to 6 a day, paying by length. Inbox solo ads: open the message, visit the advertiser\'s link, then claim 2 credits, once per message. Signing in also pays 5 credits a day, rising by one per day in a row up to 10.' },
|
|
{ id: 'f-spend-credits', title: 'What to do with earned credits', source: 'faq',
|
|
questions: ['What do I do with my credits?', 'How do I spend my credits?', 'My credits are just sitting there'],
|
|
tags: ['credits', 'campaign', 'spend'],
|
|
answer: 'Credits sitting in your balance do nothing. Open Ads in your Control Room, start a new banner or text campaign, give it a budget in credits and point it at your own invite link or wall. Banner and text ads also push out to the partner network. A campaign reserves its whole budget the moment it starts, and login ads are the one format that needs purchased credits.' },
|
|
{ id: 'f-recovery-phrase', title: 'Recovery phrase and scam safety', source: 'faq',
|
|
questions: ['Someone asked for my recovery phrase', 'Will support ever ask for my private key?', 'Someone messaged me asking for money'],
|
|
tags: ['recovery phrase', 'private key', 'scam', 'security'],
|
|
answer: 'Never share your recovery phrase (the 12 or 24 words) or private key with anyone: whoever has them has your money. Nobody from LinkSpin will ever ask for them, and the site never sees them. If someone does ask, do not reply, and tell support through Help at ' + SITE_URL + '/help.' }
|
|
];
|
|
module.exports = { FAQ };
|