Skip to main content
Quick actions are the shortcut buttons in the assistant panel. Trigger one with widget.triggerAction(...), which transitions to engage from idle or nudge and fires the quickAction event and the onQuickAction hook.
type QuickActionType =
  | 'whats-due-next'
  | 'guide-submission'
  | 'explain-concept'
  | 'find-resources'
  | 'start-case-study'
  | 'talk-to-advisor';

await widget.triggerAction('whats-due-next');

Customize the set

A default action set with labels is provided. Override the list, or relabel actions, through config.ui.quickActions:
const config: MindConfig = {
  authCookieKey: 'session',
  ui: {
    quickActions: [
      {type: 'whats-due-next', label: 'What should I do next?'},
      {type: 'talk-to-advisor', label: 'Chat with my advisor'},
    ],
  },
};
interface QuickAction {
  type: QuickActionType;
  label: string;
  icon?: string;
  handler?: () => void | Promise<void>;
}