Documentation

AiAgentOnboardingController
in package

Table of Contents

Properties

$smsService  : SmsService

Methods

__construct()  : mixed
generateToken()  : string
Generate onboarding token
show()  : mixed
Show the onboarding form
submit()  : mixed
Handle form submission
findOrCreateProfile()  : AiAgentProfile
Find or create profile for the given profileable
sendSetupConfirmation()  : void
Send SMS confirmation that profile is set up

Properties

Methods

generateToken()

Generate onboarding token

public static generateToken(string $profileableType, int $profileableId) : string
Parameters
$profileableType : string
$profileableId : int
Return values
string

show()

Show the onboarding form

public show(Request $request, string $token) : mixed
Parameters
$request : Request
$token : string

submit()

Handle form submission

public submit(Request $request, string $token) : mixed
Parameters
$request : Request
$token : string

        
On this page

Search results