mirror of
https://github.com/simstudioai/sim.git
synced 2026-02-06 04:35:03 -05:00
* feat(tools): added calcom * added more triggers, tested * updated regex in script for release to be more lenient * fix(tag-dropdown): performance improvements and scroll bug fixes - Add flatTagIndexMap for O(1) tag lookups (replaces O(n²) findIndex calls) - Memoize caret position calculation to avoid DOM manipulation on every render - Use refs for inputValue/cursorPosition to keep handleTagSelect callback stable - Change itemRefs from index-based to tag-based keys to prevent stale refs - Fix scroll jump in nested folders by removing scroll reset from registerFolder - Add onFolderEnter callback for scroll reset when entering folder via keyboard - Disable keyboard navigation wrap-around at boundaries - Simplify selection reset to single effect on flatTagList.length change Also: - Add safeCompare utility for timing-safe string comparison - Refactor webhook signature validation to use safeCompare Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * updated types * fix(calcom): simplify required field constraints for booking attendee The condition field already restricts these to calcom_create_booking, so simplified to required: true. Per Cal.com API docs, email is optional while name and timeZone are required. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * added tests * updated folder multi select, updated calcom and github tools and docs generator script * updated drag, updated outputs for tools, regen docs with nested docs script * updated setup instructions links, destructure trigger outputs, fix text subblock styling * updated docs gen script * updated docs script * updated docs script * updated script * remove destructuring of stripe webhook * expanded wand textarea, updated calcom tools --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
67 lines
3.2 KiB
Plaintext
67 lines
3.2 KiB
Plaintext
---
|
|
title: Image Generator
|
|
description: Generate images
|
|
---
|
|
|
|
import { BlockInfoCard } from "@/components/ui/block-info-card"
|
|
|
|
<BlockInfoCard
|
|
type="image_generator"
|
|
color="#4D5FFF"
|
|
/>
|
|
|
|
{/* MANUAL-CONTENT-START:intro */}
|
|
[DALL-E](https://openai.com/dall-e-3) is OpenAI's advanced AI system designed to generate realistic images and art from natural language descriptions. As a state-of-the-art image generation model, DALL-E can create detailed and creative visuals based on text prompts, allowing users to transform their ideas into visual content without requiring artistic skills.
|
|
|
|
With DALL-E, you can:
|
|
|
|
- **Generate realistic images**: Create photorealistic visuals from textual descriptions
|
|
- **Design conceptual art**: Transform abstract ideas into visual representations
|
|
- **Produce variations**: Generate multiple interpretations of the same prompt
|
|
- **Control artistic style**: Specify artistic styles, mediums, and visual aesthetics
|
|
- **Create detailed scenes**: Describe complex scenes with multiple elements and relationships
|
|
- **Visualize products**: Generate product mockups and design concepts
|
|
- **Illustrate ideas**: Turn written concepts into visual illustrations
|
|
|
|
In Sim, the DALL-E integration enables your agents to generate images programmatically as part of their workflows. This allows for powerful automation scenarios such as content creation, visual design, and creative ideation. Your agents can formulate detailed prompts, generate corresponding images, and incorporate these visuals into their outputs or downstream processes. This integration bridges the gap between natural language processing and visual content creation, enabling your agents to communicate not just through text but also through compelling imagery. By connecting Sim with DALL-E, you can create agents that produce visual content on demand, illustrate concepts, generate design assets, and enhance user experiences with rich visual elements - all without requiring human intervention in the creative process.
|
|
{/* MANUAL-CONTENT-END */}
|
|
|
|
|
|
## Usage Instructions
|
|
|
|
Integrate Image Generator into the workflow. Can generate images using DALL-E 3 or GPT Image.
|
|
|
|
|
|
|
|
## Tools
|
|
|
|
### `openai_image`
|
|
|
|
Generate images using OpenAI
|
|
|
|
#### Input
|
|
|
|
| Parameter | Type | Required | Description |
|
|
| --------- | ---- | -------- | ----------- |
|
|
| `model` | string | Yes | The model to use \(gpt-image-1 or dall-e-3\) |
|
|
| `prompt` | string | Yes | A text description of the desired image |
|
|
| `size` | string | Yes | The size of the generated images \(1024x1024, 1024x1792, or 1792x1024\) |
|
|
| `quality` | string | No | The quality of the image \(standard or hd\) |
|
|
| `style` | string | No | The style of the image \(vivid or natural\) |
|
|
| `background` | string | No | The background color, only for gpt-image-1 |
|
|
| `n` | number | No | The number of images to generate \(1-10\) |
|
|
| `apiKey` | string | Yes | Your OpenAI API key |
|
|
|
|
#### Output
|
|
|
|
| Parameter | Type | Description |
|
|
| --------- | ---- | ----------- |
|
|
| `success` | boolean | Operation success status |
|
|
| `output` | object | Generated image data |
|
|
| ↳ `content` | string | Image URL or identifier |
|
|
| ↳ `image` | string | Base64 encoded image data |
|
|
| ↳ `metadata` | object | Image generation metadata |
|
|
| ↳ `model` | string | Model used for image generation |
|
|
|
|
|