Skip to content
AdlyseDocs
Product guideMCP reference
⌘K
Open Adlyse
⌘K
Overview
QuickstartAuthentication
adlyse-insights
adlyse-ads
adlyse-workflows
list_workflowsget_workflowrun_workflowget_run_statusget_node_runget_workflow_schemacreate_workflowupdate_workflowdelete_workflowcreate_releaselist_releasesset_production_releasedelete_releaselist_authoring_resourceslist_tablesget_tablequery_table_rowscreate_tableadd_table_columnsadd_table_rowsupsert_table_rowsupdate_table_rowsdelete_table_rowsupdate_tabledelete_tableupdate_table_columndelete_table_columnreorder_table_columnslist_schedulesget_schedulecreate_scheduleupdate_schedulepause_scheduleresume_scheduledelete_scheduletrigger_schedulerun_assistantget_assistant_runlist_assistant_threadsget_assistant_threadlist_assistantsget_assistantcreate_assistantupdate_assistantdelete_assistantlist_assistant_handoffscreate_assistant_handoffupdate_assistant_handoffdelete_assistant_handofflist_filesread_filegrep_fileswrite_fileedit_filemove_filearchive_filelist_file_versionspromote_file_versionlist_skillsget_skillcreate_skillupdate_skilldelete_skillassign_skill_to_assistantremove_skill_from_assistantlist_agent_resourcesstart_batch_taskget_batch_taskcontrol_batch_task
adlyse-admin
adlyse-all
  1. Overview
  2. adlyse-workflows

run_assistant

Run an agent once, right now, with a message — how you test a colleague you just built, or re-run one to see what it does.

The run is headless: the agent acts as your organization’s system user, with its configured tools, integrations and skills — exactly as a scheduled run would. Platform-internal agents (the suggestion pipeline, the opportunity investigator) are refused; your own colleagues and the user-visible platform agents are fine.

This spends a real agent run. The dispatch is asynchronous — poll get_assistant_run with the returned thread_id until status is completed, failed or interrupted.

Parameters#

NameTypeRequiredDefaultDescription
assistant_idstringyesThe agent id (from this server’s list_assistants, or get_creation_guide in chat)
messagestringyesWhat the agent wakes up to — a real instruction, the same text a schedule would send it

Returns#

json
{
  "thread_id": "thread_abc123",
  "assistant_id": "assistant_xyz",
  "status": "queued",
  "note": "Dispatched asynchronously; this spends a real run. Poll get_assistant_run(thread_id) ..."
}

Errors#

error_typeWhen
auth_errorMissing / invalid API key
permission_deniedThe credential’s user lacks CAN_MANAGE_WORKFLOW, or the caller is a headless agent
not_foundUnknown agent id, or one outside your organization
invalid_inputEmpty message, or a platform-internal agent

The test loop#

  1. Build or change the colleague (create_assistant / update_assistant on this workflows server, configure_assistant in chat).
  2. run_assistant(assistant_id, message) → thread_id.
  3. Poll get_assistant_run until terminal; read reply, tool_calls and suggestions.
  4. Adjust the instructions and run again.
Previoustrigger_scheduleNextget_assistant_run