Autowhore
ATW PLATFORM

UTC

Sign inRegister
AI Extension GuideLINEmessaging

LINE Native Extension Documentation

The LINE AI extension for segmented campaigns, messaging continuity, broadcast execution, and customer-facing insight reporting.

LINE Native Extension • LINE extension documentation • LINE AI extension • LINE extension API • line extension docs • line ai extension

Overview

LINE Native Extension is the SSNATW AI extension for LINE. It gives the platform a dedicated runtime for conversation intelligence and routing, so the experience feels native, fast, and fully integrated with the rest of the product.

The extension follows the same marketplace installation and agent attachment model used across SSNATW. After activation, it can run under standard permissions or under ranks that include root access, which can manage the full extension lifecycle, credentials, recovery actions, and advanced controls.

This guide documents the extension as a live product capability. It covers what the extension does, what users can expect to see, which service endpoints support it, and how the core runtime objects are structured.

What this extension delivers

  • A dedicated LINE runtime for campaigns and segmented communication.
  • AI-guided outbound behavior and follow-up continuity.
  • Clear insight into broadcast coverage and audience response.

User-facing signals

  • Segment response
  • Broadcast coverage
  • Follow-up completion

Capabilities

LINE Native Extension is designed as a first-class AI extension. The workflow below describes how the runtime, user experience, and management layer fit together in production.

  1. Attach the extension to the target agent and enable LINE behavior.
  2. Configure segmentation, campaign intent, and AI conversation policy.
  3. Use extension insights to monitor broadcast response and follow-up completion.

API Surface

The extension surface is split into marketplace APIs for discovery and installation, runtime APIs for AI execution and analytics, and management APIs for configuration and advanced control.

SurfaceMethodPathPurpose
marketplaceGET/api/marketplace/extensionsList extension offers available in the marketplace catalog.
marketplaceGET/api/marketplace/extensions/:idRead the marketplace record for LINE Native Extension.
marketplacePOST/api/marketplace/extensions/installInstall the extension to a private agent or shared agent.
managementGET/api/agents/:agent_id/extensionsList extension attachments on a private agent.
managementGET/api/shared-agents/:agent_id/extensionsList extension attachments on a shared agent.
runtimePOST/api/extensions/native-line/runtime/executeExecute an AI action such as publish, reply, score, route, or monetize depending on the extension family.
runtimeGET/api/extensions/native-line/runtime/insightsRead insight data used by analytics cards, trends, and detail views.
managementGET/api/extensions/native-line/management/configRead active runtime policy, access tier, and extension configuration.
managementPUT/api/extensions/native-line/management/configUpdate runtime policy, AI behavior rules, and extension settings.

Function Calls and Integration Examples

The following snippets show the extension from a real integration perspective: install it, read its attached state, then drive runtime behavior and analytics through explicit service calls.

Install through the marketplace API

import { installMarketplaceExtension } from '../api/marketplace';

await installMarketplaceExtension({
  offerId: <extension-id>,
  agentUuid: '<agent-uuid>',
  installMode: 'purchase',
  notes: 'Enable LINE Native Extension on the primary LINE agent.'
});

Read installed attachment state

import { listAgentExtensions } from '../api/agents';

const attachments = await listAgentExtensions(<agent-id>);
const installed = attachments.find((item) => item.offer_slug === 'native-line');

if (installed?.status === 'active') {
  console.log('LINE Native Extension is live on this agent');
}

Execute the AI runtime and read insights

import { apiFetch } from '../api/client';

await apiFetch('/api/extensions/native-line/runtime/execute', {
  method: 'POST',
  body: JSON.stringify({
    agent_uuid: '<agent-uuid>',
    intent: 'route_conversation',
    context: {
      platform: 'line',
      priority: 'high',
      resource: 'conversation-snapshot',
      conversation_id: '<conversation-id>'
    }
  })
});

const insights = await apiFetch('/api/extensions/native-line/runtime/insights');
console.log(insights.summary);

Extension Data Structures

These structures define the core extension object, the installed attachment record, and the runtime data shape used by the AI orchestration and analytics layers.

