Jido Chat X

Hex.pmHex DocsCILicenseWebsiteEcosystemDiscord

jido_chat_x adapts X/Twitter Direct Messages to the Jido.Chat.Adapter contract.

The adapter is built on xdk-elixir for API calls.

Installation

def deps do
  [
    {:jido_chat_x, "~> 0.1"}
  ]
end

Feature surface

X Direct Messages do not support message edits, reactions, modals, or ephemeral messages through this adapter.

Live testing

Set:

RUN_LIVE_X_TESTS=true
RUN_LIVE_X_SEND_TESTS=false
X_CONSUMER_KEY=
X_CONSUMER_SECRET=
X_ACCESS_TOKEN=
X_ACCESS_TOKEN_SECRET=
X_TEST_RECIPIENT_ID=

RUN_LIVE_X_TESTS=true enables read-only credential verification. Set RUN_LIVE_X_SEND_TESTS=true only when you want the test suite to create a real DM to X_TEST_RECIPIENT_ID. The authenticated X user must be able to send a DM to that recipient.

Run:

mix test --include live

Webhook setup

X Account Activity webhooks are required for real-time DM ingress.

The adapter deduplicates should be handled by the runtime using the DM event id.