=== FastFlow ===
Contributors: andrea-ferracani, giuseppe-becchi
Tags: whatsapp, ai, posts, automation, rest-api
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Create and update WordPress posts from WhatsApp materials processed by a central AI service.

== Description ==

FastFlow connects WordPress to a central WhatsApp and AI service so site owners can create, edit and publish posts from authorized WhatsApp text messages, photos and WhatsApp voice notes.

The plugin does not include general WhatsApp credentials or AI model credentials. It manages the local WordPress configuration, verified phone numbers for individual WordPress users, protected REST endpoints, post creation and editing, media uploads and a short activity log.

Main features:

* four tabs in the WordPress admin: Connect site, Users activation, Publishing settings and Operation log;
* personal WhatsApp numbers managed directly in the Users activation tab;
* separate verification, revocation and conversations for each user;
* WordPress user permissions and post authorship preserved;
* two-step phone verification with a temporary code;
* default post status: draft or published;
* default category and author;
* optional excerpt, tag and image alternative text generation;
* optional use of the first received image as the featured image;
* editorial instructions, generated-content language and indicative length;
* localized interface with starter catalogs for multiple languages;
* protected REST API using HMAC signatures, timestamps, nonces and installation identifiers;
* idempotency for post creation and post updates;
* post search and read endpoints for later WhatsApp edits.

== Installation ==

1. Upload the `fast-flow` folder to `/wp-content/plugins/`.
2. Activate the plugin from the WordPress Plugins screen.
3. Open FastFlow from the WordPress admin sidebar.
4. Open Connect site. Phone numbers are managed in the Users activation tab.
5. Configure post status, category, author and editorial style.
6. Use Connect site to register the installation with the central backend.
7. Open Users activation, find the WordPress user, save the personal number, then use Send code and Confirm code.

In development, the backend URL can be configured with the `FASTFLOW_BACKEND_BASE_URL` environment variable when `WP_DEBUG` is enabled. In production, the service URL is controlled by the product and is not editable by users in the WordPress admin.

== Frequently Asked Questions ==

= Does the plugin include WhatsApp Business or an AI model? =

No. The WordPress plugin does not include WhatsApp credentials, direct Meta integrations or AI credentials. It communicates with a compatible central backend.

= Who can create or edit posts through WhatsApp? =

Each user with a verified phone can operate according to their existing WordPress role. New posts belong to the user sending the message. Verification does not grant publishing, editing-other-posts or upload permissions.

= Does the plugin publish posts automatically? =

No. Preparing a preview does not save or publish a post. After reviewing the preview, choose Save as draft or Publish. WordPress role permissions still apply.

= Can a post be edited after it has been created through WhatsApp? =

Yes. The central backend can use the latest post in the conversation, or search and read existing posts through the plugin's protected REST endpoints.

= What is stored in the activity log? =

Only summary data: date, operation, related post, status and a short message. The plugin does not store tokens, secrets or full WhatsApp messages in the activity log.

== External services ==

This plugin communicates with a central FastFlow backend service to register the installation, verify the authorized phone number, read connection status, revoke the connection and run diagnostic tests.

Data sent to the service:

* site domain;
* opaque installation identifier;
* plugin version;
* plugin REST API URL;
* each user’s WordPress ID, display name and personal phone number;
* post creation settings;
* configured editorial instructions;
* temporary verification code entered during phone verification.

The central service is also responsible for receiving WhatsApp messages, grouping submitted materials, running voice transcription or AI analysis where applicable, and calling the plugin's protected REST endpoints to create or edit content.

Production API endpoint: https://wa.fotolito-fiorentine.com/api.
Customer account: https://wa.fotolito-fiorentine.com/fast-flow/account/login.

The plugin is free. A verified number starts a one-time trial with 3 articles and 10 audio minutes, valid for 14 days. The first completed preview counts as an article, including up to two AI revisions. Saving or publishing that preview does not consume another article. Further revisions and edits to older articles use a new article allowance. Reinstalling does not reset the trial. No card is required and there is no automatic paid subscription.

Video, PDF/document analysis, image recognition and automatic location processing are not supported. Photos can be selected and reordered by their assigned numbers. Precise word edits, formatting and layout should be completed in WordPress.

Privacy: https://fast-flow.app/privacy/
Terms: https://fast-flow.app/terms/
Support: https://fast-flow.app/support/
Contact: info@fotolito-fiorentine.com

== Privacy ==

FastFlow stores locally:

* plugin settings;
* installation identifier;
* installation-specific secret;
* short activity log;
* idempotency keys used to avoid duplicate operations.

Uninstalling the plugin removes local FastFlow options. It does not delete posts or media created by the plugin.

== Screenshots ==

1. FastFlow connection panel in WordPress administration.
2. User phone activation and verification inside the plugin.
3. Publishing settings and editorial instructions.
4. Recent operation log.
5. Connection diagnostics and disconnection controls.

== Changelog ==

= 0.2.1 =
* Public, versioned distribution package and current service documentation.
* Clarified account access, trial allowances, previews and supported materials.

= 0.2.0 =
* Rebranded as FastFlow; existing credentials, user activations and settings are migrated automatically.

= 0.1.0 =

* Initial MVP release.
* Added a dedicated FastFlow page in the WordPress admin sidebar.
* Added connection settings, authorized phone number verification flow, post creation defaults and editorial style settings.
* Added protected REST endpoints for status, post search, post read, post creation, post update and media upload.
* Added HMAC request authentication with timestamp, nonce and installation identifier checks.
* Added idempotency handling for post creation and post updates.
* Added a short local activity log with operation badges, status colors, feedback messages and contextual edit/view links.
* Added stricter admin input validation for phone number, verification code, category, author and editorial instructions.
* Added backend client methods for installation registration, phone verification, status, disconnect and diagnostics.
* Added OpenAPI contracts for plugin inbound API and backend service API.
* Added two-step phone verification.
* Added localization support, Italian runtime translation and starter translation catalogs for English, Spanish, French, German, Brazilian Portuguese, Simplified Chinese, Japanese, Korean, Arabic and Hindi.
* Added uninstall cleanup for local plugin options.

== Upgrade Notice ==

= 0.1.0 =

Initial MVP release.
