AI

In this section, you will learn about the process of using AI to create unique content.

To use AI for generating content on your website, follow these instructions:

Set up the API Key: You can configure your AI provider API key in two ways:

Option 1: Plugin Settings

  1. Navigate to the News Parser plugin settings in your WordPress admin panel.

  2. Look for the AI Settings or API Keys section (the exact name may vary depending on the plugin version).

  3. Enter your API key for your chosen AI provider in the designated field.

  4. Save the plugin settings.

Option 2: wp-config.php File

  1. Open your website's wp-config.php file.

  2. Add the following line to define your API key: define('NEWS_PARSER_OPENAI_API_KEY', 'your_key'). (Please note that currently, only OpenAI is fully supported as an AI provider. While other providers might be listed, compatibility and functionality may be limited. Refer to the plugin documentation for the latest information on supported providers.)

  3. Free Tier (OpenAI): If you are using the OpenAI free tier, also include define('NEWS_PARSER_OPENAI_FREE_TIER', true) to account for the limitations on the number of requests per minute imposed by OpenAI's free tier. Failure to include this parameter when using the OpenAI free tier may result in errors due to rate limiting.

  4. Save the wp-config.php file.

Priority: If you set the API key in both the plugin settings and wp-config.php, the API key configured in the plugin wp-config.php will generally take precedence.

After setting up your API key, proceed with the following steps to use AI within the Visual Constructor:

Access the Visual Constructor: Go to the Visual Constructor within your website's admin panel.

Select the AI Provider: In the AI tab of the Visual Constructor, you will see a list of available AI providers. Choose the desired provider from the list.

Generate Post Title: In the Post Title section, check the "Generate using AI" option if you want to generate a new title for your post. Select the desired AI model from the dropdown and enter a prompt in the provided text area. Use ${title} in the prompt wherever you want to insert the original title as context for the AI.

Generate Post Body: In the Post Body section, select the desired AI model for generating the post's content. Enter a prompt in the request field and use ${post} as a placeholder where you want to include the original article's text. You can also use the tag ${title} here to reference the post title within the prompt context.

Add Pipeline (Optional): If you need to modify the text using multiple AI requests in sequence (a pipeline), open the "Add Pipeline" tab. Enter the additional request text for the subsequent AI modification step. The input for each step in the pipeline automatically includes the result from the previous step, allowing for iterative refinement. Click "Add Prompt" to add this request to the pipeline. With a pipeline, you can, for example, ask the AI to review the results of the previous generation, refine the style, or request translation of the generated text into another language.

Apply AI Modifications: After configuring the AI settings for content modification, you can apply them immediately to the content currently in the Visual Constructor. Select the desired content blocks and click the "Create Post" button. Alternatively, you can save these AI settings as part of a parsing template. When saved in a template, the AI modifications will be automatically applied during RSS parsing or when using the autopilot function with that template.

Important Considerations:

  • API Costs: Please note that using AI for content generation requires making API requests to your chosen AI provider's API (e.g., OpenAI API). These API requests will likely incur charges on your account with the AI provider, depending on their pricing model and your usage. Be mindful of your API usage and associated costs.

  • Processing Time: The AI generation process can take a significant amount of time, especially for complex prompts or lengthy content. Processing times will vary depending on the AI model, prompt complexity, and the length of the content being processed.

  • Token Consumption and "Save Post Structure": If you are using an option to "Save Post Structure" during parsing (this option might be available in template settings or visual constructor settings, depending on plugin version), be aware that enabling this feature can lead to increased token consumption when using AI. Saving post structure typically means including more HTML markup and potentially larger amounts of data in the content sent to the AI API. This increased data volume directly translates to higher token usage and therefore potentially higher API costs. Consider whether preserving the post structure is essential for your use case, as parsing and processing plain text content can be more token-efficient.

By following these instructions, you can effectively use artificial intelligence to enhance content creation for your website, whether you are parsing individual pages, processing RSS feeds, or utilizing the autopilot function for automated content population. Remember to carefully configure your API key, select appropriate AI models, design effective prompts, and be mindful of the considerations regarding pipeline usage and token consumption when preserving post structure.

Last updated