TemplateHelpPricingBlogCommunity
Contact us
Login
Product
Login & Register
Template Center
Integration Apps
Skillsets (AI Tools)
AI Models
API Documentation
Support
Help Center
Tutorial
Roadmap
Brand Assets
Privacy Policy
Terms of Service
Contacts
Community
Contact Sales
Company
Affiliate
About us
AItool-PRO
© 2025 Copyright Bika.ai
twitterLinkedInmedium

X(Twitter) – Upload Media

This automation action uses the X(Twitter) OAuth1.0a integration to upload one or more media files (images, GIFs, or videos) to your authorized X account. Once uploaded, it returns media IDs that you can use in a "Create Tweet" action to publish tweets with media attachments.

ℹ️ Tip: To post a tweet with media, use Upload Media first, then pass the resulting mediaIds into the Create Tweet action.

Illustration of the "X(Twitter) – Upload Media" action

💡 Configuration Instructions

Before you start, make sure you’ve completed the "X(Twitter) OAuth1.0a Integration" and connected your X account to Bika.

1. Add the “Upload Media” Action

  1. In your automation editor, click Add Action and select X(Twitter) – Upload Media from the dropdown.

    Selecting the Upload Media action

2. Configure Action Fields

In the Action Configuration panel, you’ll see the following settings:

FieldDescription
NoteA short, human-readable description of this step. It appears on the automation canvas so you’ll know at a glance what the action does (e.g. “Upload header image”).
X Account IntegrationChoose the OAuth1.0a integration you previously set up. This tells Bika which X account to use when uploading media.
Media URLEnter a public URL to a media file or insert a variable referencing a file stored in your database. You can either paste a direct URL or use the / key to open the variable selector and choose an attachment field.

Media Upload Guidelines

  • GIF files: Maximum size is 15MB
  • Other image formats (e.g., JPG, PNG): Maximum size is 5MB
  • Videos: Twitter supports files up to 512MB, but due to upload latency and network reliability, we recommend keeping video size as small as possible for smoother performance.

Using the Media URL Field

  • Direct URL: Paste a publicly accessible link to an image, GIF, or video. Only one URL can be entered this way.

    Direct URL input example

  • Variable: Use a variable referencing an attachment field in a previous step (e.g., from a record in your database). Press / to open the variable selector.

    ℹ️ Note: A single tweet can include up to 4 media files. If your attachment field contains more than 4 files, only the first 4 will be uploaded.

    Variable selection example

3. Run Test

After configuring the fields, click Run Test. This will validate your Twitter integration—though it won’t upload media yet, it ensures the connection works correctly.

🔔 Note: Be sure to run this test at least once before adding the Create Tweet action, as it depends on the mediaIds returned by this step.

4. Connect to “Create Tweet”

  1. Add a Create Tweet action after the Upload Media step.

  2. In the Create Tweet configuration panel, select the mediaIds variable returned by the Upload Media step to attach the media to your tweet.

    Connecting media to Create Tweet action

  3. Save the Create Tweet action.

5. Run the Automation

Now, run your automation. The media will be uploaded to your X account, and the tweet will be published with the attached media.

🎯 Want to get started quickly?

Check out our ready-to-use template that combines Upload Media and Create Tweet actions:
👉 AI Automated X Tweets

call to action

Recommend Reading

  • Top Tools for Beginners to Build AI Agents: Bika.ai, CursorAI, n8n, and More
  • How to Use AI to Generate Slogans, Visuals, and Brand Tone in Minutes
  • How AI Agent Protocols Power Modern AI Agent Platforms
  • Best AI Slogan Generators for Startups in 2025: Create Your Brand Identity Instantly
  • How AI Agents Transform Content Marketing: Strategies & Platforms
Recommend AI Automation Templates
OKR Tracker & Quarterly Report Automation
OKR Tracker & Quarterly Report Automation
Streamline your goal management and team performance tracking with the OKR Tracker & Quarterly Report Automation template. Automate OKR reporting, monitor progress through the OKR dashboard, generate quarterly performance reviews, and keep your team aligned with real-time work progress tracking and automated reports. Perfect for team leaders, project managers, and enterprises aiming to improve efficiency and achieve objectives seamlessly.
Automated Stock Data Retrieval (JavaScript)
Automated Stock Data Retrieval (JavaScript)
The Automated Stock Data Retrieval (JavaScript) template automatically fetches US stock data every day and writes it into a structured table, giving you clean, consistent time series for analysis. Use it as part of your financial data automation stack to power stock trend analysis, dashboards, alerts, and quantitative analysis data for models and backtests. Designed for financial analysts, investment managers, data scientists, quants, and portfolio managers, it saves time on manual data collection so you can focus on research, strategy, and better investment decisions.
NPS Customer Referral Value
NPS Customer Referral Value
Collect, track, and analyze customer feedback effortlessly with the NPS Customer Referral Value template. Automate surveys, monitor responses in real-time, visualize insights on the NPS dashboard, and optimize marketing and product improvement strategies. Improve customer satisfaction and loyalty while streamlining feedback management and survey workflows for your team.
Automated Currency Data Retrieval (Python)
Automated Currency Data Retrieval (Python)
The Automated Currency Data Retrieval (Python) template runs a scheduled job to fetch specific currency rates every day and store them in a structured table, building clean historical exchange rate data over time. Use it for financial data automation that powers dashboards, alerts, and automated financial reporting, so finance teams, forex traders, accountants, and risk managers always have up-to-date FX data at hand. By automating data collection, you save time, reduce manual errors, and make better investment and risk decisions based on reliable exchange rate history.
Investor deal flow
Investor deal flow
Streamline your investment tracking with Bika.ai’s Investor Deal Flow template. Manage prospective deals, company contacts, and transaction details efficiently through a centralized dashboard. Track deal pipelines, monitor deal progress, and analyze deal analytics to improve management efficiency and ensure timely decision-making. Ideal for sales teams, investment firms, entrepreneurs, and business development teams seeking a complete deal management solution.
Assortment Planning
Assortment Planning
The Assortment Planning template is a retail assortment planning solution that helps you manage product assortment planning across categories, seasons, and channels. Use it as a centralized product catalog management system and manufacturer database to support supplier relationship management and retail product management. Track pricing, costs, and product margin analysis, organize your product portfolio planning with clear categories and color variants, and use built‑in category management tools to keep assortments optimized for every store or sales channel.
X(Twitter) – Upload Media
💡 Configuration Instructions
1. Add the “Upload Media” Action
2. Configure Action Fields
Media Upload Guidelines
3. Run Test
4. Connect to “Create Tweet”
5. Run the Automation
🎯 Want to get started quickly?