## Content AI Summary ##
Contributors: krishnakrish512, santoshtmp7, younginnovations  
Tested up to: 6.8  
Stable tag: 1.0.0  
Requires at least: 5.0  
Requires PHP: 7.0  
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  
Tags: YIPL, Summary, AI, Gemini API, Post Summarization  

Generate AI-powered summaries for your posts using Gemini AI. Display clean summaries with a shortcode on any supported post type.

## Features ##

- Securely store a Gemini API key via the admin panel  
- Choose specific post types for AI-generated summaries  
- Automatically generate summaries on post save  
- Clean and simple admin interface under **Settings > Gemini API Key**  
- Shortcode `[contaisu_summary]` to display summaries on the front end  
- Modular plugin structure (admin/frontend/core separation)

## Shortcode ##

Use `[contaisu_summary]` inside a post or template to display its AI-generated summary.

## Admin Panel ##

Navigate to **Settings > Gemini API Key** in the WordPress admin:

- Add or update your **Gemini API Key**  
- Choose which post types to enable for AI summaries  

## API Key Instructions ##

Obtain your Gemini API key from:

- [Google AI Studio](https://makersuite.google.com/app/apikey)  
- [Google Cloud Console](https://console.cloud.google.com/apis/credentials)  

> Note: API key must be at least 30 characters long.

## Installation ##

1. Upload the plugin to your `/wp-content/plugins/` directory  
2. Activate it via the WordPress **Plugins** menu  
3. Go to **Settings > Gemini API Key** to enter your API key and select post types

## Requirements ##

- WordPress 6.0 or higher  
- PHP 7.0 or higher  
- Valid Google Gemini API Key

## Frequently Asked Questions ##

= Can I apply summaries to a specific post type? =  
Yes, you can choose which post types the AI summaries apply to from the plugin settings.

## Screenshots ##

1. Backend settings panel  
2. Generate Content

## Release ##

1. Initial release 1.0.0

## Changelog ##

= 1.0.0 =
* Initial release
* Added shortcode `[contaisu_summary]` to render summaries as bullet points

## Upgrade Notice ##

= 1.0.0 =
Initial release with admin settings, Gemini API integration, and frontend shortcode rendering.

## License ##

This plugin is licensed under the GPLv2 or later. For more information, see https://www.gnu.org/licenses/gpl-2.0.html.

## External Services ##

This plugin connects to Google's Gemini API to generate AI-powered summaries of WordPress post content.

- **What is the service?**  
  The Gemini API is a language model developed by Google, capable of summarizing content in multiple languages.

- **What is it used for?**  
  It generates a short summary (3 bullet points) for WordPress posts, which is then displayed in the post editor as a meta box.

- **What data is sent?**  
  When a post is saved or when a summary is manually triggered, the plugin sends the post content (up to 3000 characters) to Google's Gemini API.

- **When is data sent?**  
  Only when the user saves a post or manually clicks the "Regenerate Summary" button.

- **Where is data sent?**  
  To: `https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent`

- **Service Provider:**  
  Google LLC

- **Terms of Service:**  
  https://policies.google.com/terms

- **Privacy Policy:**  
  https://policies.google.com/privacy

This external API is **required** for the plugin to function. If no API key is provided, no data is sent and no summaries are generated.