Cookbooks - Writer AI Studio

Writer Cookbooks

Writer Cookbooks are step-by-step guides to help you implement tasks and solve common problems using Writer. Each recipe includes code snippets, explanations, and best practices to enhance your understanding of the Writer platform.

Featured

Multimodal chat completion
Send both text and images in the same message to enable rich, visual conversations with Palmyra X5.

Third-party models
Call third-party Amazon Bedrock models via the Writer SDK, including chat and tool calling.

Knowledge Graph
Use our RAG implementation to create, manage, and use structured data to enhance AI capabilities.

All cookbooks

Applications

Working with no-code agents
Retrieve no-code agent metadata and generate output from them using the Writer SDK.

Knowledge Graph management
Attach a Knowledge Graph to a no-code agent programmatically.

Run no-code agents asynchronously
Run no-code agents asynchronously and manage asynchronous jobs.

Completions

Text completion
Use the Writer Python SDK for text completion tasks.

Chat completion
Build single-turn and multi-turn chat completions to support conversational AI applications.

Structured completions
Get predictable, machine-readable responses from Palmyra LLMs using JSON Schema or Pydantic objects.

Knowledge Graph

Knowledge Graph tool calling
Access a Knowledge Graph in a chat.

Integrations

Instructor basics
Extract structured data from text, CSV, and PDF files using Instructor and Writer.

Advanced Instructor
Work with nested Pydantic models, retry and repair patterns, and streaming using Instructor and Writer.

LangChain basics
Use Writer with LangChain to build chat workflows and LangGraph agents with tool calling.

Models

List all models
List all of the Palmyra models available in the Writer API.

Tool calling

Tool calling fundamentals
Learn how to use tool calling to enhance the functionality of your LLM.

LLM tool calling
Use model delegation to refer a task to another model during a chat.

Streaming tool calls
Use tool calling with streaming responses.

Tools

PDF parser
Parse a PDF file and extract the text as text or markdown.