Development WordPress blocks with Telex

by | Feb 12, 2026 | Etcetera | 0 comments

Telex is an experimental, browser-based loose device from Automattic that uses AI to generate WordPress blocks from natural language turns on.

Instead of putting in a native construction surroundings, configuring assemble tools, and scaffolding a block by means of hand, Telex implies that you’ll describe what you want, preview the result, and acquire a ready-to-install plugin.

This article explores what that workflow turns out like in observe and what types of blocks it’s realistically fitted to these days. Using two precise examples, along side a further difficult editor-only block, we take a look at how far Telex can take you and where guide intervention remains to be required.

Telex user interface
Telex individual interface.

How Telex works in observe

Telex follows an assembly-line style workflow. You describe the block you want using natural language, then Telex maps that request onto a predefined WordPress block scaffold in step with the standard create-block tooling.

How Telex works
How Telex works.

From there, AI fills in the details similar to dam metadata, editor UI, rendering not unusual sense, and elementary styling within those constraints. The block is then in-built a hosted Node.js environment, previewed in WordPress Playground, and packaged as a ZIP plugin that’s ready so as to add.

Beneath the hood, the generated plugin follows a well known development, carefully aligned with create-block:

block-name/
├── assemble/
├── src/
│   ├── edit.js
│   ├── save.js
│   ├── index.js
│   ├── style.scss
│   └── editor.scss
├── block.json
├── bundle deal.json
├── readme.md
└── .gitignore

Let’s assemble our first of two blocks.

Vibe coding an Embed ChatGPT block

Chances are you’ll recall a time when it used to be as soon as not unusual to look a Google search box embedded in a web internet web page, allowing shoppers to appear a internet web page or the web. If you wish to be offering that kind of experience to your shoppers, on the other hand this time with ChatGPT input, proper right here’s how.

See also  Announcing Divi 5 Dev Alpha

This is a just right spot to start out, as you’ll have the ability to focus on getting happy with Telex’s UI without being too concerned about really helpful refinement or a couple of iterations.

Get began as a logged-in individual with wordPress.com credentials, and also you’ll have the ability to describe your initial really helpful. Right here’s what we used:

We want to create a block that embeds the ChatGPT really helpful to allow shoppers to use it on the frontend.

See the UI underneath:

Telex interface showing an input prompt for configuring an automation.
Initial Telex input really helpful.

Telex creates the ChatGPT embed block, which accommodates the really helpful input box, message history display, and styling that matches ChatGPT’s aesthetic.

At this stage, the block outputs an error message inside the editor UI.

Block displaying an error message during workflow execution.
Block showing error message.

We asked Telex to resolve the issue and feature been guided by means of generating a ChatGPT API key and together with it to the block by means of the Inspector sidebar. In this case, we felt that using an external API for the block didn’t introduce an unwarranted protection chance.

Block inspector panel showing configuration options and settings.
ChatGPT API Key added to the Block Inspector.

In any case, we ran a to hand information a coarse check out on the frontend to make sure that the whole thing used to be as soon as running as expected.

Frontend displaying the initial response generated from a prompt.
Frontend showing initial really helpful and response.

Vibe coding a Social Draft block

For our second example, let’s push Telex just a bit further by means of construction an within block for drafting social media posts (one that we could content material subject material be written, reviewed, and exported for scheduling with no need a separate collaboration device or a paid staff plan).

We will get began with this setup really helpful:

Assemble a custom designed WordPress block named ‘Social Draft’. We will come up with further instructions after you place up.

Instead of overloading Telex with instructions, it’s frequently upper to use each different AI device (like ChatGPT) to decide a solid set of requirements first. That includes defining your goals, what the frontend must seem to be, how data is stored, how shoppers engage with the tool, and additional. Proper right here’s an excerpt from what ChatGPT were given right here once more with:

Purpose
Assemble an editor-only WordPress block that acts as an within content-prep device for drafting social media posts, similar to a lightweight Google Scientific docs workflow. The block must support text, links, footage, and video embeds, along side platform selection, selection diversifications of the copy, submit status, notes, and an export panel optimized for copying content material subject material proper right into a social publishing platform.

The block will have to not render the rest on the frontend. It is going to need to exist just for editor workflows, with save() returning null.

