Skip to content

Gemini CLI · AI app (MCP)

Fliok in Gemini CLI, from your terminal

Add Fliok to Gemini CLI as an MCP server with a scoped Fliok API key, then ask about your WhatsApp chats, templates and leads from the terminal.

Pro and upScoped API keyRevoke any time

Illustration: a developer at a desk with two monitors

This works through Gemini CLI. The Gemini app is not covered.

What you can ask

Ask Gemini CLI, in plain words

Examples, with sample data. The app does only what its tools allow and you approved.

  • “Show today’s unanswered chats”

    Lists the WhatsApp chats waiting for a reply, and who each one is assigned to.

  • “Send the order-update template to this customer”

    Sends an approved template from your own number, through the same checks as the inbox.

  • “Create a lead from this email”

    Adds the lead with a name, number and source. A number you already have is never added twice.

  • “Which of our templates are approved?”

    Reads your templates and Meta’s approval status, so your code uses a template that will send.

Setup

Connect Gemini CLI in 3 steps

  1. 1Make an API key in Fliok and set it as FLIOK_API_KEY in your shell.
  2. 2Add this to ~/.gemini/settings.json (or .gemini/settings.json in a project).
  3. 3Run gemini and type /mcp to see Fliok's tools.
How it signs inFliok API key

A workspace admin creates a Fliok API key with only the scopes the app needs; the app sends it with every call.

https://fliok.com/api/mcp
json
{
  "mcpServers": {
    "fliok": {
      "httpUrl": "https://fliok.com/api/mcp",
      "headers": {
        "Authorization": "Bearer $FLIOK_API_KEY"
      }
    }
  }
}
Gemini CLI in the MCP guide
PlanPro and above
How it connects
MCP address + a Fliok API key
Compare plans

Good to know

  • It works through Gemini CLI, not the Gemini app.
  • A workspace admin creates the API key and picks its scopes; the app can do only what they allow.
  • Keep the key out of shared code and chats: anyone holding it can act in Fliok within its scopes.
  • No money moves through it: it cannot buy a plan, top up the wallet or change how you pay.
  • Messages it sends are ordinary WhatsApp messages: free-form text only inside the 24-hour window, a template outside it, and Meta’s charges as usual.
  • Everything the AI app does goes through the same permissions, plan limits, staff restrictions and audit trail as Fliok’s API.
  • What the AI app reads through Fliok is handled under that app’s own terms.

Got questions?

Questions about Gemini CLI

Anything else, ask us.

Ask Gemini CLI, work in Fliok

Start on the Free plan. Using Fliok from Gemini CLI needs Pro or higher.

Free forever plan · Keep your WhatsApp app