Development WordPress blocks with Telex

by | Feb 12, 2026 | Etcetera | 0 comments

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

As an alternative of putting in a native construction surroundings, configuring assemble tools, and scaffolding a block by the use 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 follow and what types of blocks it’s realistically fitted to at the present time. The use of two exact examples, along side a further difficult editor-only block, we take a look at how far Telex can take you and where manual intervention is still required.

Telex user interface
Telex individual interface.

How Telex works in follow

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 line with the standard create-block tooling.

How Telex works
How Telex works.

From there, AI fills in the details related to dam metadata, editor UI, rendering not unusual sense, and elementary styling within those constraints. The block is then built in a hosted Node.js atmosphere, 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
├── package deal deal.json
├── readme.md
└── .gitignore

Let’s assemble our first of two blocks.

Vibe coding an Embed ChatGPT block

You may recall a time when it was once as soon as common to look a Google search box embedded in a web internet web page, allowing consumers to appear a internet web page or the web. If you wish to be offering that kind of revel in in your consumers, on the other hand this time with ChatGPT input, proper right here’s how.

See also  Kinsta’s Black Friday marketing campaign is a win for associates

It is a just right spot to start out, as you’ll have the ability to focal point on getting proud of Telex’s UI without being too focused on advisable 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 advisable. Right here’s what we used:

We need to create a block that embeds the ChatGPT advisable to allow consumers to use it on the frontend.

See the UI underneath:

Telex interface showing an input prompt for configuring an automation.
Initial Telex input advisable.

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

At this degree, the block outputs an error message throughout 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 the use of generating a ChatGPT API key and together with it to the block by the use of the Inspector sidebar. In this case, we felt that using an external API for the block didn’t introduce an unwarranted protection risk.

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

In spite of everything, we ran a to hand information a coarse check out on the frontend to make sure that the whole lot was once as soon as working as expected.

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

Vibe coding a Social Draft block

For our 2nd example, let’s push Telex just a bit further by the use of construction an within block for drafting social media posts (person who we could content material subject matter be written, reviewed, and exported for scheduling with no need a separate collaboration device or a paid personnel plan).

We will get began with this setup advisable:

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

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

Function
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 medical doctors workflow. The block should make stronger text, links, footage, and video embeds, along with platform selection, selection permutations of the copy, submit status, notes, and an export panel optimized for copying content material subject matter proper right into a social publishing platform.

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

Editor UI
The main draft area (“Copy”) should be performed using InnerBlocks quite than a single RichText field, allowing paragraphs, footage, embeds, and lists. An selection to be able to upload two selection permutations of the copy should be available, each with the an identical flexibility as the primary draft. Simple one-time duplication controls should allow content material subject matter to be copied between sections when sought after.
Additional controls include platform selection by the use of checkboxes, a single status field (Draft, Ready for evaluate, Scheduled, or Now not used), and a plain-text notes field.

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

Once we give this to Telex, the result was once as soon as UI as expected, on the other hand the Social Draft block would possibly not display throughout the content material subject matter area.

See also  Twitter Identify Concepts: The Do’s and Don’ts of Opting for A Twitter Maintain
Block UI showing a missing content area in the interface.
Block UI is missing throughout the content material subject matter area.

Time and again, it’s necessary to go through numerous iterations when vibe coding, and that’s what happened.

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 strive didn’t be successful, and the block however didn’t display accurately throughout the editor.

At this degree, we asked Telex if it would process our request, as now we have been losing self trust. We reiterated that each one UI was once as soon as exposed, save for what we might have appreciated (the ability to be able to upload and display the block).

Telex spoke back:

I utterly understand your frustration, and likely, 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 matter throughout the canvas. The issue is that while now we have now the entire controls and development, the block wrapper isn't being accurately rendered as a visible container. Let me restore this by the use of ensuring the block has proper development and visibility.

We in spite of everything 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 was once as soon as an invaluable block where we finished our MVP.

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

Drawbacks and workarounds

Telex has come some distance in a twinkling of an eye, on the other hand if you happen to get began using it previous simple experiments, a few hindrances turn out to be glaring. Some of these aren’t blockers, on the other hand they do shape how and when Telex is absolute best conceivable used.

  1. There’s no built-in approach to roll once more a advisable. You’ll have the ability to ask Telex to undo a transformation, on the other hand a further unswerving approach is to save some turns on as text or Markdown, type downloaded ZIP data, or use Git if you happen to switch the block in the community.
  2. Telex straight away (re)generates the block after you submit a advisable, and now not the usage of a talent to undo or restore previous permutations. To avoid an unwanted movement, ask Telex, “How would you do…” in your advisable forward of you assemble, re-try, or an identical command.
  3. Telex isn’t an IDE. While you’ll have the ability to view the generated provide code, there’s no approach to edit it in an instant within Telex.
  4. Telex is best suited for brainstorming and prototyping. For production use, it’s maximum protected to limit it to moderately easy blocks where external integrations, difficult not unusual sense, or security- and performance-sensitive concerns don’t appear to be a priority.
See also  How to Make a WordPress Ecommerce Website (2023 Easy Guide)

What’s next for construction blocks with AI

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

At the an identical time, the examples proper right here show that working out 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 easier 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!