X Create Post

Create posts (tweets) on X (Twitter) with optional reply functionality

Node Type

Action

Category

X Integration

Icon

Twitter

Overview

The X Create Post node is an action node that creates posts (tweets) on X (Twitter) using OAuth authentication. This powerful integration allows you to automate social media posting from your workflows, sharing updates, announcements, and responses to your X account automatically.

Key Features

  • X Integration: Seamlessly creates posts on your X (Twitter) account
  • OAuth Authentication: Uses secure OAuth for user authorization
  • Reply Functionality: Can reply to existing tweets by providing tweet ID
  • Character Limits: Respects X's 280 character limit for standard posts
  • Success Tracking: Returns tweet ID, URL, and content for workflow control
  • Error Handling: Graceful error handling with specific error messages

Prerequisites

X Integration

Must have X integration properly configured

X integration enabled and configured
User has authorized X access with required scopes
Valid OAuth access token for X API

X Account Access

Understanding of X account requirements and permissions

User must have connected their X account
Account must have permission to create posts
Requires tweet write, tweet read, and users read scopes

Technical Requirements

Technical setup and service configuration

Access to X service for tweet operations
Valid OAuth service for token management
Ability to connect to X API endpoints

Node Configuration

Required Fields

Post Text

Type:text
Required:Yes
Value Type:string

The text content of your post. Must be 280 characters or less for standard posts. Can include emojis, hashtags, and mentions.

Optional Fields

Reply To Tweet ID

Type:text
Required:No
Value Type:string

Optional. The ID of a tweet you want to reply to. When provided, your post will be a reply to that tweet instead of a standalone post.

Examples & Use Cases

Automated Announcements

Post product updates and announcements automatically

{
  "postText": "🚀 New feature alert! {{featureName}} is now live. Check it out: {{featureURL}}"
}

Uses template variables to create dynamic announcement tweets based on workflow data.

AI-Generated Content

Post AI-generated social media content

Workflow Structure

🤖 LLM Generate → ✅ Human Approval → 🐦 X Create Post → 📊 Track Engagement
{
  "postText": "{{aiGeneratedTweet}}"
}

Generate tweet content with AI, get human approval, then post to X automatically.

Automated Replies

Reply to mentions or specific tweets

{
  "postText": "Thanks for reaching out! {{customResponse}}",
  "replyToTweetId": "{{mentionTweetId}}"
}

Automatically reply to tweets, useful for customer support or engagement workflows.

Content Distribution

Share blog posts and content across platforms

Workflow Structure

📝 New Blog Post → 🐦 X Post → 💬 Discord Post → 📧 Newsletter

Automatically share new content across multiple social platforms when published.

Best Practices

Do's

  • Keep tweets under 280 characters
  • Use engaging language and emojis
  • Include relevant hashtags for discoverability
  • Test tweets before going live
  • Monitor the Success field before proceeding
  • Use Human Approval for important posts

Don'ts

  • Don't exceed character limits
  • Avoid posting duplicate content repeatedly
  • Don't spam or post too frequently
  • Avoid sensitive information in public tweets
  • Don't ignore X's community guidelines
  • Avoid hardcoding tweet content when possible
💡
Pro Tip: Use emojis and hashtags strategically to increase engagement. Keep the most important information at the beginning of the tweet in case it gets truncated in previews. For AI-generated content, always include a human approval step before posting.

Troubleshooting

Common Issues

Duplicate Content Error

Symptoms: Node fails with duplicate tweet error

Solution: X prevents posting the exact same content multiple times in a short period. Add variation to your tweets (timestamps, unique IDs) or wait before reposting.

Character Limit Exceeded

Symptoms: Node fails with 'text too long' error

Solution: Ensure your tweet text is 280 characters or less. Add logic to truncate long content or split into multiple tweets.

OAuth Errors

Symptoms: Node fails with authentication errors

Solution: Verify the user has connected their X account and granted necessary permissions (tweet write, tweet read, users read). Reconnect the X account if needed.

Rate Limiting

Symptoms: Node fails with rate limit exceeded error

Solution: X has rate limits for posting. Reduce posting frequency and implement delays between tweets. Monitor API usage.

Related Resources