Behaviors
DEPRECATED: Obtain behaviors from Personality Insights' profiles. Behaviors present in this component are based on scientific research.
Install / Use
/learn @personality-insights/BehaviorsREADME
DEPRECATED: This module was supersed by the new Personality Insights v3 API
Behaviors for Personality Insights
Obtain behaviors from Personality Insights' profiles. Behaviors present in this component are based on scientific research.
Getting Started
- Require and instance
personality-behaviorscomponent
const PersonalityBehaviors = require('personality-behaviors');
const personalityBehaviors = new PersonalityBehaviors({ locale: 'es' });
- Get profile's behavior
const profile = require('./resources/profile');
const behaviors = personalityBehaviors.behaviors(profile);
- Render behaviors somewhere! Try rendering them as cards!
See the complete example code or try it live
More Features
There are more features available such as:
-
Including the component as a browser script. Component will be exported as the global variable
PersonalityBehaviors. -
Filtering behaviors by category, industry or both!
const financeBehaviors = personalityBehaviors.behaviors(profile, { category: ['finance'] });
const mediaBehaviors = personalityBehaviors.behaviors(profile, { industry: ['media'] });
- Get category and industry listings
const industries = personalityBehaviors.industries();
const categories = personalityBehaviors.categories();
- Formatting descriptions in html or markdown optionally!
const personalityBehaviors = new PersonalityBehaviors({ format:'html' });
const mediaBehaviors = personalityBehaviors.behaviors(profile, { industry: ['media'] });
API Methods
The available methods are the following ones:
constructor :: (Options) -> PersonalityBehaviors- Obtain an instance ofPersonalityBehaviors.behaviors :: (Profile, FilterOptions) -> [Behavior]- Calculate the list of behaviors that apply to the given Personality InsightsProfile.categories :: [Category]- List of categories available.industries :: [Industry]- List of industries available.
Definitions:
Profileis a IBM Watson Personality Insights profile which is basically the service JSON output, parsed into a JavaScriptObject.Optionsare options for the behaviors component. Available options are:locale- AStringwith the locale used to generate the labels.format- AStringwith format. Available formats are["plain", "html", "markdown"].
FilterOptionsare filter options for the behaviors matching.category- AStringor[String]with the categories to include.industry- AStringor[String]with the industries to include.
CategoryandIndustryareStrings.
Related Skills
YC-Killer
2.7kA library of enterprise-grade AI agents designed to democratize artificial intelligence and provide free, open-source alternatives to overvalued Y Combinator startups. If you are excited about democratizing AI access & AI agents, please star ⭐️ this repository and use the link in the readme to join our open source AI research team.
workshop-rules
Materials used to teach the summer camp <Data Science for Kids>
last30days-skill
19.8kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
000-main-rules
Project Context - Name: Interactive Developer Portfolio - Stack: Next.js (App Router), TypeScript, React, Tailwind CSS, Three.js - Architecture: Component-driven UI with a strict separation of conce
