> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# RegenerateMarketingPlanWithKeywordResearch

# Package: marketingPlan

# Namespace: AiPlanGeneratorService

# Method link: https://dev.wix.com/docs/api-reference/business-management/marketing/marketing-plan/marketing-plan-v1/regenerate-marketing-plan-with-keyword-research.md

## Permission Scopes:
Manage Marketing Plans: SCOPE.PROMOTE.MANAGE-MARKETING-PLAN

## Introduction

Runs fresh SEO keyword research and refreshes the content-plan inputs used for blog activities.

If no plan generation is in progress, the refreshed inputs are followed by marketing-plan
regeneration. If a plan generation is already in progress, this method still refreshes the
keyword research and content-plan inputs without replacing the current plan status or starting
a parallel marketing-plan generation when the refresh completes.

Processing is asynchronous and multi-stage (slower than `RegenerateMarketingPlan`). The
response immediately returns a `status` of `GENERATING`. During the refresh-only path, this
status describes the existing plan generation; no separate refresh-completion status is exposed.
Use this variant after changing the content pillars (the `topics` in the marketing settings)
so future blog activities use the refreshed keyword research.

---

## REST API

### Schema

```
 Method: regenerateMarketingPlanWithKeywordResearch
 Description: Runs fresh SEO keyword research and refreshes the content-plan inputs used for blog activities.  If no plan generation is in progress, the refreshed inputs are followed by marketing-plan regeneration. If a plan generation is already in progress, this method still refreshes the keyword research and content-plan inputs without replacing the current plan status or starting a parallel marketing-plan generation when the refresh completes.  Processing is asynchronous and multi-stage (slower than `RegenerateMarketingPlan`). The response immediately returns a `status` of `GENERATING`. During the refresh-only path, this status describes the existing plan generation; no separate refresh-completion status is exposed. Use this variant after changing the content pillars (the `topics` in the marketing settings) so future blog activities use the refreshed keyword research.
 URL: https://www.wixapis.com/promote/marketing-plan-service/v1/marketing-plan/regenerate-marketing-plan-with-keyword-research
 Method: POST
 Return type: RegenerateMarketingPlanWithKeywordResearchResponse
  - name: status | type: PlanStatus | description: Current plan status. Returns `GENERATING` immediately; poll `GetSocialMarketingPlan` until `ACTIVE` or `FAILED`.  
     - enum:
     -     NEVER_CREATED: No plan has been generated for this site yet.
     -     GENERATING: The plan is currently being generated. Poll `GetSocialMarketingPlan` until status changes.
     -     ACTIVE: The plan is ready to use and activities are available.
     -     INACTIVE: The plan was automatically deactivated after a long period without engagement. An `INACTIVE` plan returns no activities. Calling `GetSocialMarketingPlan` after a long idle period can itself trigger this transition. Generating or regenerating reactivates the plan.
     -     FAILED: Generation failed. Call a generate or regenerate method to try again.


```

### Examples

### Regenerate a marketing plan with keyword research
Regenerate the marketing plan using SEO keyword research to inform the generated activities. Runs asynchronously, so the response returns the current plan status.

```curl
curl -X POST \
'https://www.wixapis.com/promote/marketing-plan-service/v1/marketing-plan/regenerate-marketing-plan-with-keyword-research' \
-H 'Authorization: <AUTH>' \
-H 'Content-Type: application/json' \
-d '{}'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.promoteGrowthToolsMarketingPlan.marketingPlan.regenerateMarketingPlanWithKeywordResearch()
 Description: Runs fresh SEO keyword research and refreshes the content-plan inputs used for blog activities.  If no plan generation is in progress, the refreshed inputs are followed by marketing-plan regeneration. If a plan generation is already in progress, this method still refreshes the keyword research and content-plan inputs without replacing the current plan status or starting a parallel marketing-plan generation when the refresh completes.  Processing is asynchronous and multi-stage (slower than `RegenerateMarketingPlan`). The response immediately returns a `status` of `GENERATING`. During the refresh-only path, this status describes the existing plan generation; no separate refresh-completion status is exposed. Use this variant after changing the content pillars (the `topics` in the marketing settings) so future blog activities use the refreshed keyword research.
 Return type: PROMISE<RegenerateMarketingPlanWithKeywordResearchResponse>
  - name: status | type: PlanStatus | description: Current plan status. Returns `GENERATING` immediately; poll `GetSocialMarketingPlan` until `ACTIVE` or `FAILED`.  
     - enum:
     -     NEVER_CREATED: No plan has been generated for this site yet.
     -     GENERATING: The plan is currently being generated. Poll `GetSocialMarketingPlan` until status changes.
     -     ACTIVE: The plan is ready to use and activities are available.
     -     INACTIVE: The plan was automatically deactivated after a long period without engagement. An `INACTIVE` plan returns no activities. Calling `GetSocialMarketingPlan` after a long idle period can itself trigger this transition. Generating or regenerating reactivates the plan.
     -     FAILED: Generation failed. Call a generate or regenerate method to try again.


```

### Examples

### Regenerate a marketing plan with keyword research
```javascript
import { marketingPlan } from "@wix/promote-growth-tools-marketing-plan";

async function regenerateMarketingPlanWithKeywordResearch() {
  const response =
    await marketingPlan.regenerateMarketingPlanWithKeywordResearch();
}

/* Promise resolves to:
 * {
 *   "status": "GENERATING"
 * }
 */

```

### regenerateMarketingPlanWithKeywordResearch (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { marketingPlan } from '@wix/promote-growth-tools-marketing-plan';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { marketingPlan },
  // Include the auth strategy and host as relevant
});


async function regenerateMarketingPlanWithKeywordResearch() {
  const response = await myWixClient.marketingPlan.regenerateMarketingPlanWithKeywordResearch();
};
```

---