Marketplace extension record

The catalog object returned by the marketplace extension APIs.

export interface MarketplaceExtensionRecord {
  id: number;
  slug: 'native-line';
  name: 'LINE Native Extension';
  version: string;
  status: 'active' | 'published' | 'beta' | 'deprecated';
  description: string;
  author?: string | null;
  extension_type: 'social';
  platform: 'line';
  capabilities: string[];
  required_permissions: string[];
  documentation_url?: string | null;
  pricing_model?: 'free' | 'one_time' | 'subscription' | 'revenue_share';
  price?: number | null;
  revenue_share_percent?: number | null;
  is_official?: boolean;
  install_count?: number;
  rating?: number;
  review_count?: number;
  created_at?: string;
  updated_at?: string;
}

Agent extension attachment

The normalized attachment object created after installation.

export interface AgentExtensionAttachment {
  id: number;
  agent_id: number;
  offer_id: number;
  offer_name: string;
  offer_slug: string;
  status: string;
  install_mode: 'trial' | 'purchase' | 'queued';
  billing_model: string;
  revenue_share_percent?: number | null;
  upfront_price?: number | null;
  notes?: string | null;
  created_at: string;
  activated_at?: string | null;
}

Extension runtime insight payload

The runtime object used by the AI execution and analytics layers.

export interface ExtensionRuntimeInsight {
  extension_slug: 'native-line';
  platform: 'line';
  agent_uuid: string;
  status: 'active' | 'degraded' | 'paused';
  summary: string;
  metrics: {
      reply_rate: 0.81,
      queue_pressure: 22,
      conversations_active: 184
  };
  controls: {
    automation_mode: 'assisted' | 'autonomous' | 'priority';
    access_tier: 'standard' | 'root';
  };
  updated_at: string;
}

MessagingSnapshot

A conversation-level payload for message queue state, routing outcome, and reply performance.

export interface MessagingSnapshot {
  extension_slug: 'native-line';
  platform: 'line';
  conversation_id: string;
  queue_state: 'open' | 'pending' | 'escalated' | 'closed';
  assigned_route: 'ai' | 'hybrid' | 'human';
  reply_rate: number;
  queue_pressure: number;
  last_message_at: string;
  updated_at: string;
}

Extension Lifecycle

  1. Discover the extension in the marketplace and open its detail page.
  2. Install it to the target private agent or shared agent through the marketplace installation flow.
  3. Activate the runtime profile, channel policy, and AI behavior rules that define how the extension should operate.
  4. Allow the extension to execute publishing, messaging, visibility, or monetization tasks through the AI runtime layer.
  5. Review health, insights, and control status through the extension management surface.
  6. Scale, refine, or override behavior as needed through standard controls or rank-based root access.

Platform Notes

  • LINE should remain the canonical platform identifier across routing, analytics, caching, and UI state.
  • The user-facing dashboard should stay focused on clear outcomes and not drown the account in low-level noise.
  • Configuration, credentials, and advanced controls should stay consistent across marketplace, runtime, and management surfaces.
  • Ranks that include root access are allowed to manage installation, runtime policy, credentials, execution controls, analytics settings, and recovery actions across the full extension surface.
  • Extension schemas should stay additive and versionable so the runtime can evolve without breaking existing agents or dashboards.

Frequently Asked Questions

What does LINE Native Extension add to LINE?
LINE Native Extension adds a dedicated AI runtime for LINE so the platform can manage execution, insights, and policy through one consistent extension surface.
Who can manage the full extension configuration?
Standard permissions can install and use the extension. Ranks that include root access can manage the complete extension surface, including runtime policy, credentials, execution rules, security settings, and recovery controls.
What changes when a root-access rank manages the extension?
Root-access management unlocks the full operational surface for the extension, including installation control, runtime policy, credentials, execution rules, analytics settings, and recovery actions.
What will the user normally see?
The user sees the performance summary, health signals, and analytics relevant to LINE. They do not need to manage low-level runtime mechanics to benefit from the extension.