SparkRefining a Tool With Spark

Refining a Tool With Spark

Open a draft Spark built, change it by telling Spark or by editing it in place, try it with Test Run, and know when to start over.

Get the Tool Right Before Members Use It

A first draft is a starting point. You open what Spark built, try it the way a Member would, and tell Spark what to change. You can also edit any part of it yourself. Everything you change is saved in your App as you go. There's no save step.

Open a Draft

Click View Draft on a built item: on its plan card, under Spark's message about it, or in the list of what Spark built. The draft opens beside the chat.

The top of the draft shows its name, a Draft pill, and its type, such as "Agent · Form Agent · Saved As Draft" or "Workflow · 4 Steps · Saved As Draft". Click the X to close it.

What you see depends on the item:

ItemWhat you can change
AgentWhat It Does, the model under Intelligence, and the instructions under View Agent Instructions. Inputs It Collects lists the agent's fields; ask Spark to change them, or change them in the editor.
WorkflowEach Step. Click a Step to open it. Every Step has Step Name and What This Step Does. A Human Input Step has Step Instructions and Input Fields, with Add Field. An Agent step has Agent Instructions, its model, and the Pause for Human Review toggle.
Knowledge itemIts name and its Content. It's marked "Saved To Your Knowledge Library".

Tell Spark What to Change

With a draft open, the message box says "Edit Directly - Or Tell Spark What To Change...". Type what you want, as plainly as you'd tell a team member:

  • "Make the second question a dropdown with Beginner, Intermediate and Advanced."
  • "Move the goals question before the schedule question."
  • "This asks too many questions. What would you cut to make it shorter?"

When your message asks for a change, Spark rebuilds the draft and shows the new version. When it's a question, Spark answers and leaves the draft as it is.

When Spark changes a tool, it rebuilds it from your conversation and replaces the edits you made by hand, in the draft pane or in the editor. Finish asking Spark for changes before you edit by hand. If you need both, make the Spark change first, then redo your hand edits.

What a Spark Change Replaces

Spark doesn't see your hand edits when it rebuilds. It replaces:

  • An agent: its name, type, What It Does, instructions, model and every input field.
  • A workflow: its description, start screen description, completion text and every Step, including Steps you added in the editor, such as a Condition Step. Each Step's fields, instructions, model and Pause for Human Review setting are replaced too. Spark also replaces Save Outputs to Member's User Knowledge, and, when its new version saves Assets, turns on Show Assets and replaces Assets to Display.
  • A knowledge item: its name and content.

A Spark change keeps the tool's visibility, whether it's published, the knowledge attached to an agent, and settings Spark doesn't write, such as an agent's icon.

Changing a Tool That's Already Published

When a tool is published, Spark's changes reach your Members right away. Make big changes before you publish, and run a Test Run right after any change to a live tool.

To keep a copy of the version that works, duplicate the tool before you ask Spark for a change. Use Duplicate on the Agents or Workflows list. The copy starts as a Secret draft, and it doesn't keep every setting. For example, a duplicated agent drops its icon and chat settings such as its Welcome Message, and a duplicated workflow drops its start screen text and completion screen settings. Spark can't work on the copy. It changes only the tools it built in the session.

Edit It Yourself

Finish asking Spark for changes before you edit by hand. A Spark change replaces the edits you made by hand, in the draft pane or in the editor. If you need both, make the Spark change first, then redo your hand edits. See What a Spark Change Replaces.

Click into any field in the draft and type. Your change saves when you click out of the field. If a save fails, you see "Could not save the change."

When you edit instructions Spark wrote, the label changes from "Written By Spark" to "Written By Spark, Edited By You". To undo your edits, click Revert To Spark's Version.

You can also change the model an agent or Agent step uses. To go back to the one Spark picked, click the restore button next to the model.

Try It With Test Run

Click Test Run at the bottom of the draft. The tool opens the way a Member would run it. Testing doesn't publish anything.

A Test Run uses Credits, like any run of your tools. See Credits.

Test with a few different situations, not just one. Write down the answers a few different Members might give, keep them open in another window, and paste them in. What you see tells you what to ask Spark to change.

When you're done, click Back To Spark at the top of the page. It takes you back to the same session. The banner says "Continue your build when you're done here."

Open It in the Editor

Click Open In Builder to open the tool in the agent editor or the workflow editor, or a knowledge item in your Knowledge Library. Use it for anything Spark doesn't build, such as a Condition Step. Do this after you're done asking Spark for changes, because a Spark change replaces every Step, including ones you added. See What a Spark Change Replaces. Back To Spark at the top of the page takes you back to your session.

On a small screen, such as a phone, Open In Builder isn't shown for a workflow. Open the workflow on a computer.

What To Do Next

After a build, Spark shows What To Do Next:

  1. Test the tool with Test Run.

  2. Edit it if you need to, by telling Spark or with Open In Builder.

  3. Publish it when it's ready. In the editor, choose Publish.

Members see a tool only once it's published and they have access to it. Until then, it's a draft only your App's App Admins and App Editors can see. See Publishing and Visibility.

When to Start Over

Most tools get there by talking to Spark. Start over only when they don't.

  • Keep talking to Spark first. Give it direct instructions, or tell it what feels wrong and ask what it would change. Spark still has your plan and everything you've said in the session.

  • Go back to Tool Designer if Spark keeps holding on to something. A rule in your plan, such as "always" or "never", can outweigh what you ask for later. Answer Tool Designer's questions again, saying exactly what you want, and click Send to Spark. That starts a new session. See Send to Spark.

  • Start a new session for a different tool. A session is one build project. See Starting a Spark Session.

You don't need to delete a draft you don't want. Members can't see it.