Editor UI
The main draft house (“Copy”) must be performed using InnerBlocks reasonably than a single RichText field, allowing paragraphs, footage, embeds, and lists. An selection so that you could upload two selection diversifications of the copy must be available, each with the an identical flexibility as the primary draft. Simple one-time duplication controls must allow content material subject material to be copied between sections when sought after.
Additional controls include platform selection by means of checkboxes, a single status field (Draft, Ready for assessment, Scheduled, or Not used), and a plain-text notes field.

An export panel must extract simple text from the selected draft or selection, fail to remember about media, and provide a one-click strategy to copy the result. Detected media (footage and embeds) can also be listed for reference, on the other hand aren't integrated inside the copied output.
All data must be stored throughout the block using attributes and InnerBlocks. No external APIs are required.

Once we give this to Telex, the result used to be as soon as UI as expected, on the other hand the Social Draft block would possibly not display inside the content material subject material house.

See also  Download a FREE Header & Footer for Divi’s Middle Eastern Restaurant Layout Pack for Divi
Block UI showing a missing content area in the interface.
Block UI is missing inside the content material subject material house.

Over and over, it’s vital to go through a lot of iterations when vibe coding, and that’s what took place.

Telex identified problems related to how InnerBlocks had been being initialized and attempted to restructure the block to fix the rendering issue. The ones early makes an try didn’t be successful, and the block however didn’t display accurately inside the editor.

At this stage, we asked Telex if it could process our request, as now we have been losing self trust. We reiterated that each one UI used to be as soon as exposed, save for what we’d have appreciated (the power so that you could upload and display the block).

Telex responded:

I completely understand your frustration, and certain, I can totally do this.I can see the problem - the useBlockProps is being carried out on the other hand the block isn't rendering visible content material subject material inside the canvas. The issue is that while now we have now the entire controls and development, the block wrapper isn't being as it should be rendered as a visible container. Let me restore this by means of ensuring the block has proper development and visibility.

We finally got our UI and began a to hand information a coarse probe.

Social media post data displayed in a structured analytics view.
Social media submit data block.

After many various refinements, the result used to be as soon as an invaluable block where we finished our MVP.

Social draft block showing a generated social media post draft.
A running MVP for our Social Drafts block.

Drawbacks and workarounds

Telex has come far in a twinkling of an eye, on the other hand when you get began using it previous simple experiments, a few hindrances change into obtrusive. These types of aren’t blockers, on the other hand they do shape how and when Telex is best possible conceivable used.

  1. There’s no built-in strategy to roll once more a really helpful. You’ll have the ability to ask Telex to undo a change, on the other hand a further loyal means is to save some turns on as text or Markdown, type downloaded ZIP data, or use Git when you switch the block in the community.
  2. Telex immediately (re)generates the block after you submit a really helpful, and now not the usage of a ability to undo or restore previous diversifications. To keep away from an unwanted movement, ask Telex, “How would you do…” to your really helpful forward of you assemble, re-try, or similar command.
  3. Telex isn’t an IDE. When you’ll have the ability to view the generated provide code, there’s no strategy to edit it instantly within Telex.
  4. Telex is most suitable for brainstorming and prototyping. For production use, it’s maximum safe to limit it to somewhat easy blocks where external integrations, difficult not unusual sense, or security- and performance-sensitive issues don’t appear to be a priority.
See also  WordPress Webhosting Showdown: Unlocking Velocity and Efficiency in American Samoa…

What’s next for construction blocks with AI

Telex offers a glimpse into how AI can have compatibility into stylish WordPress development. It lowers the cost of experimentation, shortens the space between idea and prototype, and makes block scaffolding further approachable.

At the an identical time, the examples proper right here show that understanding the block editor however problems.

Once a block is in a position to switch previous experimentation, having a reliable WordPress surroundings like Kinsta makes it more straightforward to test, iterate, and ship with self trust.

The submit Development WordPress blocks with Telex appeared first on Kinsta®.

WP Hosting

[ continue ]

WordPress Maintenance Plans | WordPress Hosting

read more

0 Comments

Submit a Comment

DON'T LET YOUR WEBSITE GET DESTROYED BY HACKERS!

Get your FREE copy of our Cyber Security for WordPress® whitepaper.

You'll also get exclusive access to discounts that are only found at the bottom of our WP CyberSec whitepaper.

You have Successfully Subscribed!