=== Cogitas Chatbot ===
Contributors: citechat
Tags: chatbot, ai, chat, support, assistant
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.2
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Integrate your Cogitas AI assistant into WordPress as a floating widget or an in-page iframe.

== Description ==

The plugin connects your WordPress site to an assistant built on the Cogitas platform. It embeds the public widget script or a chat iframe. It does not store API keys or provider credentials. Responses are processed on the Cogitas platform, which verifies authorized domains.

= Features =

* Configuration page under Settings → Cogitas.
* Platform URL and public assistant ID.
* Floating bubble on all pages or an iframe embedded in the page.
* Bubble position: bottom-right or bottom-left.
* Shortcode `[ai_chatbot]` to embed the chat in a page or post.
* Interface available in Italian, US English, German, French, Spanish, and Brazilian Portuguese, matching your WordPress language setting.

== Installation ==

1. Open your assistant in the Cogitas dashboard and copy its public ID.
2. In WordPress, go to Plugins → Add New → Upload Plugin, select the ZIP file, and activate it.
3. Navigate to Settings → Cogitas.
4. Enter the platform address (e.g., https://cogitas.ai) and the assistant ID.
5. Choose either the floating bubble, which appears automatically on all pages, or the iframe. For the iframe, insert `[ai_chatbot]` where you want the chat to appear.
6. Save settings.

== Frequently Asked Questions ==

= Does the plugin contain my API key? =

No. It uses only the public assistant ID. Do not enter credentials into your site's HTML code.

= The widget does not appear =

Check the ID and verify that your WordPress domain is authorized in the assistant settings within Cogitas. The platform rejects requests from unauthorized domains.

= How do I embed the chat on a page? =

Use `[ai_chatbot]`. To set dimensions, use `[ai_chatbot height="600" width="100%"]`.

== Changelog ==

= 1.2.0 =
* Full interface in all six supported languages, including Brazilian Portuguese.

= 1.0.0 =
* First release: settings, floating widget, and iframe shortcode `[ai_chatbot]`.