Skip to content

Add AltTextify app with alt text generation action #17024

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions components/alttextify/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Overview
AltTextify offers an AI-powered API that automatically generates alternative text (alt text) for images—playing a critical role in improving website accessibility and search engine optimization (SEO). It enables effortless creation of meaningful, descriptive, and keyword-rich alt text that aligns with ADA and WCAG standards. With AltTextify, you can automate alt text generation across websites, blogs, and online stores. In Pipedream, you can set up workflows that trigger on events, send images to the AltTextify API, and apply the returned alt text to your content systems—enhancing both compliance and search visibility without manual effort.

# Example Use Cases
- **Effortless Alt Text for E-commerce Products**: Streamline your product content strategy with AltTextify. When a new image is uploaded to a Dropbox folder, Pipedream triggers a workflow that sends the image to AltTextify. The generated, SEO-friendly alt text is then automatically applied to the product in Shopify, WooCommerce, Magento or any other e-commerce platform—no manual tagging required.

- **Smarter Blog Accessibility with Every Draft**: Ensure your blog posts are not just compelling—but compliant. As soon as a draft is created in WordPress, Pipedream can route embedded images to AltTextify. Within seconds, alt text is returned and added to the post, enhancing accessibility and aligning with ADA and WCAG standards before publication.

- **AI-Assisted CMS Migration**: Migrating content from an old CMS (e.g., Joomla) to a new one (like WordPress or Strapi)? During migration, use Pipedream to detect missing or outdated image alt text. Send image URLs to AltTextify for automated generation and update metadata before importing—ensuring accessibility and SEO hygiene from day one.

- **Alt Text Auditing & Enrichment**: Review and enrich existing image alt text across a large media library.Use Pipedream to crawl your existing CMS or S3 bucket, compare stored alt text, and pass low-quality or empty alt attributes to AltTextify for enhancement. Ideal for large publishers or digital libraries.

- **Automated SEO optimizations for Static Sites**: Give your GitHub Pages site an organic search edge. On every new commit, Pipedream detects image changes, routes them through AltTextify, and injects relevant, keyword-optimized alt text into your HTML or Markdown. It's a hands-free upgrade to your site's SEO and accessibility—baked right into your development workflow.


Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
import alttextify from "../../alttextify.app.mjs";
import { LANGUAGE_LIST } from "../../common/constants.mjs";

export default {
name: "Generate Alt Text",
key: "alttextify-generate-alt-text",
description: "Generates a descriptive alt text for a given image. [See the documentation](https://apidoc.alttextify.net/#api-Image-UploadImageURL)",
version: "0.0.2",
type: "action",
props: {
alttextify,
image: {
type: "string",
label: "Image URL",
description:
"Provide a publicly accessible image URL in JPEG, PNG, GIF, WEBP, or BMP format.",
optional: false,
},
lang: {
type: "string",
label: "The language for the generated alt text.",
description: "Provide a language code for the alt text output. Defaults to English (en). Accepts ISO 639-1 codes such as pt (Portuguese), de (German), etc.",
options: LANGUAGE_LIST,
default: "en",
optional: true,
},
keywords: {
type: "string",
label: "SEO Keywords",
description: "List of keywords/phrases for SEO optimized alt text. Only one or two will be used per alt text, but all are considered. Keywords must be in English, even for alt text in other languages.",
default: "",
optional: true,
},
product_name: {
type: "string",
label: "Product Name [Ecommerce]",
description: "Product name to be included in the final Alt Text.",
default: "",
optional: true,
},
brand_name: {
type: "string",
label: "Brand Name [Ecommerce]",
description: "Brand name to be included in the final Alt Text.",
default: "",
optional: true,
}
},
async run({ $ }) {
const response = await this.alttextify.generateAltText({
$,
data: {
image: this.image,
keywords: this.keywords,
lang: this.lang,
ecommerce: {
product:{
name: this.product_name,
brand: this.brand_name,
}
},
async: false
},
});
console.log(response);

$.export("$summary", "Alt text generated successfully");
return response;
},
};
29 changes: 26 additions & 3 deletions components/alttextify/alttextify.app.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
import { axios } from "@pipedream/platform";

export default {
type: "app",
app: "alttextify",
propDefinitions: {},
methods: {
// this.$auth contains connected account data
authKeys() {
console.log(Object.keys(this.$auth));
_baseUrl() {
return "https://api.alttextify.net/api/v1";
},
async _makeRequest({
$ = this,
path,
headers,
...otherOpts
}) {
return axios($, {
...otherOpts,
url: this._baseUrl() + path,
headers: {
...headers,
"Authorization": `Bearer ${this.$auth.api_key}`
},
});
},
async generateAltText(args) {
return this._makeRequest({
path: "/image/url",
method: "POST",
...args,
});
},
},
};
Loading