Generate artifact
generate_artifactHave Replo's agent research, write and save an artifact from a request in words, including Insights reports, using existing reports, analytics, or files as sources. Pass fileId (the artifact folder ID) to revise an existing artifact in place, preserving its identity and sharing. The agent follows the artifacts skill and its Insights reports guidance when analytics are needed. Starts an asynchronous internal-agent operation using normal Replo tools and connected integrations; poll get_agent_session, whose final message contains the saved artifact folder ID and viewer link after validation; then call show_artifact with that folder ID. Use the same tool with sessionId for follow-up instructions. Reuse operationId only for an identical retry. Creation is private by default; when the user asks to share the result, call set_file_sharing with its artifact folder ID. When you already have the files, save them with create_artifact or update_artifact instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | No | Omit to generate a new artifact. To revise an existing one, pass its .artifact folder ID, including for Insights artifacts; never an embedded report file ID. | |
| sources | No | Optional existing reports, analytics SQL, or Files documents. The agent reads and queries these sources. For standalone artifacts, omit sources and provide instructions. | |
| projectId | Yes | ||
| sessionId | No | Omit to start this operation. To continue, supply the returned sessionId with the same operation and target; mismatches and legacy sessions are rejected. | |
| operationId | Yes | Generate a fresh UUID for each new instruction. Reuse it with identical arguments on a retry to avoid duplicate work. | |
| instructions | Yes | Requested changes for this operation only. Include necessary references, not conversation history, credentials, or unrelated personal data. |