FluentAPI SDK Documentation

Platform integrations for borderless communication

fluent-api-sdk@2.0.1 (Secure)

🚀 Quick Start

# Install the SDK
npm install
fluent-api-sdk

# Basic Usage
const FluentAPI = require('fluent-api-sdk')
const client = new FluentAPI({ apiKey: 'your-api-key' })

// Enable borderless communication
const result = await client.borderless({
'conversationId': 'marketplace_chat_123',
'senderLang': 'mn', 'recipientLang': 'es',
'message': 'Сайн байна уу, миний машин эвдэрсэн'
})

💡 What makes this unique: Each person types and reads in their native language. Perfect for marketplace communication, international business, customer support, and global communities!

📘 Facebook Messenger

const { Facebook } = require('fluent-api-sdk')

const fb = new Facebook({
apiKey: 'your-fluent-api-key',
pageAccessToken: 'your-fb-token',
verifyToken: 'your-verify-token'
})

// Express middleware
app.use('/webhook', fb.createExpressMiddleware())
Features: Webhook verification, automatic translation, original text display, Express middleware

📱 WhatsApp Business

const { WhatsApp } = require('fluent-api-sdk')

const wa = new WhatsApp({
businessPhoneId: 'your-phone-id',
accessToken: 'your-wa-token'
})

// Process webhook
const result = await wa.processAndForward(webhookBody)
Features: Template messages, read receipts, Business API integration, message forwarding

⚡ Slack

const { Slack } = require('fluent-api-sdk')

const slack = new Slack({
botToken: 'xoxb-your-token',
signingSecret: 'your-secret'
})

// Register slash commands
await slack.registerSlashCommands()
Features: /translate, /set-language commands, thread replies, rich blocks, channel languages

🎮 Discord

const { Discord } = require('fluent-api-sdk')

const discord = new Discord({
botToken: 'your-discord-token',
applicationId: 'your-app-id'
})

// Register slash commands
await discord.registerSlashCommands()
Features: Rich embeds, slash commands, user preferences, guild languages, message replies

🌍 Real-World Example: Marketplace Communication

The Problem:

A Mongolian user needs mechanic help from Facebook Marketplace. The mechanic speaks Spanish. Without FluentAPI: Communication impossible! 🚫

With FluentAPI: They communicate seamlessly in their native languages! ✅

📱 User's Phone (Mongolian)

You write:

Сайн байна уу, миний машин эвдэрсэн

Mechanic (translated to Mongolian):

Ямар асуудал байна? Би танд туслах болно

[¿Cuál es el problema? Puedo ayudarte]

🔧 Mechanic's Phone (Spanish)

Cliente (traducido al español):

Hola, mi coche está averiado

[Сайн байна уу, миний машин эвдэрсэн]

Tú escribes:

¿Cuál es el problema? Puedo ayudarte

📡 API Reference

Borderless Communication Endpoint

POST
https://www.fluentapi.io/api/borderless

Headers:
"Content-Type": "application/json"
"Authorization": "Bearer your-fluent-api-key"

Body:
{
"conversationId": "marketplace_123",
"senderId": "user_mongolia",
"senderLang": "mn",
"recipientId": "mechanic_mexico",
"recipientLang": "es",
"message": "Сайн байна уу, миний машин эвдэрсэн"
}

Response Format

{
"success": true,
"original": {
"text": "Сайн байна уу, миний машин эвдэрсэн",
"language": "mn"
},
"translated": {
"text": "Hola, mi coche está averiado",
"language": "es"
},
"integrations": {
"facebook": { /* Facebook format */ },
"whatsapp": { /* WhatsApp format */ },
"slack": { /* Slack format */ }
}
}

Ready to Break Language Barriers?

Join developers worldwide building the future of global communication