Build an agent with a document source in Devs.ai
Give a Devs.ai agent one reference document and test how it answers questions within and outside that material.
What you will create
A demonstration agent that answers about a room-preparation checklist without turning missing information into certainty. You will also check its behavior after changing the document.
Before you start
Use an authorized Devs.ai workspace and a fictional document you may send to the service. Check the selected model’s terms and costs before testing. This walkthrough uses Simple mode when enabled for your organization. If absent, the Advanced editor remains available but its sections differ: do not try to reproduce invisible controls. Add no connectors, external actions or public sharing for this exercise.
Step-by-step
- Create an agent named “Room test”. Define its role: answer only from the attached checklist and acknowledge missing information. Review its introduction: it does not book rooms or verify real availability.
- Add the fictional file under What it knows. Wait for Ready; Preparing and Failed do not mean the document is usable.
- Check that capabilities and access match document questions only. Keep visibility restricted to the authorized trial, without treating that as a confidentiality guarantee against the provider or administrators.
- Save settings, then use Try it for the example questions. Compare answers directly with the document.
- For the update exercise, change only the chair count in your fictional document. Update the source and verify readiness again, without keeping contradictory versions as competing references.
- After saving changes, use Restart chat and ask about chairs again. Check the answer instead of assuming the new text has loaded.
Example to adapt
Original fictional document, version 1: “Demonstration room preparation: eight chairs. No whiteboard is provided. Opening time has not been set.”
- “How many people can sit on the planned chairs?” Eight, without claiming to know the room’s official capacity.
- “Can we use the whiteboard there?” No, none is provided.
- “Can we arrive at nine?” Opening time is not set; no invented confirmation.
Version 2: change eight chairs to ten, leaving the other sentences unchanged. The next trial should answer ten, preserve the whiteboard negation and still acknowledge unknown opening time. This distinguishes a successful update from an answer repeated from chat history.
Check your result
- Is the intended document version ready and selected?
- Do answers preserve quantities and negation?
- Does the agent avoid equating chair count with official capacity?
- Does the updated answer reflect ten chairs?
- Does no answer claim a booking, contact or availability confirmation occurred?
Common problems
A document visible in the interface is not necessarily ready. Check its status before changing instructions. If the old value returns, inspect sources, saving and chat restart. If an answer invents an opening time, inserting another time into the prompt does not fix the problem: require acknowledgment of missing information and repeat the test. One successful trial does not prove every future answer correct.
Next steps
Visit the Devs.ai overview. Add just one clearly named, noncontradictory document and repeat the same question checklist before widening access.



