Skip to main content
You can enhance your C1-powered assistants by giving them the ability to generate and edit long-form content, like reports and slides, directly within a conversation. This is achieved using a tool-calling workflow where your backend orchestrates the creation and modification of these documents, known as Artifacts.

Workflow

The process relies on your assistant using tools to interact with the C1 Artifacts API. Your backend receives the tool call from the LLM, executes the logic by calling the C1 artifacts API, and then returns the result to the LLM to formulate a final response. This creates a powerful loop where the assistant can work with documents on the user’s behalf. The core of this pattern relies on two main tools you will define:
  • create_artifact: A tool that calls the C1 Artifacts API to generate a new document.
  • edit_artifact: A tool that calls the C1 Artifacts API with existing artifact content to make modifications.

Guides in This Section