Premium plugin upgrade -> A1Ai Workspace * * The Premium plugin upgrade is the only "buy the chatbot" nudge. Every other * upgrade surface in the plugin points at the Workspace on a1aidigital.com, * because the Workspace is the destination the free chatbot exists to feed. * * @link https://a1aidigital.com/workspace/ * @since 1.5.0 * * @package A1ai_Chatbot * @subpackage A1ai_Chatbot/includes */ // If this file is called directly, abort. if ( ! defined( 'ABSPATH' ) ) { exit; } /** * Canonical links, pricing and reusable Workspace upsell markup. * * @since 1.5.0 * @package A1ai_Chatbot * @subpackage A1ai_Chatbot/includes * @author A1AI Digital */ class A1AI_Links { /** * Public website root (no trailing slash). */ const SITE = 'https://a1aidigital.com'; /** * Sales / support email address. */ const EMAIL = 'contact@a1aidigital.com'; /** * Sales / support phone number. */ const PHONE = '801-893-1686'; /** * Office hours shown next to the phone number. */ const HOURS = 'Mon-Fri 9am-6pm MT'; /** * Booking link for a live walkthrough. */ const BOOK_CALL = 'https://calendly.com/a1aidigital/30min'; /* --------------------------------------------------------------------- * Pricing — keep these in sync with a1aidigital.com/upgrades-products/ * ------------------------------------------------------------------ */ /** Premium chatbot plugin upgrade (the free -> paid plugin step). */ const PRICE_PREMIUM = '$99/year'; /** Managed chatbot service (we run the chatbot for you). */ const PRICE_MANAGED = '$99/month'; /** Workspace — WordPress package tier. */ const PRICE_WORKSPACE_WORDPRESS = '$299/month'; /** Workspace — Marketing package tier. */ const PRICE_WORKSPACE_MARKETING = '$399/month'; /** Workspace — Full Workspace tier. */ const PRICE_WORKSPACE_FULL = '$499/month'; /** Workspace trial offer. */ const WORKSPACE_TRIAL = 'First month free — cancel anytime'; /* --------------------------------------------------------------------- * URL builders * ------------------------------------------------------------------ */ /** * Build a tracked link to any page on the public website. * * @since 1.5.0 * @param string $path Path relative to the site root, e.g. 'workspace/'. * @param string $campaign utm_campaign value identifying the in-plugin surface. * @return string Absolute, tracked URL. */ public static function url( $path = '', $campaign = '' ) { $url = self::SITE . '/' . ltrim( (string) $path, '/' ); $args = array( 'utm_source' => 'a1ai_chatbot_plugin', 'utm_medium' => 'wp_admin', ); if ( ! empty( $campaign ) ) { $args['utm_campaign'] = sanitize_key( $campaign ); } return add_query_arg( $args, $url ); } /** * The A1Ai Workspace product page — the primary destination of this plugin. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function workspace( $campaign = 'workspace' ) { return self::url( 'workspace/', $campaign ); } /** * Workspace / plugin pricing page. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function pricing( $campaign = 'pricing' ) { return self::url( 'upgrades-products/', $campaign ); } /** * The wider A1AI ecosystem overview (Workspace + plugins + services). * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function ecosystem( $campaign = 'ecosystem' ) { return self::url( 'ai-ecosystem/', $campaign ); } /** * Premium plugin upgrade page (free -> paid chatbot). * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function premium( $campaign = 'premium_upgrade' ) { return self::url( 'ai-wordpress-plugin/', $campaign ) . '#upgrade'; } /** * Done-for-you services page. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function services( $campaign = 'services' ) { return self::url( 'ai-services/', $campaign ); } /** * Contact / free consultation page. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function contact( $campaign = 'contact' ) { return self::url( 'contact/', $campaign ); } /** * Booking link for a live Workspace walkthrough. * * @since 1.5.0 * @return string */ public static function book_call() { return self::BOOK_CALL; } /** * Plugin setup documentation. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function docs( $campaign = 'docs' ) { return self::url( 'ai-wordpress-plugin/setup/', $campaign ); } /** * Target for the public-facing "Powered by A1AI" credit. * * Lands on the free-chatbot page, which is the on-ramp for a visitor who * wants this on their own site — and which links onward to the Workspace. * * @since 1.5.0 * @return string */ public static function powered_by() { return self::url( 'ai-wordpress-plugin/', 'powered_by_widget' ); } /** * Public FAQ. * * @since 1.5.0 * @param string $campaign Surface that produced the click. * @return string */ public static function faq( $campaign = 'faq' ) { return self::url( 'faq/', $campaign ); } /** * A mailto: link with a pre-filled subject. * * @since 1.5.0 * @param string $subject Email subject line. * @return string */ public static function email_link( $subject = '' ) { $url = 'mailto:' . self::EMAIL; if ( ! empty( $subject ) ) { $url .= '?subject=' . rawurlencode( $subject ); } return $url; } /** * A tel: link for the sales line. * * @since 1.5.0 * @return string */ public static function phone_link() { return 'tel:' . preg_replace( '/[^0-9+]/', '', self::PHONE ); } /** * In-plugin Upgrades tab (Settings -> Upgrades, Add-Ons & Services). * * @since 1.5.0 * @return string */ public static function upgrades_tab() { return admin_url( 'admin.php?page=a1ai-settings#tab-upgrades' ); } /* --------------------------------------------------------------------- * Reusable copy * ------------------------------------------------------------------ */ /** * The Workspace feature list, shared by every upsell surface. * * @since 1.5.0 * @return array */ public static function workspace_features() { return array( array( 'title' => __( 'Unified Inbox', 'a1ai-chatbot' ), 'body' => __( 'Every chatbot conversation, email and reply in one place — take over any live chat as a human, then hand it back to the AI.', 'a1ai-chatbot' ), ), array( 'title' => __( 'Built-in CRM & Contacts', 'a1ai-chatbot' ), 'body' => __( 'Chatbot leads become real contacts automatically — tagged, scored and ready to follow up. No copy/paste, no Zapier glue.', 'a1ai-chatbot' ), ), array( 'title' => __( 'Live Knowledge Sync', 'a1ai-chatbot' ), 'body' => __( 'Workspace crawls your whole site, summarizes it with AI and pushes authoritative answers — including pricing — straight into this chatbot.', 'a1ai-chatbot' ), ), array( 'title' => __( 'Email & Campaigns', 'a1ai-chatbot' ), 'body' => __( 'Trigger follow-ups from chat events, send and track campaigns, and manage replies without bouncing between Gmail and your CRM.', 'a1ai-chatbot' ), ), array( 'title' => __( 'Calendar & Booking', 'a1ai-chatbot' ), 'body' => __( 'Appointments booked in chat land on your calendar, linked back to the conversation that created them.', 'a1ai-chatbot' ), ), array( 'title' => __( 'Content, SEO & Reporting', 'a1ai-chatbot' ), 'body' => __( 'AI content generation, SEO health checks, social scheduling and one dashboard showing chat → lead → email → close.', 'a1ai-chatbot' ), ), ); } /* --------------------------------------------------------------------- * Renderers * ------------------------------------------------------------------ */ /** * Render the full A1Ai Workspace promotional panel. * * Used on the Upgrade tab and anywhere the Workspace deserves the * full pitch rather than a nudge. * * @since 1.5.0 * @param array $args { * @type string $campaign Surface identifier for link tracking. * @type string $eyebrow Small label above the title. * @type string $lead Intro paragraph. * @type bool $pricing Whether to show the pricing tiers. * } * @return void */ public static function render_workspace_promo( $args = array() ) { $args = wp_parse_args( $args, array( 'campaign' => 'workspace_promo', 'eyebrow' => __( 'Where this chatbot is really going', 'a1ai-chatbot' ), 'lead' => __( 'The chatbot captures the conversation. A1Ai Workspace is what turns that conversation into a customer — one desktop command center where your chats, contacts, email, calendar, content and reporting finally live together instead of in five disconnected tools.', 'a1ai-chatbot' ), 'pricing' => true, ) ); $campaign = sanitize_key( $args['campaign'] ); ?>

9+
1
∞
$0

'workspace_nudge', 'title' => __( 'Want the whole picture? That is A1Ai Workspace.', 'a1ai-chatbot' ), 'body' => __( 'Workspace connects this chatbot to a CRM, inbox, calendar, campaigns and reporting — so a chat becomes a contact, a follow-up and a closed deal without you moving anything by hand.', 'a1ai-chatbot' ), 'points' => array(), ) ); $campaign = sanitize_key( $args['campaign'] ); ?> 'contact_block', 'title' => __( 'Prefer to talk it through?', 'a1ai-chatbot' ), 'subject' => __( 'A1Ai Workspace question', 'a1ai-chatbot' ), ) ); $campaign = sanitize_key( $args['campaign'] ); ?>

 ·  ()