--- title: "Agents" slug: "service-agents" updated: 2025-11-17T15:50:28Z published: 2025-11-17T15:50:28Z canonical: "docs.doc-know.com/service-agents" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.doc-know.com/llms.txt > Use this file to discover all available pages before exploring further. # Agents ### Agents Service The **Agents** service enables both good business and good medicine. Identify new business opportunities while keeping better track of patient health. It offers the following capabilities: - Detect patterns in your data and take action in near real time - Communicate with Team dashboards or webhooks when matching criteria are detected - Capture data samples to single-site and multi-site datasets that can be downloaded as needed ### Properties Below is a list of properties supported by this object. | Name | Description | | --- | --- | | subject | The subject of a Team message | | message | The body of a Team message | | dos | The date when the Team message will appear | | sample | A JSON object representing a data sample to be captured for research | ### Functions Below is a list of functions supported by this object. | Name | Description | | --- | --- | | --- | --- | ### Trigger Notifications are triggered each time a report is completed in the Dr. Know product. ### Examples The example below checks for the presence of a patient lung mass. When found, a notification is sent immediately to a configured Team. The Team, default subject, and this script are all configured within the **Dr. Know - Admin** product. ``` // fetch values var lungMass = app.get("D83AD65522094CB3BB156939F8113617", false); // prepare message if (lungMass === true) service.message = "A lung mass was detected. Consider follow up."; ``` The example below is the same as above, but overrides the default subject and date and specifies that the message should not appear in the Teams dashboard until 3 days from today. ``` // fetch values var lungMass = app.get("D83AD65522094CB3BB156939F8113617", false); // prepare message if (lungMass === true) { service.subject = "Lung Mass Detected"; service.message = "A lung mass was detected. Consider follow up."; service.dos = tools.addDays(3); } ``` The example below captures this data sample to a research dataset. ``` // fetch values var lungMass = app.get("D83AD65522094CB3BB156939F8113617", false); // prepare data sample for capture to research dataset service.sample = { Age: avatar.age, LungMass: lungMass }; ``` ### Remarks All agents are created and managed in the **Dr. Know - Admin** product. From the main menu, go to **Services / Agents** to get started.