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
- Generating an Artifact in a Conversation A step-by-step tutorial on using a tool call to create a new Artifact and embed it in an assistant’s response.
- Editing an Artifact in a Conversation Learn how to implement the edit loop for artifacts using a tool call.