Create a playbook
Create an Agent Playbooks playbook in Redis Cloud and give your agents access to it.
A playbook is a registry of the frequently asked questions (FAQs) and skills your agents can use, with its own access grants and retrieval settings. Agents receive only the versions you publish. This guide walks you through creating a playbook in the Redis Cloud console and giving an agent access to it.
Before you begin
The playbook stores its data in a Redis Cloud database. Use one of your databases, or let the console create a free database when you create the playbook. To create one yourself, see Create a database.
An existing database must be active and have:
- An enabled default user with a password.
- A public endpoint that Agent Playbooks can reach.
- Support for the JavaScript Object Notation (JSON) data type and Redis Query Engine, with Search version 2.10 or later.
The console lists only databases that meet these requirements.
If the database has a Classless Inter-Domain Routing (CIDR) allow list that blocks Agent Playbooks, you can't create the playbook with it. The console lists the Internet Protocol (IP) addresses to add. Add them under Security in the database's settings.
Create a playbook
-
From the Redis Cloud console, select Agent Playbooks under Iris in the menu.
If you don't have a playbook yet, you see an introduction to Agent Playbooks. Otherwise, you see the list of your playbooks.
-
Select New playbook.
-
In the New playbook dialog, enter the following:
Setting Description Name A name for the playbook, up to 128 characters. Database The Redis Cloud database that stores the playbook's data. The list shows the databases you can use. If you don't have a free database, select Free Redis database to create one with the playbook. An existing free database appears first, with a Free badge. Embedding model The model that creates embeddings for semantic matching. Each option shows its provider and number of dimensions. Models listed as Redis use Redis-managed credentials. Models listed as Bring Your Own use your provider's application programming interface (API) key. You can't change the database or the embedding model after you create the playbook.
-
Select Create playbook. Creation can take up to two minutes.
-
In the Connect to Playbook step, create an API key for your agent, or select Skip for now.
The console opens the playbook's Configuration tab. The playbook's status shows Provisioning until it's Ready. A playbook can also show Failed, Suspended, Deleting, or Unavailable.
Add your provider API key
If you chose a Bring Your Own embedding model, the playbook needs your provider API key before it can process content. Until you add it, the Registry tab asks you to add it in Configuration.
- On the playbook's Configuration tab, find the Embedding provider credential section.
- Enter your Provider API key.
- Select Save provider credential.
This key is separate from the API key your agents use to read the playbook. You can replace it later from the same section.
Give an agent access
Agents read a playbook at its endpoint, with an API key that has access to it.
-
On the playbook's page, select Connect. The Connect to Playbook dialog shows the playbook's Endpoint and Playbook ID. Copy them for your agent.
This dialog also opens as the second step when you create a playbook.
-
Select Create an API key.
-
Enter a Key name, or keep the default.
-
Under What can this key do?, choose the actions for this key:
Use Actions Retrieve published knowledge readRetrieve knowledge and submit proposals read,proposeComplete the developer authoring quickstart write,publishwrite,publish, andproposeeach includeread. Keep the authoring key separate from the key your agent uses at runtime. -
Choose an Expiration. The default is 90 days.
-
Select Create API key.
-
Copy the key, and then select Done.
Warning:The console shows the key only once, when you create it. Save it to a secure location before you select Done.
To set more options, select Customize in the full page in the Create API key step. The console opens Access & Identity with this playbook selected.
For what each action allows, see Playbooks.
To replace an expiring key, create another key with the same grants, update your application's connection settings, and verify a request before removing the old key. Manage existing keys in Access & Identity. Deleting a key removes its access after cached authorization expires; it does not withdraw or delete playbook entries.
If Create an API key is unavailable, ask your account administrator for permission to manage keys for this playbook. An authoring or publishing grant does not grant permission to administer API keys.
If provisioning fails or the playbook does not become Ready, follow Troubleshoot a playbook before continuing.
Next steps
- Publish and retrieve your first FAQ.
- View and manage the playbook: add FAQs and skills, publish versions, test retrieval, and review proposals.