Write with AI – Setup and Configuration

The Write with AI feature in DigiFusion Pro adds an AI-powered content generation button to your WordPress post editor. This guide explains how to set up and configure this feature to start generating content with OpenAI’s ChatGPT or Anthropic’s Claude.

Accessing AI Settings

Navigate to your WordPress admin dashboard and go to DigiFusion > Write with AI. This page contains all the configuration options for the AI writing assistant.

Enable Write with AI

Toggle the Enable Write with AI switch to activate the feature. Once enabled, an AI writing button will appear in your post editor for the selected post types.

Choose AI Provider

DigiFusion Pro supports two AI providers:

OpenAI (ChatGPT) – Uses GPT-4o-mini model for content generation Anthropic (Claude) – Uses Claude Sonnet 4 model for content generation

Select your preferred provider from the dropdown menu. Each provider requires its own API key configuration.

Configure API Keys

OpenAI API Key Setup

  1. Visit the OpenAI API Keys page
  2. Create a new API key or copy an existing one
  3. In the DigiFusion AI settings, paste your API key in the OpenAI API Key field
  4. The key format should start with sk-

Anthropic API Key Setup

  1. Visit the Anthropic Console
  2. Generate a new API key from your account settings
  3. In the DigiFusion AI settings, paste your API key in the Anthropic API Key field
  4. The key format should start with sk-ant-

Select Post Types

Choose which post types should have the AI writing button available:

  1. Click on the Choose Post Types field
  2. Select from available post types (Post, Page, Custom Post Types)
  3. Multiple post types can be selected
  4. By default, only Posts are enabled

Configure Max Tokens

Set the maximum number of tokens for AI content generation:

  • Minimum: 50 tokens
  • Maximum: 4000 tokens
  • Recommended: 500-2000 tokens
  • Default: 1000 tokens

Higher token values allow for longer content generation but may increase API costs. The system automatically adjusts tokens based on content length requests.

Save Configuration

Click Save AI Settings to apply all changes. The AI writing button will now appear in the editor for your selected post types.

Using the AI Writing Assistant

In Gutenberg Editor

  1. Open any post or page in the Gutenberg editor
  2. Look for the AI writing button in the editor toolbar
  3. Click the button to open the content generation dialog
  4. Enter your prompt and content preferences
  5. Click Generate Content to create AI-powered content

In Classic Editor

  1. Open any post or page in the Classic Editor
  2. Find the Write with AI button above the content area
  3. Configure your content requirements in the popup
  4. Generate and insert content directly into the editor

Content Generation Options

When using the AI assistant, you can specify:

  • Content Title: Descriptive title for your content
  • Keywords: Comma-separated keywords for precision
  • Content Tone: Professional, casual, friendly, etc.
  • Content Length: Short (200-400 words), Medium (400-600 words), Long (600-1000 words), Very Long (1500-2000 words)
  • Custom Prompt: Detailed instructions for content generation

Verification and Testing

After configuration, test the setup:

  1. Create a new post in your selected post type
  2. Verify the AI button appears in the editor
  3. Try generating a small piece of content
  4. Check that the API connection works properly

If the button doesn’t appear, ensure the AI feature is enabled and the current post type is selected in the configuration.