Twitter/X integration allows Errand agents to post tweets on your behalf during task execution. When connected, an agent can compose and publish tweets as part of completing a task.
Prerequisites
Section titled “Prerequisites”- An X/Twitter Developer account (developer.x.com)
- A Developer App with Read and Write permissions
Step 1: Create or configure your X Developer App
Section titled “Step 1: Create or configure your X Developer App”- Go to the X Developer Portal
- Navigate to your Projects & Apps dashboard
- Create a new app or select an existing one
Step 2: Set app permissions
Section titled “Step 2: Set app permissions”- In your app settings, go to User authentication settings
- Set App permissions to Read and Write
- Save your changes
Step 3: Generate API credentials
Section titled “Step 3: Generate API credentials”- In your app settings, navigate to Keys and Tokens
- Generate (or regenerate) the following credentials:
- API Key (also called Consumer Key)
- API Secret (also called Consumer Secret)
- Access Token
- Access Token Secret
- Copy all four values immediately — some are only shown once
Step 4: Enter credentials in Errand
Section titled “Step 4: Enter credentials in Errand”- Open the Errand UI and go to Settings > Integrations
- Find the Twitter/X card and click it
- Enter all four credentials:
- API Key
- API Secret
- Access Token
- Access Token Secret
- Click Test & Save
Errand verifies the credentials against the Twitter API before saving. If verification fails, double-check that you copied the values correctly and that your app has Read and Write permissions.
How it works
Section titled “How it works”- When an agent needs to post a tweet during task execution, it uses your stored credentials to publish via the X API
- All credentials are encrypted at rest using your Errand credential encryption key
- Tasks that use Twitter are automatically tagged with
mediaandpost
Troubleshooting
Section titled “Troubleshooting”| Issue | Solution |
|---|---|
| ”Invalid credentials” error on save | Regenerate your keys and tokens in the X Developer Portal and re-enter them |
| ”Read-only” or “Forbidden” error | Your app permissions are set to Read only — change to Read and Write and regenerate tokens |
| Tweet fails with rate limit error | The X API enforces posting limits — wait and try again, or check your app’s rate limit status in the Developer Portal |
| Credentials not saving | Ensure all four fields (API Key, API Secret, Access Token, Access Token Secret) are filled in |