AI & agents
Working with AI
Ask your AI assistant for Logic Fabric work effectively, follow what it does step by step, and know what it can and can't change.
Applies toDataverse
With Logic Foundry connected, you talk to your AI assistant in plain language and it works through Logic Foundry’s tools step by step: it looks things up, plans, makes a change, checks the result and continues. The better your request, the fewer wrong turns it takes. This page shows how to ask, how to follow along, and where the limits are.
How the assistant works through a request
Section titled “How the assistant works through a request”flowchart TD
R[Your request] --> D[Discover<br/>projects, artifacts, tables]
D --> P[Plan the steps]
P --> A[Call a tool]
A --> C{Done?}
C -- No --> A
C -- Yes --> S[Summary for you]
A well-behaved assistant:
- Looks names up instead of guessing. It lists or searches projects, artifacts and tables before it refers to them, because names from earlier conversations may not match your environment.
- Reads the schema first. Before writing logic for a table, it reads the table’s columns and choices so it uses real column names and option values.
- Reads before it writes. Before updating an artifact, it reads the current definition and changes only what you asked.
- Explains as it goes. It tells you which tool it is calling and why, and reports errors in plain words before retrying.
If your assistant skips these steps, ask it to: “Look up the real column names before you write the formula.”
Ask effectively
Section titled “Ask effectively”| Do | Example |
|---|---|
| Name the project | “In the Sales project, …” |
| Name the table and the real business rule | “…create a validation on opportunity that blocks closing as won when Estimated Revenue is empty.” |
| Say what kind of artifact you want | “Use a decision table, with one row per customer tier.” |
| Give names and messages | “Call it ValidateWonOpportunity and show the message Enter the estimated revenue before closing.” |
| Ask for a plan first on bigger work | “Before you create anything, list the blocks and flows you plan to create.” |
| Ask for impact before a change | “Show me everything that uses CalculateCreditLimit before you change it.” |
Some useful read-only questions to start with:
- “Explain what the
ApproveDiscountflow does, step by step.” - “Which recipes run on the quote table?”
- “Which configuration values does the Sales project use, and where?”
- “Which security roles can write to opportunities, and who holds them?”
- “Run the
CalculateShippingCostblock for a 12 kg order to Germany.”
What the assistant can and can’t change
Section titled “What the assistant can and can’t change”| The assistant can | The assistant can’t |
|---|---|
| Create projects and every Logic Fabric artifact type | Change artifacts in a project whose solution is managed in this environment |
| Update definitions of blocks, flows, recipes, events, schedules, configurations, localized resources and service connections | Do anything your own Dataverse security roles don’t allow |
| Update, publish and activate business process versions (with Process Orchestrator) | Change security roles, teams or user assignments (security tools are read-only) |
| Run logic blocks and logic flows | Delete artifacts |
| Publish Dataverse customizations | Deploy between environments (use the Logic Fabric CLI) |
Review what the assistant built
Section titled “Review what the assistant built”The assistant reports what it created or changed. Before you rely on it:
- Open the artifact in the designer and read it, just as you would review a colleague’s work.
- Run it with test inputs (see Run and test), or generate tests with Logic Assurance.
- Publish Dataverse customizations at the end of a session if your changes need it.
Example
Section titled “Example”You ask: “In the Sales project, create a formula block that calculates a 10% discount on an opportunity’s estimated revenue, called CalcOpportunityDiscount.”
A typical run:
list_projectsconfirms the Sales project exists.get_project_detailsconfirms its solution is unmanaged.metadata_get_entity_attributesreads the opportunity columns and finds Est. Revenue (estimatedvalue, Currency).create_logic_blockcreates the formula.run_logic_blocktries it with an estimated revenue of50,000and gets5,000.- The assistant reports the new block and the test result.