Single Step Workflow
How to create the first workflow with a single node
Create a Workflow
php vendor/bin/neuron make:workflow App\\Neuron\\MyAgentphp .\vendor\bin\neuron make:workflow App\Neuron\MyWorkflownamespace App\Neuron;
use NeuronAI\Workflow\Workflow;
class MyAgent extends Workflow
{
protected function nodes(): array
{
return [
new InitialNode(),
];
}
}1
2
3
4
5
6
7

Start and Stop events
Type hint for events
Monitoring & Debugging
Last updated