Skip to main content

Slack Formatter Agent Bubble

AI agent for creating well-formatted Slack messages with adjustable verbosity and technicality

Quick Start

import { SlackFormatterAgentBubble } from '@bubblelab/bubble-core';
import { CredentialType } from '@bubblelab/shared-schemas';
const result = await new SlackFormatterAgentBubble({

message: 'example', // The message or question to send to the AI agent
credentials: {
[CredentialType.OPENAI_CRED]: process.env.OPENAI_CRED as string,
},
}).action();

Operation Details

execute

message string required
The message or question to send to the AI agent
verbosity '1' | '2' | '3' | '4' | '5'
Response verbosity level (1-5): 1=concise bullet points, 5=comprehensive explanations
technicality '1' | '2' | '3' | '4' | '5'
Technical complexity level (1-5): 1=plain English, 5=expert terminology
includeBlockKit boolean
Include Slack Block Kit JSON for rich formatting
includeQuery boolean
Include the query that was executed in the response
includeExplanation boolean
Include explanation of what the query does and why it was chosen
model object
AI model configuration including provider, temperature, and tokens
tools object[]
Array of tool bubbles the AI agent can use
maxIterations number
Maximum number of iterations for the agent workflow
credentials Record<CredentialType,string>
Object mapping credential types to values (injected at runtime)
additionalContext string
Additional context about how to answer the question