> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# X Intelligence Automation

> Monitor X/Twitter competitors, influencers, trends, and conversations.

[View on GitHub →](https://github.com/AIsa-team/agent-skills/tree/main/social-media/x-intelligence-automation)

**X intelligence for agents.** Monitor profiles, tweets, trends, and engagement signals through the AIsa relay.

## Install

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill x-intelligence-automation
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install x-intelligence-automation
```

Start a new agent session after installing so the skill loads.

## What can agents do with it?

> [card] Competitor tracking
>
> Track competitor accounts and market reactions.

> [card] Influencer monitoring
>
> Follow what key people are posting and discussing.

> [card] Trend detection
>
> Spot emerging narratives in X/Twitter activity.

> [card] Mention analysis
>
> Summarize mentions, replies, and conversation themes.

## When to use

* The user wants Twitter/X research plus posting, liking, unliking, following, or unfollowing workflows.
* The task can use a Python client with `AISA_API_KEY` and explicit OAuth approval.
* The workflow needs a single package that covers read, post, and engagement actions.

## When NOT to use

* The user needs cookie extraction, password login, or a fully local Twitter client.
* The workflow must avoid relay-based network calls or media upload through `api.aisa.one`.
* The task needs undocumented secrets or browser-derived auth values.

## Quick Reference

* Required environment variable: `AISA_API_KEY`
* Read client: `scripts/twitter_client.py`
* Post client: `scripts/twitter_oauth_client.py`
* Engage client: `scripts/twitter_engagement_client.py`
* References: `references/post_twitter.md`, `references/engage_twitter.md`

## Setup

```bash theme={null}
export AISA_API_KEY="your-key"
```

## Common Commands

```bash theme={null}
python3 scripts/twitter_client.py search --query "AI agents" --type Latest
python3 scripts/twitter_oauth_client.py authorize
python3 scripts/twitter_engagement_client.py follow-user --user "@elonmusk"
```

## Capabilities

* Research Twitter/X accounts, tweets, trends, lists, communities, and Spaces.
* Publish text, image, and video posts after explicit OAuth approval.
* Like, unlike, follow, and unfollow after authorization exists.

## Get started

1. Sign up at [aisa.one](https://aisa.one) and create an API key in the console.
2. Set it in your shell: `export AISA_API_KEY="your-key"`.
3. Install the skill with one of the commands under [Install](#install), then start a new agent session.

## Related

> [card] [AIsa Twitter API](https://aisa.one/docs/agent-skills/aisa-twitter-api.md)
>
> X/Twitter data access for intelligence tasks.

> [card] [Last 30 Days](https://aisa.one/docs/agent-skills/last30days.md)
>
> Multi-source recent evidence research.

> [card] [Trend Forecast](https://aisa.one/docs/agent-skills/trend-forecast.md)
>
> Combine social signal with market and news data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.