You need to first load CB API using the below.
Code:
global $_PLUGINS;
if ( ( ! file_exists( JPATH_SITE . '/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) ) {
echo 'CB not installed'; return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
cbimport( 'cb.html' );
cbimport( 'language.front' );
$_PLUGINS->loadPluginGroup( 'user' );
Next you can fire a trigger like seen in the below tutorial.
www.joomlapolis.com/support/tutorials/120-api-usage/18358-using-cb-triggers
You can then use that trigger in CB Auto Actions.