# Built-in AI Capabilities

#### Add AI features to your web app

CodeWords apps are not limited to static UI. You can add AI-powered behavior directly into your product by describing the feature you want to Cody. Cody handles model selection, API wiring, error handling, and UI integration, so you can focus on the experience instead of infrastructure.

### Large Language Models (LLM)

CodeWords supports text-based AI features such as assistants, generation tools, summarization, search understanding, and translation. Cody handles model selection and integration so you can focus on product behavior.

| Use Case            | Example Prompt                                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------------------------- |
| AI Assistant        | "Add a support assistant in the bottom-right corner that answers questions about pricing, features, and policies."  |
| Writing Helper      | "Create a page called Blog Helper with a topic input and a Generate button that returns a short opening paragraph." |
| Intent-Aware Search | "Upgrade search so it understands natural phrasing and returns the most relevant results."                          |
| Article Summary     | "Add a Summarize action on article pages that returns three concise bullet points."                                 |
| Data Insight        | "Let users paste CSV data and generate a plain-language summary of trends."                                         |
| Translation         | "Add a language switcher that translates page content in real time."                                                |

### Image Generation

You can build image generation and image editing directly into your app flows. This is useful for user personalization, content creation, and creative tooling.

| Use Case           | Example Prompt                                                                             |
| ------------------ | ------------------------------------------------------------------------------------------ |
| Avatar Creator     | "On profile settings, let users generate an avatar from a short text description."         |
| Product Mockups    | "On the custom merch page, generate a mockup that applies the user’s text to the product." |
| Background Creator | "Add a tool that generates background images from scene descriptions."                     |
| Image Editing      | "Allow image upload plus edit instructions like remove text or change background color."   |
| Campaign Assets    | "Generate multiple marketing banners for the same launch theme with visual variations."    |

### Video Generation

CodeWords can generate short AI videos from prompts or from existing images, including audio tracks when needed. This enables demo clips, social assets, and visual explainers.

| Use Case         | Example Prompt                                                                          |
| ---------------- | --------------------------------------------------------------------------------------- |
| Product Clip     | "Generate a short product showcase video with clean studio lighting and ambient sound." |
| Social Video     | "Create a vertical video optimized for short-form social platforms."                    |
| Image-to-Motion  | "Animate this hero image with subtle environmental movement."                           |
| Explainer Visual | "Create a short clip showing data moving through a network in a modern style."          |

### Audio Features

CodeWords supports speech-to-text and text-to-speech so you can add voice interaction and listening experiences.

| Use Case      | Example Prompt                                                                  |
| ------------- | ------------------------------------------------------------------------------- |
| Voice Search  | "Add a microphone icon to search so spoken input is transcribed and submitted." |
| Listen Mode   | "Add a Listen button that reads article content aloud."                         |
| Transcription | "Create a page where users upload audio and receive a text transcript."         |

#### How it works

Describe the AI feature in plain language. Cody then:

* selects suitable model(s) for the task
* connects request and response logic inside your app
* handles failure states and user feedback messages
* adds loading and progress states for longer jobs

You do not need to manually wire model APIs or manage integration boilerplate in the default CodeWords flow.<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.codewords.ai/website-builder/features/built-in-ai-capabilities.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
