# Textcortex

TextCortex offers an AI-powered text generation API that enables developers to integrate advanced language models into their applications for tasks such as content creation, paraphrasing, and more.

- **Category:** artificial intelligence
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 7
- **Triggers:** 0
- **Slug:** `TEXTCORTEX`
- **Version:** 20260223_00

## Tools

### Create Product Title

**Slug:** `TEXTCORTEX_CREATE_PRODUCT_TITLE`

Tool to generate catchy product titles for listings. Use when you need to create compelling titles for product listings or descriptions.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | The number of outputs to generate (default: 1). |
| `name` | string | No | Name of the product. |
| `brand` | string | No | Brand of the product. |
| `model` | string | No | Model specification to use for generation. |
| `category` | string | No | Category of the product. |
| `keywords` | array | No | Keywords to include in the product description. |
| `formality` | string | No | Tone/style preference for the generated title. |
| `max_tokens` | integer | No | The maximum number of tokens to generate (default: 2048). |
| `description` | string | No | Features of the product. |
| `source_lang` | string | No | Source language (defaults to English). ISO language code. |
| `target_lang` | string | No | Target language for output. ISO language code. |
| `temperature` | number | No | Controls output randomness (0.0 to 1.0). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Social Media Post

**Slug:** `TEXTCORTEX_CREATE_SOCIAL_MEDIA_POST`

Tool to generate engaging social media posts for Twitter and LinkedIn. Use when you need to create platform-specific content with appropriate tone, length, and formatting.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | Number of different post variations to generate (default: 1). Useful when you want multiple options to choose from. |
| `mode` | string ("twitter" | "linkedin") | Yes | Target social media platform for the post. Determines the style, tone, and format of the generated content. |
| `model` | string | No | Model identifier to use for generation (e.g., 'gpt-4o'). If not specified, uses the default model. |
| `context` | string | Yes | The context or main idea for the social media post. Provide details about what the post should be about, key messages, or any specific information to include. |
| `keywords` | array | No | List of keywords or hashtags to include in the post. These will be naturally integrated into the generated content. |
| `formality` | string | No | Tone or formality level for the post (e.g., 'formal', 'casual', 'professional'). Influences the writing style and language used. |
| `max_tokens` | integer | No | Maximum number of tokens to generate (default: 2048). Controls the length of the output. |
| `source_lang` | string | No | Language of the source context (ISO code, e.g., 'en', 'es', 'fr'). Default is 'en'. |
| `target_lang` | string | No | Target language for the generated post (ISO code). If different from source_lang, the post will be translated. |
| `temperature` | number | No | Sampling temperature for output variation (0.0 to 1.0). Higher values produce more creative/random outputs, lower values are more deterministic. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Video Description

**Slug:** `TEXTCORTEX_CREATE_VIDEO_DESCRIPTION`

Tool to generate compelling video descriptions for YouTube or other platforms. Use when you need to create optimized descriptions that include context, keywords, and target audience information.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | The number of video description outputs to generate (default: 1). |
| `mode` | string ("youtube") | No | Video platform mode for description generation. |
| `model` | string | No | The model identifier to use for generation. |
| `title` | string | Yes | The title of the video for which to generate the description. |
| `context` | string | Yes | Topic, target audience, and other details about the video to help generate an appropriate description. |
| `keywords` | array | No | List of keywords to include in the video description for SEO purposes. |
| `formality` | string | No | The formality level or tone for the generated description (e.g., 'formal', 'casual', 'professional'). |
| `max_tokens` | integer | No | The maximum number of tokens to generate (default: 2048). |
| `source_lang` | string | No | The language of the source context and title (ISO code, e.g., 'en', 'auto'). |
| `target_lang` | string | No | The desired output language for the description (ISO code, e.g., 'en', 'es', 'fr'). |
| `temperature` | number | No | The sampling temperature for text generation (0.0 to 1.0). Higher values make output more creative. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Code

**Slug:** `TEXTCORTEX_GENERATE_CODE`

Tool to generate code for a given programming language. Use when you need to create code snippets, functions, or algorithms in specific programming languages.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | Number of code completions to generate (default: 1). |
| `mode` | string | Yes | The programming language to generate code in (e.g., python, javascript, java, sql, go, rust, php, typescript, c++, c#). |
| `text` | string | Yes | The code description or prompt to generate code from. Describe the functionality you want to implement. |
| `model` | string | No | The model to use for code generation (e.g., icortex-1, sophos-1). |
| `max_tokens` | integer | No | Maximum number of tokens to generate in the response. |
| `temperature` | number | No | Sampling temperature for generation (0.0 to 1.0). Higher values make output more random. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Generate Email

**Slug:** `TEXTCORTEX_GENERATE_EMAIL`

Tool to generate email body and subject based on provided details. Use when you need to compose or personalize an email from a prompt.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `context` | string | Yes | Main prompt or context for generating the email. Include details like recipient, purpose, tone preference, and any specific information to include. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Summarize Text

**Slug:** `TEXTCORTEX_SUMMARIZE_TEXT`

Tool to summarize text. Use when you need a concise summary of longer content. Use after confirming the full input text.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | The number of outputs to generate (default: 1). |
| `mode` | string | No | Mode for summarization: 'default' or 'embeddings'. |
| `text` | string | No | The text to summarize. Either text or file_id must be provided. |
| `model` | string | No | Model identifier to use for summarization. |
| `file_id` | string | No | ID of the file to summarize. Either text or file_id must be provided. |
| `formality` | string | No | Tone/style parameter for the summary. |
| `max_tokens` | integer | No | The maximum number of tokens to generate (default: 2048). |
| `source_lang` | string | No | The language of the source text (ISO code, e.g., 'en', 'auto'). |
| `target_lang` | string | No | The desired output language (ISO code, e.g., 'en', 'es', 'fr'). |
| `temperature` | number | No | The sampling temperature for text generation (0.0 to 1.0). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Translate Text

**Slug:** `TEXTCORTEX_TRANSLATE_TEXT`

Tool to translate text into another language. Use when you need to translate content between different languages. Supports 72+ languages with auto-detection capability.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `n` | integer | No | Number of translation variations to generate (default: 1). |
| `text` | string | Yes | The text to translate. |
| `model` | string | No | Model identifier to use for translation. |
| `max_tokens` | integer | No | Maximum number of tokens to generate. |
| `source_lang` | string | No | Source language code (ISO code, e.g., 'en', 'es'). Auto-detected if not provided. |
| `target_lang` | string | Yes | Target language code to translate to (e.g., 'es' for Spanish, 'fr' for French, 'de' for German). |
| `temperature` | number | No | Sampling temperature for generation (0.0 to 1.0). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
