Agent Knowledge
Attach Knowledge Library items and User Knowledge fields to an agent, and see exactly what the agent receives when it runs.
Give an Agent What It Needs to Know
An agent works best when it knows what you know and who it's helping. The Knowledge Sources card, on the right side of the agent editor, gives it both. Agent Knowledge is your reference material from the Knowledge Library, the same for every Member. User Knowledge Fields are each Member's own profile data, so the agent knows who it's talking to. Together they make up your App's Universal Knowledge. See Universal Knowledge.
Changes in this card save as soon as you make them. You don't need to click Save. While a change saves, the card says "Saving...".
Attach Knowledge Library Items
Open the Agent Knowledge tab
In Knowledge Sources, click Agent Knowledge. Use Search Items and Tags to find what you want.
Attach items or tags
Under Items, check each item the agent should use. Under Tags, click a tag to attach every item that carries it.
A tag is read each time the agent runs. Tag a new item later, and the agent uses it from the next run, with no change to the agent.
Everything attached appears under Attached at the top of the card. To detach something, click its remove button there, or uncheck it in its tab.
To add or edit items and tags, see Knowledge Library. Items you add once can be reused by any tool in your App.
Attach User Knowledge Fields
Open the User Knowledge Fields tab
In Knowledge Sources, click User Knowledge Fields. Each of your App's profile fields is listed with its description.
Check the fields this agent needs
Check each field the agent should know about the Member, such as their business type or goals.
An attached field does two things:
- The agent receives the Member's value for it each time it runs.
- The field appears under User Knowledge in Insert Variable, so you can place the value in your agent instructions. See Variables.
If you detach a field your instructions use as a variable, ThoughtFlow asks first, in a window titled Remove Referenced Field?. Click Remove Anyway, then update your instructions.
If your App has no profile fields yet, create them first. See User Knowledge Fields.
What the Agent Receives
Each time the agent runs, ThoughtFlow sends the AI one set of instructions, in this order:
-
Your agent instructions, with every variable filled in.
-
Each attached Knowledge Library item, in full, under its name.
-
Today's date.
-
About the Member: each attached profile field's name, its description, and this Member's value. A field with no value says "Not set". A Knowledge Log field lists its recent entries.
-
For a form agent, the Member's answers, each under its field's label.
The first two parts are the same for every Member. The rest changes with the Member and the run. A chat agent also receives the conversation so far.
Item names and field descriptions reach the AI too. A clear name, such as "Pricing Framework", and a description that says what the field holds help the agent use each one well.
Your Members never see the knowledge itself. IP Security, if your plan includes it, protects your instructions and knowledge from Members who try to get the agent to reveal them. See IP Security.
Knowledge and Spark
When Spark changes an agent it built, the knowledge attached to the agent stays as it is. See What a Spark Change Replaces.