Create Motivation

POST

Generate motivation factors influencing a user’s decision-making process.

This endpoint analyzes the given context, user profile, historical factors, and constraints to produce a set of motivation factors that could drive the user’s decision. These factors help in understanding the underlying reasons behind a user’s choices.

Parameters:

  • req (MotivationRequest): Contains the main question, user profile, selected historical factors, and constraints

Returns:

  • MotivationResponse: A dictionary of motivation factors and their descriptions

Raises:

  • HTTPException 404: If there’s an error in generating motivation factors

Note:

  • The generated motivation factors are based on the provided context and previously selected factors

Request

This endpoint expects an object.
why_promptstringRequired
user_profile_attributesmap from strings to lists of strings or lists of integers or lists of doublesRequired
historylist of stringsRequired
constraintslist of stringsRequired
llm_modelenumOptionalDefaults to gpt4

Enum representing the llm model types used in the experiments.

Response

Successful Response

motivationlist of strings