Skip to main content

Artifacts in TeamAI: Interactive AI Content Creation

Abdul Samad avatar
Written by Abdul Samad
Updated this week

What are Artifacts?

Artifacts are specialized workspaces that appear alongside your chat conversations in TeamAI. When you ask the AI to create certain types of content, it will automatically open an artifact panel where you can view, edit, and interact with the generated content.

Available Artifact Types

TeamAI currently offers two types of artifacts:

Text Artifacts

Perfect for essays, emails, reports, and other text documents. These provide:

  • Rich text editing capabilities

  • Version history to track changes

  • Easy formatting options

  • Ability to ask AI for improvements or suggestions

  • Special features:

    • Document polish: Request AI to improve grammar and style

    • Export options: Download as Markdown or PDF

    • Request Suggestions: View and accept AI suggestions for improvements

    • Formatting tools: Apply headings, lists, and other formatting with ease

    • Diff viewer: Compare different versions to see what changed

Code Artifacts

Designed for programming tasks with:

  • Syntax highlighting for better code readability

  • Code execution for Python and JavaScript

  • Output console to see results

  • Version control to track changes

  • Ability to add comments or optimize code through chat

Artifacts with Agents

Artifacts can be used with both regular chats and custom AI agents in TeamAI.

Enabling Artifacts for Agents

  • Artifacts are disabled by default for agents

  • To enable: Go to your agent settings β†’ Features tab β†’ Toggle "Enable Artifacts"

  • This setting is independent for each agent

How Agents Use Artifacts

  • When enabled, your agent can create and edit artifacts just like in regular chats

  • Agents can suggest document creation based on conversation context

  • Perfect for agents designed to create specific types of content (e.g., report writers, code assistants)

When to Enable Artifacts for Agents

  • Enable when: Your agent needs to create substantial content like documents, reports, or code documents

  • Keep disabled when: Your agent is customer-facing or designed for quick Q&A interactions

  • Best for internal team use where persistent document creation adds value

How to Use Artifacts

Creating an Artifact

Simply ask the AI to create content like:

  • Write a blog post about machine learning trends

  • Create an document for draft an email to my team about our new project timeline

  • Create a Python script that analyzes stock data

The AI will generate the content and automatically open an artifact panel on the right side of your screen.

Working with Artifacts

  1. Edit directly: Click anywhere in the artifact to make changes

  2. Version history: Use the top toolbar to view previous versions

  3. Save automatically: Changes are saved automatically as you type

  4. Continue the conversation: Keep chatting with the AI about your artifact

Special Text Document Features

  • Request polish: Ask "Please improve the grammar and style of this document"

  • Get suggestions: AI can offer targeted improvements for specific sections

  • Document structure: AI can help reorganize your content for better flow

  • Export formats: Download your document in multiple formats

  • Version comparison: Use the diff viewer to see exactly what changed between versions

Special Code Features

For code artifacts:

  • Click the "Run" button to execute Python or JavaScript code

  • View execution results in the console below your code

  • Ask the AI to add comments, fix bugs, or optimize your code

Did this answer your question?