AI Snippet SEO Helper Documentation – RankPilotAI

AI Snippet SEO Helper Documentation

Send perfectly-optimised snippets from RankPilotAI straight into Rank Math with one click.

1. Overview

AI Snippet SEO Helper is a lightweight WordPress add-on that bridges RankPilotAI and Rank Math. It sends the current post/page context to RankPilotAI, receives an optimised snippet and writes it directly into Rank Math fields — without leaving the editor.

Writes into Rank Math only: Focus Keyword, SEO Title, Meta Description and (optionally) the post Slug.

2. Key Features

FeatureDetails
One-click generationSide metabox button on all public post types; fills Rank Math fields instantly.
Bulk actionsGenerate for many posts via WordPress Bulk Actions (live progress + Cancel).
Token-awareBuilt-in Token Guard prevents runs when balance is 0 or below model cost.
Model selectionChoose GPT-4 Turbo, GPT-4.1 or GPT-4o (availability depends on plan).
Custom promptAppend brand tone/extra rules globally to every request.
Auto-slugOptional — overwrite the slug with the AI suggestion. WordPress keeps _wp_old_slug for a 301.
ScoreStores a private _aish_score (0–100) per post based on six SEO checks.

2.1 Token Cost per Model

ModelTokens / Snippet
🟢 GPT-4 Turbo1
🔵 GPT-4.13
🟣 GPT-4o5

3. Requirements

  • WordPress 5.8 or higher
  • Rank Math SEO (Free or Pro)
  • PHP 7.4+
  • An active RankPilotAI account + Site Key

4. Installation & Activation

  1. Upload the ZIP via Plugins → Add New → Upload (or extract to /wp-content/plugins/).
  2. Activate AI Snippet SEO Helper.
  3. Go to Settings → AI Snippet SEO Helper and paste your Site Key.

5. Getting Started

5.1 Generate a Site Key

  1. Log in to your RankPilotAI dashboard.
  2. Open Account → Site Key Management.
  3. Enter your site’s main domain (e.g. example.com) and click Generate Key.
  4. Copy the token (rp_xxxxxxxxxxxxxxxxx).

5.2 Save the Key in WordPress

  1. Go to Settings → AI Snippet SEO Helper → Site Key Management.
  2. Paste your token and click Save Site Key. Usage, limit and remaining tokens will appear.

5.3 Configure SEO Settings (optional)

  • Model Choice — GPT-4 Turbo / 4.1 / 4o (plan-aware).
  • Custom Prompt — global text appended to each request.
  • Auto-Slug — when enabled, the AI slug replaces the current one; WordPress adds a 301 redirect automatically.

6. Day-to-Day Usage

6.1 Single Post / Page

  1. Open a post/page.
  2. In the AI Snippet SEO Helper metabox, click Generate with AI Snippet SEO Helper.
  3. Focus Keyword, SEO Title, Meta Description (and optionally Slug) fill in. Review and update.

6.2 Bulk Generation

  1. Go to any public post-type list (e.g. Posts).
  2. Select items → Bulk Actions → Generate with AI Snippet SEO HelperApply.
  3. A live progress box shows processed / success / failed. You can Cancel mid-run.

6.3 How the Score is Calculated

  • Keyword present in Title, Description and Slug (3 checks)
  • Title length 30–60 chars
  • Description length 120–160 chars
  • Slug length ≤ 75 chars

Final score = min(100, checks passed × 17). Stored in _aish_score (private meta).

7. Admin Panel Reference

7.1 Site Key Management Tab

FieldDescription
Site KeyYour rp_… token. Required for API calls.
Usage OverviewGlobal usage, plan limit, remaining tokens and CTA to upgrade/buy tokens.

7.2 SEO Snippet Settings Tab

OptionDescription
GPT ModelTurbo (all plans), 4.1 (Starter+), 4o (Creator+). Unavailable models appear greyed-out.
Custom PromptAdditional instructions appended to every request.
Auto-update SlugWhen ON, the suggested slug replaces the current one. WordPress preserves _wp_old_slug for a 301.

8. Plans, Tokens & Limits

PlanMonthly TokensSite KeysModels
Free251GPT-4 Turbo
Starter1001GPT-4 Turbo / 4.1
Creator4005GPT-4 Turbo / 4.1 / 4o
Expert1,20025GPT-4 Turbo / 4.1 / 4o

Need extra tokens? Purchase a Token Pack (100 – 5,000 lifetime tokens) from your RankPilotAI dashboard and assign it to AI Snippet SEO Helper.

9. Troubleshooting

Symptom / MessageCauseFix
“No Site Key configured”Site Key missingGo to Settings → AI Snippet SEO Helper → Site Key and save your token.
“No tokens left. Please upgrade.”Balance is 0Buy tokens or upgrade your plan (see Usage card links).
“Not enough tokens for the selected model”Balance < model costSwitch to a cheaper model (GPT-4 Turbo) or buy tokens.
AJAX 403 / bad nonceExpired editor sessionRefresh the page and retry.
Button not visible in editorRank Math inactive or editing unsupported typeActivate Rank Math and ensure you’re editing a public post type.

Permissions: You must be able to edit_post for single runs and edit_posts for bulk; settings require manage_options.

10. Frequently Asked Questions

Does it support Yoast SEO?
Not at this time. The helper integrates directly with Rank Math hooks.
Will bulk generation overwrite existing Rank Math fields?
Yes. Title, Description and (if enabled) Slug are replaced with AI results. Back up if needed.
Where can I see the SEO score?
It’s stored in _aish_score as post meta. Surface it in reports with get_post_meta() if you wish.

11. Developer Hooks & Filters

HookTypePurpose
wp_ajax_aish_generate_singleAJAX actionSingle-post generation endpoint.
wp_ajax_aish_bulk_tick / wp_ajax_aish_bulk_cancelAJAX actionsBulk job tick & cancel endpoints.
aish/snippet_payloadFilterModify outgoing payload before calling the API.
aish/snippet_responseFilterInspect/alter the API response before fields are applied.
aish_http_args, aish_http_retry_codes, aish_http_retries, aish_http_resultFiltersCustomize HTTP args, retry strategy and inspect results.
aish_calc_score()FunctionCompute score array {score, color} from (keyword, title, desc, slug).
/* Example: add a brand suffix to titles only */
add_filter('aish/snippet_response', function($res){
    if (!empty($res['title'])) {
        $res['title'] .= ' | Acme®';
    }
    return $res;
}, 10, 1);

/* Example: inject extra context into outgoing payload */
add_filter('aish/snippet_payload', function($payload, $token){
    $payload['brand_terms'] = ['Acme','UltraLight™'];
    return $payload;
}, 10, 2);