@yrpri/api 9.0.103 → 9.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/active-citizen/controllers/activities.cjs +0 -174
- package/dist/active-citizen/controllers/news_feeds.cjs +0 -96
- package/dist/active-citizen/controllers/notifications.cjs +0 -243
- package/dist/active-citizen/controllers/recommendations.cjs +0 -280
- package/dist/active-citizen/engine/allOurIdeas/aiHelper.js +0 -204
- package/dist/active-citizen/engine/allOurIdeas/explainAnswersAssistant.js +0 -66
- package/dist/active-citizen/engine/allOurIdeas/iconGenerator.js +0 -38
- package/dist/active-citizen/engine/analytics/export_anon_community_activities.js +0 -334
- package/dist/active-citizen/engine/analytics/importer.js +0 -308
- package/dist/active-citizen/engine/analytics/manager.cjs +0 -377
- package/dist/active-citizen/engine/analytics/plausible/manager.cjs +0 -500
- package/dist/active-citizen/engine/analytics/statsCalc.cjs +0 -194
- package/dist/active-citizen/engine/analytics/utils.cjs +0 -369
- package/dist/active-citizen/engine/marketing/campaign.cjs +0 -90
- package/dist/active-citizen/engine/moderation/fraud/CreateFraudAuditReport.cjs +0 -313
- package/dist/active-citizen/engine/moderation/fraud/FraudBase.cjs +0 -239
- package/dist/active-citizen/engine/moderation/fraud/FraudDeleteBase.cjs +0 -211
- package/dist/active-citizen/engine/moderation/fraud/FraudDeleteEndorsements.cjs +0 -120
- package/dist/active-citizen/engine/moderation/fraud/FraudDeletePointQualities.cjs +0 -114
- package/dist/active-citizen/engine/moderation/fraud/FraudDeletePoints.cjs +0 -101
- package/dist/active-citizen/engine/moderation/fraud/FraudDeletePosts.cjs +0 -84
- package/dist/active-citizen/engine/moderation/fraud/FraudDeleteRatings.cjs +0 -15
- package/dist/active-citizen/engine/moderation/fraud/FraudGetBase.cjs +0 -133
- package/dist/active-citizen/engine/moderation/fraud/FraudGetEndorsements.cjs +0 -185
- package/dist/active-citizen/engine/moderation/fraud/FraudGetPointQualities.cjs +0 -184
- package/dist/active-citizen/engine/moderation/fraud/FraudGetPoints.cjs +0 -170
- package/dist/active-citizen/engine/moderation/fraud/FraudGetPosts.cjs +0 -109
- package/dist/active-citizen/engine/moderation/fraud/FraudGetRatings.cjs +0 -140
- package/dist/active-citizen/engine/moderation/fraud/FraudScannerNotifier.cjs +0 -279
- package/dist/active-citizen/engine/moderation/get_moderation_items.cjs +0 -386
- package/dist/active-citizen/engine/moderation/image_labeling/CommunityLabeling.cjs +0 -49
- package/dist/active-citizen/engine/moderation/image_labeling/GroupLabeling.cjs +0 -68
- package/dist/active-citizen/engine/moderation/image_labeling/ImageLabelingBase.cjs +0 -288
- package/dist/active-citizen/engine/moderation/image_labeling/PointLabeling.cjs +0 -33
- package/dist/active-citizen/engine/moderation/image_labeling/PostLabeling.cjs +0 -56
- package/dist/active-citizen/engine/moderation/perspective_api_client.cjs +0 -106
- package/dist/active-citizen/engine/moderation/process_moderation_items.cjs +0 -344
- package/dist/active-citizen/engine/moderation/toxicity_analysis.cjs +0 -810
- package/dist/active-citizen/engine/news_feeds/activity_and_item_index_definitions.cjs +0 -15
- package/dist/active-citizen/engine/news_feeds/generate_dynamically.cjs +0 -362
- package/dist/active-citizen/engine/news_feeds/generate_from_notifications.cjs +0 -268
- package/dist/active-citizen/engine/news_feeds/news_feeds_utils.cjs +0 -439
- package/dist/active-citizen/engine/notifications/emails_utils.cjs +0 -569
- package/dist/active-citizen/engine/notifications/generate_point_notifications.cjs +0 -233
- package/dist/active-citizen/engine/notifications/generate_post_notifications.cjs +0 -118
- package/dist/active-citizen/engine/notifications/generate_post_status_change_notifications.cjs +0 -41
- package/dist/active-citizen/engine/notifications/notifications_utils.cjs +0 -148
- package/dist/active-citizen/engine/notifications/point_delivery.cjs +0 -54
- package/dist/active-citizen/engine/notifications/post_delivery.cjs +0 -31
- package/dist/active-citizen/engine/notifications/process_delayed_notifications.cjs +0 -471
- package/dist/active-citizen/engine/notifications/process_general_notifications.cjs +0 -212
- package/dist/active-citizen/engine/old/exporters/categories_dataset.js +0 -153
- package/dist/active-citizen/engine/old/exporters/dataset_tools.js +0 -80
- package/dist/active-citizen/engine/old/exporters/sentiment_dataset.js +0 -157
- package/dist/active-citizen/engine/recommendations/events_importer.cjs +0 -139
- package/dist/active-citizen/engine/recommendations/events_manager.cjs +0 -212
- package/dist/active-citizen/engine/reports/add_points_to_sheet.cjs +0 -83
- package/dist/active-citizen/engine/reports/commonUtils.js +0 -75
- package/dist/active-citizen/engine/reports/common_utils.cjs +0 -740
- package/dist/active-citizen/engine/reports/docx_group_report.cjs +0 -596
- package/dist/active-citizen/engine/reports/xlsAllOurIdeasExport.js +0 -232
- package/dist/active-citizen/engine/reports/xls_community_users_report.cjs +0 -277
- package/dist/active-citizen/engine/reports/xls_group_report.cjs +0 -718
- package/dist/active-citizen/llms/baseChatBot.js +0 -183
- package/dist/active-citizen/llms/imageGeneration/chatGptImageGenerator.js +0 -56
- package/dist/active-citizen/llms/imageGeneration/collectionImageGenerator.js +0 -109
- package/dist/active-citizen/llms/imageGeneration/dalleImageGenerator.js +0 -84
- package/dist/active-citizen/llms/imageGeneration/fluxImageGenerator.js +0 -49
- package/dist/active-citizen/llms/imageGeneration/iImageGenerator.js +0 -1
- package/dist/active-citizen/llms/imageGeneration/imageProcessorService.js +0 -64
- package/dist/active-citizen/llms/imageGeneration/imagenImageGenerator.js +0 -107
- package/dist/active-citizen/llms/imageGeneration/s3Service.js +0 -110
- package/dist/active-citizen/llms/llmTranslation.js +0 -472
- package/dist/active-citizen/models/ac_activity.cjs +0 -216
- package/dist/active-citizen/models/ac_background_job.cjs +0 -109
- package/dist/active-citizen/models/ac_campaign.cjs +0 -97
- package/dist/active-citizen/models/ac_client_activity.cjs +0 -23
- package/dist/active-citizen/models/ac_delayed_notification.cjs +0 -43
- package/dist/active-citizen/models/ac_following.cjs +0 -43
- package/dist/active-citizen/models/ac_list.cjs +0 -68
- package/dist/active-citizen/models/ac_list_users.cjs +0 -19
- package/dist/active-citizen/models/ac_mute.cjs +0 -27
- package/dist/active-citizen/models/ac_news_feed_item.cjs +0 -57
- package/dist/active-citizen/models/ac_news_feed_processed_range.cjs +0 -59
- package/dist/active-citizen/models/ac_notification.cjs +0 -292
- package/dist/active-citizen/models/ac_translation_cache.cjs +0 -750
- package/dist/active-citizen/models/ac_watching.cjs +0 -31
- package/dist/active-citizen/scripts/analytics/setup_all_plausible_goals.cjs +0 -13
- package/dist/active-citizen/scripts/fix_old_delayed_notifications.js +0 -63
- package/dist/active-citizen/scripts/kue_status.js +0 -31
- package/dist/active-citizen/scripts/kue_watch_stuck_jobs.js +0 -24
- package/dist/active-citizen/scripts/translation_clear_language.js +0 -117
- package/dist/active-citizen/scripts/translation_delete.js +0 -27
- package/dist/active-citizen/scripts/translation_replace_text_from_url.js +0 -180
- package/dist/active-citizen/scripts/translation_update.js +0 -28
- package/dist/active-citizen/scripts/translations_list.js +0 -27
- package/dist/active-citizen/utils/airbrake.cjs +0 -17
- package/dist/active-citizen/utils/get_anonymous_system_user.cjs +0 -21
- package/dist/active-citizen/utils/i18n.cjs +0 -3
- package/dist/active-citizen/utils/logger.cjs +0 -25
- package/dist/active-citizen/utils/redisConnection.cjs +0 -29
- package/dist/active-citizen/utils/to_json.cjs +0 -9
- package/dist/active-citizen/utils/translation_cloning.cjs +0 -171
- package/dist/active-citizen/utils/translation_helpers.cjs +0 -534
- package/dist/active-citizen/utils/truncate_text.cjs +0 -21
- package/dist/active-citizen/utils/updateAllLocalesFromEn.js +0 -253
- package/dist/active-citizen/utils/updateLocaleFolders.js +0 -34
- package/dist/active-citizen/workers/activity.cjs +0 -189
- package/dist/active-citizen/workers/anonymizations.cjs +0 -734
- package/dist/active-citizen/workers/bulk_status_update.cjs +0 -458
- package/dist/active-citizen/workers/delayed_jobs.cjs +0 -244
- package/dist/active-citizen/workers/deletions.cjs +0 -1911
- package/dist/active-citizen/workers/email.cjs +0 -9
- package/dist/active-citizen/workers/fraud_management.cjs +0 -109
- package/dist/active-citizen/workers/generativeAi.js +0 -56
- package/dist/active-citizen/workers/main.cjs +0 -89
- package/dist/active-citizen/workers/marketing.cjs +0 -25
- package/dist/active-citizen/workers/moderation.cjs +0 -73
- package/dist/active-citizen/workers/notification_delivery.cjs +0 -368
- package/dist/active-citizen/workers/notification_news_feed.cjs +0 -142
- package/dist/active-citizen/workers/queue.cjs +0 -99
- package/dist/active-citizen/workers/recount.cjs +0 -74
- package/dist/active-citizen/workers/reports.cjs +0 -42
- package/dist/active-citizen/workers/similarities.cjs +0 -21
- package/dist/active-citizen/workers/speech_to_text.cjs +0 -482
- package/dist/agents/assistants/agentAssistant.js +0 -88
- package/dist/agents/assistants/baseAssistant.js +0 -888
- package/dist/agents/assistants/baseAssistantWithVoice.js +0 -150
- package/dist/agents/assistants/modes/agentDirectConnection.js +0 -84
- package/dist/agents/assistants/modes/agentSelectionMode.js +0 -44
- package/dist/agents/assistants/modes/baseAssistantMode.js +0 -54
- package/dist/agents/assistants/modes/tools/agentTools.js +0 -447
- package/dist/agents/assistants/modes/tools/baseTools.js +0 -58
- package/dist/agents/assistants/modes/tools/loginTools.js +0 -156
- package/dist/agents/assistants/modes/tools/models/agents.js +0 -146
- package/dist/agents/assistants/modes/tools/models/subscriptions.js +0 -332
- package/dist/agents/assistants/modes/tools/models/users.js +0 -11
- package/dist/agents/assistants/modes/tools/navigationTools.js +0 -166
- package/dist/agents/assistants/modes/tools/subscriptionTools.js +0 -323
- package/dist/agents/assistants/modes/tools/workflowConverstationTools.js +0 -112
- package/dist/agents/assistants/voiceAssistant.js +0 -619
- package/dist/agents/controllers/agentProductController.js +0 -103
- package/dist/agents/controllers/agentSubscriptionController.js +0 -261
- package/dist/agents/controllers/assistantsController.js +0 -511
- package/dist/agents/controllers/policySynthAgents.js +0 -395
- package/dist/agents/managers/agentProductManager.js +0 -91
- package/dist/agents/managers/emailInvitesManager.js +0 -55
- package/dist/agents/managers/emailTemplateRenderer.js +0 -362
- package/dist/agents/managers/newAiModelSetup.js +0 -650
- package/dist/agents/managers/notificationAgentQueueManager.js +0 -510
- package/dist/agents/managers/subscriptionManager.js +0 -535
- package/dist/agents/managers/workflowConversationManager.js +0 -79
- package/dist/agents/models/agentProduct.js +0 -116
- package/dist/agents/models/agentProductBoosterPurchase.js +0 -58
- package/dist/agents/models/agentProductBundle.js +0 -68
- package/dist/agents/models/agentProductRun.js +0 -52
- package/dist/agents/models/discount.js +0 -88
- package/dist/agents/models/subscription.js +0 -79
- package/dist/agents/models/subscriptionPlan.js +0 -46
- package/dist/agents/models/subscriptionUser.js +0 -27
- package/dist/agents/models/testData/createEvolyAgentProduct.js +0 -477
- package/dist/agents/models/testData/old/updateAgentWorkflowConfiguration.js +0 -230
- package/dist/agents/models/testData/setupEvolyAgentProductConfig.js +0 -233
- package/dist/agents/models/testData/updateAgentWorkflowConfiguration.js +0 -230
- package/dist/agents/models/workflowConversation.js +0 -53
- package/dist/agents/tools/setTemplateWorkflowCommunityId.js +0 -46
- package/dist/app.js +0 -943
- package/dist/authorization.cjs +0 -1860
- package/dist/bot_control.js +0 -1930
- package/dist/config/config.cjs +0 -14
- package/dist/config/config.js +0 -14
- package/dist/controllers/allOurIdeas.js +0 -696
- package/dist/controllers/audios.cjs +0 -100
- package/dist/controllers/bulkStatusUpdates.cjs +0 -202
- package/dist/controllers/categories.cjs +0 -199
- package/dist/controllers/communities.cjs +0 -2996
- package/dist/controllers/domains.cjs +0 -1341
- package/dist/controllers/externalIds.cjs +0 -223
- package/dist/controllers/groups.cjs +0 -4309
- package/dist/controllers/images.cjs +0 -499
- package/dist/controllers/index.cjs +0 -449
- package/dist/controllers/legacyPages.cjs +0 -35
- package/dist/controllers/legacyPosts.cjs +0 -56
- package/dist/controllers/legacyUsers.cjs +0 -36
- package/dist/controllers/nonSpa.cjs +0 -574
- package/dist/controllers/organizations.cjs +0 -250
- package/dist/controllers/points.cjs +0 -1137
- package/dist/controllers/posts.cjs +0 -2036
- package/dist/controllers/ratings.cjs +0 -234
- package/dist/controllers/users.cjs +0 -2255
- package/dist/controllers/videos.cjs +0 -226
- package/dist/deleteUnwantedDeclerations.cjs +0 -55
- package/dist/migrations/agentAuditLogs.cjs +0 -46
- package/dist/migrations/agentClasses.cjs +0 -60
- package/dist/migrations/agentConnectorClasses.cjs +0 -61
- package/dist/migrations/agentConnectors.cjs +0 -50
- package/dist/migrations/agentEvals.cjs +0 -45
- package/dist/migrations/agentRegistries.cjs +0 -40
- package/dist/migrations/agents.cjs +0 -54
- package/dist/migrations/aiModels.cjs +0 -49
- package/dist/migrations/apiUsage.cjs +0 -47
- package/dist/migrations/apis.cjs +0 -49
- package/dist/migrations/groupPrivateData.cjs +0 -30
- package/dist/migrations/modelUsage.cjs +0 -60
- package/dist/migrations/oldMigrations/2019/20181030020612-AddActivitiesIndex.js +0 -23
- package/dist/migrations/oldMigrations/2019/20181102210612-AddFirstVideoFeatures.js +0 -360
- package/dist/migrations/oldMigrations/2019/20181212210612-ModerationFeatures.js +0 -29
- package/dist/migrations/oldMigrations/2019/2019010610612-CommunityFolders.js +0 -43
- package/dist/migrations/oldMigrations/2019/20190117020612-AddMissingIndexes.js +0 -24
- package/dist/migrations/oldMigrations/2019/20190117020612-RemoveUnusedIndexes.js +0 -29
- package/dist/migrations/oldMigrations/2019/20190127020612-RemoveUnusedIndexesPartThree.js +0 -22
- package/dist/migrations/oldMigrations/2019/20190127020612-RemoveUnusedIndexesPartTwo.js +0 -23
- package/dist/migrations/oldMigrations/2019/20190223020612-AddPrivateProfileDataToUsers.js +0 -18
- package/dist/migrations/oldMigrations/2019/20190706210612-AddCustomRatings.js +0 -43
- package/dist/migrations/oldMigrations/2019/20190829210612-AddGeneralStore.js +0 -36
- package/dist/migrations/oldMigrations/2019/20192811210612-AddAcClientActivities.js +0 -41
- package/dist/migrations/oldMigrations/2020/20190527020612-WorkOnIndexes.js +0 -88
- package/dist/migrations/oldMigrations/2020/20200409020612-AddBackgroundJob.js +0 -33
- package/dist/migrations/oldMigrations/2020/20200716210612-AddDataToCollections.js +0 -38
- package/dist/migrations/oldMigrations/2022/20220215100612-AddDataToEndorsements.js +0 -19
- package/dist/migrations/oldMigrations/2022/20220220100612-AddDataForFraudDetection.js +0 -19
- package/dist/migrations/oldMigrations/2022/20220903100612-AddPromotionFeatures.js +0 -127
- package/dist/migrations/oldMigrations/2022/onHold/20200527020612-AddCampaigns.js +0 -68
- package/dist/migrations/oldMigrations/2024/20241304175112-AddMediaSupportForHtmlGroups.cjs +0 -63
- package/dist/migrations/oldMigrations/older/20160511172514-AddNotificationFeatures.js +0 -14
- package/dist/migrations/oldMigrations/older/20161030020612-AddBulkStatusUpdate.js +0 -71
- package/dist/migrations/oldMigrations/older/20170514035258-add-metadata-to-invites.js +0 -12
- package/dist/migrations/oldMigrations/older/20180216020612-AddTranslationCaches.js +0 -46
- package/dist/migrations/oldMigrations/older/20180218210612-AddTranslationAndLanguages.js +0 -46
- package/dist/migrations/privateAccessStore.cjs +0 -55
- package/dist/migrations/zzz_associations.cjs +0 -154
- package/dist/migrations/zzzz_createUsersAndAdminsForClasses.cjs +0 -100
- package/dist/migrations/zzzzz_create_agent_runs.cjs +0 -606
- package/dist/migrations/zzzzzz_create_agent_runs_fix.cjs +0 -11
- package/dist/migrations/zzzzzzz_create_trees.cjs +0 -81
- package/dist/models/audio.cjs +0 -430
- package/dist/models/bulk_status_update.cjs +0 -58
- package/dist/models/campaign.cjs +0 -78
- package/dist/models/category.cjs +0 -94
- package/dist/models/community.cjs +0 -337
- package/dist/models/domain.cjs +0 -486
- package/dist/models/endorsement.cjs +0 -39
- package/dist/models/general_data_store.cjs +0 -20
- package/dist/models/group.cjs +0 -728
- package/dist/models/image.cjs +0 -579
- package/dist/models/index.cjs +0 -186
- package/dist/models/invite.cjs +0 -48
- package/dist/models/iso_country.cjs +0 -16
- package/dist/models/organization.cjs +0 -122
- package/dist/models/page.cjs +0 -273
- package/dist/models/point.cjs +0 -622
- package/dist/models/point_quality.cjs +0 -39
- package/dist/models/point_revision.cjs +0 -47
- package/dist/models/post.cjs +0 -680
- package/dist/models/post_revision.cjs +0 -38
- package/dist/models/post_status_change.cjs +0 -35
- package/dist/models/promotion.cjs +0 -34
- package/dist/models/rating.cjs +0 -51
- package/dist/models/relationship.cjs +0 -19
- package/dist/models/request_to_join.cjs +0 -20
- package/dist/models/user.cjs +0 -604
- package/dist/models/user_legacy_password.cjs +0 -13
- package/dist/models/video.cjs +0 -1137
- package/dist/publish.js +0 -40
- package/dist/repack.js +0 -53
- package/dist/scripts/addRatingUsersToGroup.js +0 -51
- package/dist/scripts/addUserToOrganization.js +0 -71
- package/dist/scripts/analyseRatingsForCommunity.js +0 -150
- package/dist/scripts/analyzeAndFixBrokenPointUsers.js +0 -28
- package/dist/scripts/analyzeEndorsementsByCountry.js +0 -70
- package/dist/scripts/analyzePostsForCommunity.js +0 -185
- package/dist/scripts/bulkStatusUpdates/listUpdates.js +0 -14
- package/dist/scripts/bulkStatusUpdates/mergeLatestPostsToUpdate.js +0 -110
- package/dist/scripts/bulkStatusUpdates/performUpdate.js +0 -116
- package/dist/scripts/bulkStatusUpdates/performUpdateForGroup.cjs +0 -124
- package/dist/scripts/bulkStatusUpdates/performUpdateForStatus.js +0 -141
- package/dist/scripts/change/changeVideoAspectTo.js +0 -34
- package/dist/scripts/change/setUseNewVersion.cjs +0 -22
- package/dist/scripts/changeCommunityGroupcount.js +0 -30
- package/dist/scripts/changeCommunityPostCount.js +0 -30
- package/dist/scripts/changeGroupPostCount.js +0 -30
- package/dist/scripts/changeLanguage.js +0 -50
- package/dist/scripts/changeOfficalStatus.js +0 -30
- package/dist/scripts/cleanups/deleteAnonNotifications.cjs +0 -91
- package/dist/scripts/cleanups/deleteLinkGroupsWithDeletedCommunities.js +0 -62
- package/dist/scripts/cleanups/deleteYearOldNotifications.cjs +0 -72
- package/dist/scripts/cleanups/removeAllUsersFromHiddenPublicGroup.js +0 -43
- package/dist/scripts/clearAllEndorsementInGroup.js +0 -50
- package/dist/scripts/cloning/clearUsersForCommunitiesFromUrl.js +0 -129
- package/dist/scripts/cloning/cloneFromUrlScript.js +0 -65
- package/dist/scripts/cloning/cloneWBFromUrlScriptAndCreateLinks.js +0 -140
- package/dist/scripts/cloning/cloneWBFromUrlScriptNoUsersOrPoints.js +0 -140
- package/dist/scripts/cloning/cloneWBSerbianFromUrlScriptAndCreateLinks.js +0 -131
- package/dist/scripts/cloning/copyCommunityConfigAndTranslationsFromURL.js +0 -173
- package/dist/scripts/cloning/copyCommunityOneGroupToDomainNoUsersNoEndorsements.js +0 -18
- package/dist/scripts/cloning/copyCommunityToDomainNoUsersNoEndorsements.js +0 -17
- package/dist/scripts/cloning/copyCommunityToDomainWithEverything.js +0 -17
- package/dist/scripts/cloning/copyCommunityToDomainWithOnlyGroups.js +0 -26
- package/dist/scripts/cloning/copyGroupConfigAndTranslationsFromURL.js +0 -205
- package/dist/scripts/cloning/copyPostToGroupOld.js +0 -397
- package/dist/scripts/cloning/copyPostVideosFromURL.js +0 -236
- package/dist/scripts/cloning/copyPostWithOutAnyVotingOrActivities.js +0 -17
- package/dist/scripts/cloning/deepCloneSerbianWBFromUrlScriptAndCreateLinks.js +0 -131
- package/dist/scripts/cloning/deepCloneWBFromUrlScriptAndCreateLinks.js +0 -139
- package/dist/scripts/cloning/setAdminsFromURL.js +0 -161
- package/dist/scripts/cloning/setExternalIdsFromURL.js +0 -129
- package/dist/scripts/countCommunity.js +0 -291
- package/dist/scripts/countCommunityUsers.js +0 -152
- package/dist/scripts/countDelayedNotifications.js +0 -18
- package/dist/scripts/countGroup.js +0 -246
- package/dist/scripts/countStuff.js +0 -67
- package/dist/scripts/countUniqueVotersInAGroup.js +0 -48
- package/dist/scripts/createInvitesAndShow.js +0 -75
- package/dist/scripts/database/sync_database.js +0 -14
- package/dist/scripts/database/sync_dev_database.js +0 -17
- package/dist/scripts/debugNotifications.js +0 -58
- package/dist/scripts/deleteAllNewsFeeds.js +0 -10
- package/dist/scripts/deleteCategory.js +0 -13
- package/dist/scripts/deleteOldAppActivities.js +0 -40
- package/dist/scripts/deletePostContactDataForCommunity.js +0 -53
- package/dist/scripts/destroy/destroy_all_but_one_domain.js +0 -1026
- package/dist/scripts/displayAuthorForPost.js +0 -16
- package/dist/scripts/endorsementFraudDetection/analyseEndorsementsForCommunity.js +0 -183
- package/dist/scripts/endorsementFraudDetection/bulkDeleteDuplicateEndorsmentsFromUrl.js +0 -208
- package/dist/scripts/exportAllStatusChanges.js +0 -36
- package/dist/scripts/exportClientAcitivity.js +0 -36
- package/dist/scripts/exportEndorsementsForCommunity.js +0 -79
- package/dist/scripts/exportPointQualitiesForCommunity.js +0 -84
- package/dist/scripts/exportPostsAndPointsForCommunity.js +0 -147
- package/dist/scripts/exportPostsDataSetForDomain.js +0 -244
- package/dist/scripts/exportPostsForGroup.js +0 -173
- package/dist/scripts/exportRatingsForPost.js +0 -15
- package/dist/scripts/exportUserEndorsementsWithUserAnalysis.js +0 -123
- package/dist/scripts/exportUsersForCommunity.js +0 -24
- package/dist/scripts/exportUsersForDomain.js +0 -24
- package/dist/scripts/exportUsersForGroup.js +0 -24
- package/dist/scripts/exports/ratingDistribution.js +0 -71
- package/dist/scripts/exports/whoEndorsedWhatByCommunity.js +0 -56
- package/dist/scripts/findUnusedClientImports.js +0 -56
- package/dist/scripts/fixAllPostPointCounts.js +0 -22
- package/dist/scripts/fixAnonNotificationsSettings.js +0 -48
- package/dist/scripts/fixCountKopavogur.js +0 -9
- package/dist/scripts/fixEndorsementsAfterCopyPostToGroup.js +0 -190
- package/dist/scripts/fixExternalUserId.js +0 -24
- package/dist/scripts/fixGroupAccess.js +0 -16
- package/dist/scripts/fixGroupIdeasAndPointsCount.js +0 -49
- package/dist/scripts/fixNotificationSettings.js +0 -39
- package/dist/scripts/fixSurveyRadioBakedInSubCodes.js +0 -64
- package/dist/scripts/fixWrongUserIdForStatusUpdates.js +0 -49
- package/dist/scripts/gallery/exportGalleryData.js +0 -40
- package/dist/scripts/gallery/importGalleryForCommunity.js +0 -168
- package/dist/scripts/gallery/readJsonAndDownloadImagesVersion2.js +0 -55
- package/dist/scripts/gallery/refreshAcApiPostIdsForCommunity.js +0 -58
- package/dist/scripts/genderAnalysis.js +0 -63
- package/dist/scripts/genderAnalysisByStatus.js +0 -62
- package/dist/scripts/importAllLocalesFromLocalFolders.js +0 -55
- package/dist/scripts/importDomain.js +0 -1652
- package/dist/scripts/keys/addOidcToDomain.cjs +0 -61
- package/dist/scripts/landUseGame/export3Ddata.js +0 -162
- package/dist/scripts/listLanguagesForGroup.js +0 -54
- package/dist/scripts/loadTestCreateDummyContentForGroup.js +0 -27
- package/dist/scripts/makeRecursiveMapData.js +0 -103
- package/dist/scripts/mapping/community_map_csv.js +0 -145
- package/dist/scripts/moveCommunityToDomain.js +0 -22
- package/dist/scripts/moveGroupToCommunity.js +0 -23
- package/dist/scripts/movePostToGroup.js +0 -101
- package/dist/scripts/movePostsToGroupsRecountGroupFromUrl.js +0 -297
- package/dist/scripts/oldMovePostToGroup.js +0 -153
- package/dist/scripts/processCsvForPdfUrls.js +0 -37
- package/dist/scripts/processCsvForTranslationAndToxicity.js +0 -125
- package/dist/scripts/recount/recount_recursive_communities.js +0 -125
- package/dist/scripts/recountALLCommunityGroupCounts.js +0 -37
- package/dist/scripts/recountAll.js +0 -97
- package/dist/scripts/recountCommunitesFromUrl.js +0 -58
- package/dist/scripts/recountCommunity.js +0 -19
- package/dist/scripts/recountGroup.js +0 -218
- package/dist/scripts/recountGroupNoUserChange.js +0 -219
- package/dist/scripts/resetAllEndorsementsForGroup.js +0 -57
- package/dist/scripts/resetEnTranslationForGroup.js +0 -45
- package/dist/scripts/setAdminOnAll.cjs +0 -107
- package/dist/scripts/setDomainAdmin.cjs +0 -43
- package/dist/scripts/setDomainLocales.js +0 -33
- package/dist/scripts/setEarlQuestionIdOnGroup.cjs +0 -29
- package/dist/scripts/setLanguageOnGroupCommunitesFromUrl.js +0 -86
- package/dist/scripts/setMemberOfAll.js +0 -101
- package/dist/scripts/setNewUserForContentOfCommunity.js +0 -189
- package/dist/scripts/setOfficialStatusOnAllPostsForCommunity.js +0 -35
- package/dist/scripts/setUserOnAll.js +0 -101
- package/dist/scripts/showCategoryForGroup.js +0 -18
- package/dist/scripts/showOldActivityTypes.js +0 -14
- package/dist/scripts/showPostsMissingCategoryForGroup.js +0 -17
- package/dist/scripts/showStatuses.js +0 -17
- package/dist/scripts/showUniqueVotersInCommunity.js +0 -61
- package/dist/scripts/showUserAgentsAndIpsForEmails.js +0 -66
- package/dist/scripts/simpleExportForGroupsForCommunity.js +0 -46
- package/dist/scripts/simpleExportForPointsForCommunity.js +0 -82
- package/dist/scripts/simpleExportForPostsForCommunity.js +0 -61
- package/dist/scripts/testForEndorsments.js +0 -21
- package/dist/scripts/undeleteGroupAndAllContent.js +0 -151
- package/dist/scripts/undeletePost.js +0 -135
- package/dist/scripts/unlinkSsn.js +0 -23
- package/dist/scripts/updateFromAlthingi.js +0 -303
- package/dist/server.js +0 -3
- package/dist/utils/airbrake.cjs +0 -17
- package/dist/utils/cjsCodeReview.js +0 -99
- package/dist/utils/community_mapping_tools.cjs +0 -124
- package/dist/utils/copy_utils.cjs +0 -1399
- package/dist/utils/docx_utils.cjs +0 -464
- package/dist/utils/export_utils.cjs +0 -491
- package/dist/utils/i18n.cjs +0 -17
- package/dist/utils/is_valid_db_id.cjs +0 -28
- package/dist/utils/logger.cjs +0 -25
- package/dist/utils/loggerTs.js +0 -26
- package/dist/utils/manifest_generator.cjs +0 -104
- package/dist/utils/parse_domain.cjs +0 -16
- package/dist/utils/recount_utils.cjs +0 -415
- package/dist/utils/sharing_parameters.cjs +0 -111
- package/dist/utils/sitemap_generator.cjs +0 -286
- package/dist/utils/to_json.cjs +0 -14
- package/dist/utils/ypLanguages.js +0 -747
- package/dist/webSockets.js +0 -77
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
import { YpAgentProduct } from "../../agentProduct.js";
|
|
2
|
-
import { YpSubscriptionPlan } from "../../subscriptionPlan.js";
|
|
3
|
-
async function setupAgentProductsConfiguration() {
|
|
4
|
-
const competitionAgentWorkflow = {
|
|
5
|
-
currentStepIndex: 0,
|
|
6
|
-
steps: [
|
|
7
|
-
{
|
|
8
|
-
name: "Competitor Analysis Wide Search",
|
|
9
|
-
shortName: "Wide search",
|
|
10
|
-
description: "Wide search for competitor strategies and market positions.",
|
|
11
|
-
shortDescription: "Wide search for competitor strategies and market positions.",
|
|
12
|
-
agentClassUuid: "a1b2c3d4-e5f6-c7c8-a9c0-c1225354f516",
|
|
13
|
-
type: "agentOps",
|
|
14
|
-
stepBackgroundColor: "#ffdc2f",
|
|
15
|
-
stepTextColor: "#211e1c",
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
name: "Competitor Analysis People Review",
|
|
19
|
-
shortName: "Vet top 10 competitors",
|
|
20
|
-
description: "People review to vet top 10 key competitors",
|
|
21
|
-
shortDescription: "People review to vet top 10 key competitors",
|
|
22
|
-
agentClassUuid: "a1b2c3d4-e5f6-c7c8-a9c0-c1225354f516",
|
|
23
|
-
type: "engagmentFromOutputConnector",
|
|
24
|
-
stepBackgroundColor: "#e74c3c",
|
|
25
|
-
stepTextColor: "#ffffff",
|
|
26
|
-
emailCallForAction: "Start Vetting Competitors",
|
|
27
|
-
emailInstructions: "Use up 👍 and down 👎 thumbs to vet competitors. You can choose as many as you want but <b>only top 10 will go forward</b>, to the next round!"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
name: "Competitor Analysis Detailed Search",
|
|
31
|
-
shortName: "Detailed search",
|
|
32
|
-
description: "Detailed search for competitor strategies and market positions.",
|
|
33
|
-
shortDescription: "Detailed search for competitor strategies and market positions.",
|
|
34
|
-
agentClassUuid: "c6e99ac4-e5f6-c7c1-a1c0-c1ab53c4ff16",
|
|
35
|
-
type: "agentOps",
|
|
36
|
-
stepBackgroundColor: "#1e90ff",
|
|
37
|
-
stepTextColor: "#ffffff",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: "Competitor Analysis Comment on Key Competitors",
|
|
41
|
-
shortName: "Competitors comments",
|
|
42
|
-
description: "Comment on key competitors before creating report",
|
|
43
|
-
shortDescription: "Comment on key competitors before report",
|
|
44
|
-
agentClassUuid: "c6e99ac4-e5f6-c7c1-a1c0-c1ab53c4ff16",
|
|
45
|
-
type: "engagmentFromOutputConnector",
|
|
46
|
-
stepBackgroundColor: "#2ecc71",
|
|
47
|
-
stepTextColor: "#ffffff",
|
|
48
|
-
emailCallForAction: "Comment On Key Competitors",
|
|
49
|
-
emailInstructions: "View the details for key competitors and add your insights before the final report is created."
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: "Competitors Report",
|
|
53
|
-
shortName: "Competitor report",
|
|
54
|
-
description: "Report on the state of the market based on the competitors analysis.",
|
|
55
|
-
shortDescription: "Report on the state of the market based on the competitors analysis.",
|
|
56
|
-
agentClassUuid: "1cf3af64-a5f6-a7c1-91c1-51fb13c72f1a",
|
|
57
|
-
type: "agentOps",
|
|
58
|
-
stepBackgroundColor: "#d486da",
|
|
59
|
-
stepTextColor: "#ffffff",
|
|
60
|
-
emailCallForAction: "View the Competitor Report",
|
|
61
|
-
emailInstructions: "View the final report on the state of the market based on the competitors analysis."
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
};
|
|
65
|
-
const competitorAgentFreeTrial = await YpAgentProduct.findByPk(1);
|
|
66
|
-
if (competitorAgentFreeTrial) {
|
|
67
|
-
competitorAgentFreeTrial.set("configuration.workflow", competitionAgentWorkflow);
|
|
68
|
-
competitorAgentFreeTrial.changed("configuration", true);
|
|
69
|
-
await competitorAgentFreeTrial.save();
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
console.log("CompetitorAgentFreeTrial not found");
|
|
73
|
-
}
|
|
74
|
-
const competitorAgentPaid = await YpAgentProduct.findByPk(2);
|
|
75
|
-
if (competitorAgentPaid) {
|
|
76
|
-
competitorAgentPaid.set("configuration.workflow", competitionAgentWorkflow);
|
|
77
|
-
competitorAgentPaid.changed("configuration", true);
|
|
78
|
-
await competitorAgentPaid.save();
|
|
79
|
-
}
|
|
80
|
-
const fundingAgent = await YpAgentProduct.findByPk(6);
|
|
81
|
-
if (fundingAgent) {
|
|
82
|
-
const fundingAgentWorkflow = {
|
|
83
|
-
currentStepIndex: 0,
|
|
84
|
-
steps: [
|
|
85
|
-
{
|
|
86
|
-
name: "Funding Agent Wide Search",
|
|
87
|
-
shortName: "Wide Search",
|
|
88
|
-
description: "Wide search for investors and funding opportunities.",
|
|
89
|
-
shortDescription: "Wide search for investors and funding opportunities.",
|
|
90
|
-
agentClassUuid: "956e7f74-6fc6-4e01-81b4-098c193e6450",
|
|
91
|
-
type: "agentOps",
|
|
92
|
-
stepBackgroundColor: "#ffdc2f",
|
|
93
|
-
stepTextColor: "#211e1c"
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
name: "Funding Agent Select Top 20 Investors",
|
|
97
|
-
shortName: "Select top 20 investors",
|
|
98
|
-
description: "Select top 20 investors from the wide search results.",
|
|
99
|
-
shortDescription: "Select top 20 investors from the wide search results.",
|
|
100
|
-
agentClassUuid: "956e7f74-6fc6-4e01-81b4-098c193e6450",
|
|
101
|
-
type: "engagmentFromOutputConnector",
|
|
102
|
-
stepBackgroundColor: "#e74c3c",
|
|
103
|
-
stepTextColor: "#ffffff",
|
|
104
|
-
emailCallForAction: "Vet Investors",
|
|
105
|
-
emailInstructions: "Use up 👍 and down 👎 thumbs to vet investors. You can choose as many as you want but <b>only top 20 will go forward</b>, to the next round!"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: "Funding Agent Detailed Search",
|
|
109
|
-
shortName: "Detailed search",
|
|
110
|
-
description: "Detailed search for investors and funding opportunities.",
|
|
111
|
-
shortDescription: "Detailed search for investors and funding opportunities.",
|
|
112
|
-
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
113
|
-
type: "agentOps",
|
|
114
|
-
stepBackgroundColor: "#1e90ff",
|
|
115
|
-
stepTextColor: "#ffffff",
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
name: "Comment on Key Investors",
|
|
119
|
-
shortName: "Comment on investors",
|
|
120
|
-
description: "Comment on investors before creating report",
|
|
121
|
-
shortDescription: "Comment on investors before creating report",
|
|
122
|
-
agentClassUuid: "b36ffca6-7363-44be-bd55-40661210cf24",
|
|
123
|
-
type: "engagmentFromOutputConnector",
|
|
124
|
-
stepBackgroundColor: "#2ecc71",
|
|
125
|
-
stepTextColor: "#ffffff",
|
|
126
|
-
emailCallForAction: "Comment On Key Investors",
|
|
127
|
-
emailInstructions: "View the details for key investors and add your insights before the final report is created."
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
name: "Funding Agent Report",
|
|
131
|
-
shortName: "Funding report",
|
|
132
|
-
description: "Report on investors and funding opportunities.",
|
|
133
|
-
shortDescription: "Report on investors and funding opportunities.",
|
|
134
|
-
agentClassUuid: "1bbf8f86-0ffc-4356-aaa1-9cea04b78ec4",
|
|
135
|
-
type: "agentOps",
|
|
136
|
-
stepBackgroundColor: "#d486da",
|
|
137
|
-
stepTextColor: "#ffffff",
|
|
138
|
-
emailCallForAction: "View the Funding Report",
|
|
139
|
-
emailInstructions: "View the final report on investors and funding opportunities."
|
|
140
|
-
},
|
|
141
|
-
],
|
|
142
|
-
};
|
|
143
|
-
fundingAgent.set("configuration.workflow", fundingAgentWorkflow);
|
|
144
|
-
fundingAgent.changed("configuration", true);
|
|
145
|
-
await fundingAgent.save();
|
|
146
|
-
}
|
|
147
|
-
const fundingSubscriptionPlan = await YpSubscriptionPlan.findByPk(6);
|
|
148
|
-
if (fundingSubscriptionPlan) {
|
|
149
|
-
fundingSubscriptionPlan.set("configuration.structuredAnswersOverride", []);
|
|
150
|
-
fundingSubscriptionPlan.set("configuration.requiredStructuredQuestions", [
|
|
151
|
-
{
|
|
152
|
-
uniqueId: "businessDescription",
|
|
153
|
-
type: "textAreaLong",
|
|
154
|
-
description: "Detailed description of the business, this is critical for the agent to understand the business and provide accurate results.",
|
|
155
|
-
value: "",
|
|
156
|
-
maxLength: 7500,
|
|
157
|
-
required: true,
|
|
158
|
-
rows: 5,
|
|
159
|
-
charCounter: true,
|
|
160
|
-
text: "Business Description",
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
uniqueId: "investorGeographicFocus",
|
|
164
|
-
type: "textFieldLong",
|
|
165
|
-
description: "Geographic focus of the investors",
|
|
166
|
-
value: "",
|
|
167
|
-
maxLength: 250,
|
|
168
|
-
required: false,
|
|
169
|
-
rows: 1,
|
|
170
|
-
charCounter: true,
|
|
171
|
-
text: "Investor Geographic Focus",
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
uniqueId: "investorIndustryFocus",
|
|
175
|
-
type: "textFieldLong",
|
|
176
|
-
description: "Industry focus of the investors",
|
|
177
|
-
value: "",
|
|
178
|
-
maxLength: 250,
|
|
179
|
-
required: false,
|
|
180
|
-
rows: 1,
|
|
181
|
-
charCounter: true,
|
|
182
|
-
text: "Investor Industry Focus",
|
|
183
|
-
}
|
|
184
|
-
]);
|
|
185
|
-
fundingSubscriptionPlan.changed("configuration", true);
|
|
186
|
-
await fundingSubscriptionPlan.save();
|
|
187
|
-
}
|
|
188
|
-
else {
|
|
189
|
-
console.log("FundingSubscriptionPlan not found");
|
|
190
|
-
}
|
|
191
|
-
// Update subscription plans 2-5 to coming_soon
|
|
192
|
-
for (let planId = 2; planId <= 5; planId++) {
|
|
193
|
-
const subscriptionPlan = await YpSubscriptionPlan.findByPk(planId);
|
|
194
|
-
if (subscriptionPlan) {
|
|
195
|
-
subscriptionPlan.set("configuration.type", "coming_soon");
|
|
196
|
-
if (planId == 2) {
|
|
197
|
-
subscriptionPlan.set("configuration.type", "paid");
|
|
198
|
-
}
|
|
199
|
-
subscriptionPlan.changed("configuration", true);
|
|
200
|
-
await subscriptionPlan.save();
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
console.log(`SubscriptionPlan ${planId} not found`);
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
for (let planId = 1; planId <= 2; planId++) {
|
|
207
|
-
const subscriptionPlan = await YpSubscriptionPlan.findByPk(planId);
|
|
208
|
-
if (subscriptionPlan) {
|
|
209
|
-
subscriptionPlan.set("configuration.requiredStructuredQuestions", [
|
|
210
|
-
{
|
|
211
|
-
uniqueId: "businessDescription",
|
|
212
|
-
type: "textAreaLong",
|
|
213
|
-
description: "Detailed description of the business, this is critical for the agent to understand the business and provide accurate results.",
|
|
214
|
-
value: "",
|
|
215
|
-
maxLength: 7500,
|
|
216
|
-
required: true,
|
|
217
|
-
rows: 5,
|
|
218
|
-
charCounter: true,
|
|
219
|
-
text: "Business Description",
|
|
220
|
-
}
|
|
221
|
-
]);
|
|
222
|
-
subscriptionPlan.changed("configuration", true);
|
|
223
|
-
await subscriptionPlan.save();
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
console.log(`SubscriptionPlan ${planId} not found`);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
setupAgentProductsConfiguration();
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
// createAgentProductsAndPlans.ts
|
|
2
|
-
import { YpAgentProduct } from "../agentProduct.js";
|
|
3
|
-
import { YpSubscriptionPlan } from "../subscriptionPlan.js";
|
|
4
|
-
async function setupAgentProductsConfiguration() {
|
|
5
|
-
const CompetitorAgentFreeTrialPlan = await YpSubscriptionPlan.findByPk(1);
|
|
6
|
-
if (CompetitorAgentFreeTrialPlan) {
|
|
7
|
-
await CompetitorAgentFreeTrialPlan.update({
|
|
8
|
-
name: "Competitor Agent",
|
|
9
|
-
description: "Competitive reports give detailed insights into competitors' strategies, product changes, and market moves - all synthesized into actionable market intelligence for your business.",
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
const CompetitorAgentPlan = await YpSubscriptionPlan.findByPk(2);
|
|
13
|
-
if (CompetitorAgentPlan) {
|
|
14
|
-
await CompetitorAgentPlan.update({
|
|
15
|
-
name: "Competitor Agent",
|
|
16
|
-
description: "Competitive reports give detailed insights into competitors' strategies, product changes, and market moves - all synthesized into actionable market intelligence for your business.",
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
const LeadGenerationAgentPlan = await YpSubscriptionPlan.findByPk(3);
|
|
20
|
-
if (LeadGenerationAgentPlan) {
|
|
21
|
-
await LeadGenerationAgentPlan.update({
|
|
22
|
-
name: "Lead Generation Agent",
|
|
23
|
-
description: "Define your ideal customer, and receive curated lead lists you can sync to your CRM - turning potential prospects into qualified opportunities.",
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
const ProductInnovationAgentPlan = await YpSubscriptionPlan.findByPk(4);
|
|
27
|
-
if (ProductInnovationAgentPlan) {
|
|
28
|
-
await ProductInnovationAgentPlan.update({
|
|
29
|
-
name: "Lead Generation Agent",
|
|
30
|
-
description: "Define your ideal customer, and receive curated lead lists you can sync to your CRM - turning potential prospects into qualified opportunities.",
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
const CompetitorAgentFreeTrial = await YpAgentProduct.findByPk(1);
|
|
34
|
-
if (CompetitorAgentFreeTrial) {
|
|
35
|
-
const configuration = {
|
|
36
|
-
...CompetitorAgentFreeTrial.configuration,
|
|
37
|
-
avatar: {
|
|
38
|
-
systemPrompt: `You are the Competitor Agent. You are an expert in analyzing competitor strategies and market positions. You will perform the following steps:
|
|
39
|
-
|
|
40
|
-
1. Wide search for competitors: A wide search for competitors based on the provided business description.
|
|
41
|
-
|
|
42
|
-
2. Vet and vote top 10 competitors: The user's team reviews and votes on competitors from the wide search results.
|
|
43
|
-
|
|
44
|
-
3. Detailed search on key competitors: Perform detailed searches on the selected key competitors, gathering multi-dimensional data.
|
|
45
|
-
|
|
46
|
-
4. Add team insights about key competitors: Allow the user's team to add their insights and comments on key competitors.
|
|
47
|
-
|
|
48
|
-
5. Competitor analysis report: Generate a comprehensive report consolidating all data and insights, including actionable recommendations.
|
|
49
|
-
|
|
50
|
-
The output is a state-of-the-market competitor analysis report in DOCX formats.
|
|
51
|
-
|
|
52
|
-
Please guide the user through this process clearly and educate them about competitor analysis, your specialty.`,
|
|
53
|
-
imageUrl: "https://assets.evoly.ai/dl/754a1e727d768b1107826c1deb67b6ac--retina-1.png",
|
|
54
|
-
voiceName: "shimmer",
|
|
55
|
-
},
|
|
56
|
-
displayName: "Competitor Agent",
|
|
57
|
-
displayDescription: "Plan includes <span class='textBold'>1 run per month</span> and details for <span class='text-bold'>3 key competitors</span>.",
|
|
58
|
-
};
|
|
59
|
-
await CompetitorAgentFreeTrial.update({
|
|
60
|
-
configuration: configuration,
|
|
61
|
-
name: "Competitor Agent",
|
|
62
|
-
description: "Competitive reports give detailed insights into competitors' strategies, product changes, and market moves - all synthesized into actionable market intelligence for your business.",
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
const CompetitorAgent = await YpAgentProduct.findByPk(2);
|
|
66
|
-
if (CompetitorAgent) {
|
|
67
|
-
CompetitorAgent.configuration.avatar = {
|
|
68
|
-
...CompetitorAgent.configuration,
|
|
69
|
-
systemPrompt: `You are the Competitor Agent. You are an expert in analyzing competitor strategies and market positions. You will perform the following steps:
|
|
70
|
-
|
|
71
|
-
1. Wide search for competitors: A wide search for competitors based on the provided business description.
|
|
72
|
-
|
|
73
|
-
2. Vet and vote top 10 competitors: The user's team reviews and votes on competitors from the wide search results.
|
|
74
|
-
|
|
75
|
-
3. Detailed search on key competitors: Perform detailed searches on the selected key competitors, gathering multi-dimensional data.
|
|
76
|
-
|
|
77
|
-
4. Add team insights about key competitors: Allow the user's team to add their insights and comments on key competitors.
|
|
78
|
-
|
|
79
|
-
5. Competitor analysis report: Generate a comprehensive report consolidating all data and insights, including actionable recommendations.
|
|
80
|
-
|
|
81
|
-
The output is a state-of-the-market competitor analysis report in DOCX formats.
|
|
82
|
-
|
|
83
|
-
Please guide the user through this process clearly and educate them about competitor analysis, your specialty.
|
|
84
|
-
`,
|
|
85
|
-
imageUrl: "https://assets.evoly.ai/dl/754a1e727d768b1107826c1deb67b6ac--retina-1.png",
|
|
86
|
-
voiceName: "shimmer",
|
|
87
|
-
};
|
|
88
|
-
CompetitorAgent.configuration.displayName = "Competitor Agent";
|
|
89
|
-
CompetitorAgent.configuration.displayDescription =
|
|
90
|
-
"Plan includes <span class='textBold'>2 runs per month</span> and details for <span class='text-bold'>12 key competitors</span>.";
|
|
91
|
-
CompetitorAgent.changed("configuration", true);
|
|
92
|
-
await CompetitorAgent.save();
|
|
93
|
-
await CompetitorAgent.update({
|
|
94
|
-
name: "Competitor Agent",
|
|
95
|
-
description: "Competitive reports give detailed insights into competitors' strategies, product changes, and market moves - all synthesized into actionable market intelligence for your business.",
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
const leadGenerationAgent = await YpAgentProduct.findByPk(3);
|
|
99
|
-
if (leadGenerationAgent) {
|
|
100
|
-
await leadGenerationAgent.update({
|
|
101
|
-
...leadGenerationAgent.configuration,
|
|
102
|
-
description: "Define your ideal customer, and receive curated lead lists you can sync to your CRM - turning potential prospects into qualified opportunities.",
|
|
103
|
-
configuration: {
|
|
104
|
-
avatar: {
|
|
105
|
-
systemPrompt: `You are the Lead Generation Agent. You are an expert in generating leads and potential client contacts. You are given a business description and you need to generate leads and potential client contacts. You need to provide a report on the leads and potential client contacts.
|
|
106
|
-
|
|
107
|
-
There are five stages:
|
|
108
|
-
1. Wide Search: You need to search for leads and potential client contacts.
|
|
109
|
-
2. People Review: You need to prioritize the wide search results.
|
|
110
|
-
3. Detailed Search: You need to search for leads and potential client contacts in more detail.
|
|
111
|
-
4. Detailed Search People Review: You need to prioritize the detailed search results.
|
|
112
|
-
5. Leads and Potential Client Contacts Report: You need to provide a report on the leads and potential client contacts.
|
|
113
|
-
|
|
114
|
-
The output of the agent is a list of leads and potential client contacts in XLS format.
|
|
115
|
-
|
|
116
|
-
The full version of the agent includes 4 runs per month and up to 100 leads to generate each time.
|
|
117
|
-
|
|
118
|
-
You are a lead generation expert and you are very good at what you do, help educate the user about lead generation.
|
|
119
|
-
`,
|
|
120
|
-
imageUrl: "https://assets.evoly.ai/dl/f86bf2c221801b4c56d71b098c36ef54--retina-1.png",
|
|
121
|
-
voiceName: "ash",
|
|
122
|
-
},
|
|
123
|
-
displayName: "Lead Generation Agent",
|
|
124
|
-
displayDescription: "Plan includes <span class='textBold'>4 runs per month</span> and details for <span class='text-bold'>100 leads</span>.",
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
const productInnovationAgent = await YpAgentProduct.findByPk(4);
|
|
129
|
-
if (productInnovationAgent) {
|
|
130
|
-
await productInnovationAgent.update({
|
|
131
|
-
...productInnovationAgent.configuration,
|
|
132
|
-
name: "Product Innovation Agent",
|
|
133
|
-
description: "Fresh product ideas come with market context, user needs analysis, and implementation considerations - turning market gaps into new innovations.",
|
|
134
|
-
configuration: {
|
|
135
|
-
avatar: {
|
|
136
|
-
systemPrompt: `You are the Product Innovation Agent. You are an expert in generating innovative ideas for product processes. You are given a business description and you need to generate innovative ideas for product processes. You need to provide a report on the innovative ideas for product processes.
|
|
137
|
-
|
|
138
|
-
There are six stages:
|
|
139
|
-
1. Wide Search: You need to search for innovative ideas for product processes.
|
|
140
|
-
2. People Review: You need to prioritize the wide search results.
|
|
141
|
-
3. Detailed Search: You need to search for innovative ideas for product processes in more detail.
|
|
142
|
-
4. Detailed Search People Review: You need to prioritize the detailed search results.
|
|
143
|
-
5. Genetic Algorithm: The agent uses a genetic algorithm to generate innovative ideas for product processes.
|
|
144
|
-
6. Innovative Ideas for Product Processes Report: You need to provide a report on the innovative ideas for product processes.
|
|
145
|
-
|
|
146
|
-
The output of the agent is a list of innovative ideas for product processes in XLS format.
|
|
147
|
-
|
|
148
|
-
You are a product innovation expert and you are very good at what you do, help educate the user about product innovation.
|
|
149
|
-
`,
|
|
150
|
-
imageUrl: "https://assets.evoly.ai/dl/1d91f5bfb69446f57c678a4a3e873d35--retina-1.png",
|
|
151
|
-
voiceName: "coral",
|
|
152
|
-
},
|
|
153
|
-
displayName: "Product Innovation Agent",
|
|
154
|
-
displayDescription: "Plan includes <span class='textBold'>4 runs per month</span> and details for <span class='text-bold'>100 innovative ideas</span>.",
|
|
155
|
-
},
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
const marketingOpsAgent = await YpAgentProduct.findByPk(5);
|
|
159
|
-
if (marketingOpsAgent) {
|
|
160
|
-
await marketingOpsAgent.update({
|
|
161
|
-
...marketingOpsAgent.configuration,
|
|
162
|
-
description: "Choose from AI-generated blog posts, refine them to your taste, and watch as they automatically spread across your social channels - keeping your brand consistently visible and engaging.",
|
|
163
|
-
configuration: {
|
|
164
|
-
avatar: {
|
|
165
|
-
systemPrompt: `You are the Marketing Ops Agent. You are an expert in optimizing marketing operations and campaign strategies. You are given a business description and you need to optimize marketing operations and campaign strategies. You need to provide a report on the optimized marketing operations and campaign strategies.
|
|
166
|
-
|
|
167
|
-
Our comprehensive content creation and distribution workflow includes:
|
|
168
|
-
1. Automated Blog Creation with People Refinement
|
|
169
|
-
- AI-generated initial blog drafts
|
|
170
|
-
- People expert review and enhancement
|
|
171
|
-
- SEO optimization and content polishing
|
|
172
|
-
|
|
173
|
-
2. Multi-Format Content Transformation
|
|
174
|
-
- Converting blogs into AI-voiced podcasts using premium voice synthesis
|
|
175
|
-
- Creating engaging social media snippets and posts from blog content
|
|
176
|
-
- Generating AI video podcasts featuring dynamic AI avatars
|
|
177
|
-
- Synchronizing AI-generated visuals with voice content
|
|
178
|
-
|
|
179
|
-
3. Cross-Platform Distribution
|
|
180
|
-
- Coordinated publishing across all major social media platforms
|
|
181
|
-
- Content scheduling and timing optimization
|
|
182
|
-
- Performance tracking and analytics
|
|
183
|
-
|
|
184
|
-
The output of the agent includes:
|
|
185
|
-
- Professionally written blog posts
|
|
186
|
-
- High-quality AI-voiced podcast episodes
|
|
187
|
-
- Engaging video content with AI avatars
|
|
188
|
-
- Ready-to-publish social media content packages
|
|
189
|
-
- Comprehensive performance metrics and optimization recommendations
|
|
190
|
-
|
|
191
|
-
Each piece of content maintains brand consistency while being optimized for its specific platform and audience engagement.
|
|
192
|
-
|
|
193
|
-
You are a marketing expert and you are very good at what you do, help educate the user about marketing operations and campaign strategies.
|
|
194
|
-
`,
|
|
195
|
-
imageUrl: "https://assets.evoly.ai/dl/6f8757bfb637206ddae009597aa4ab6d--retina-1.png",
|
|
196
|
-
voiceName: "alloy",
|
|
197
|
-
},
|
|
198
|
-
displayName: "Marketing Ops Agent",
|
|
199
|
-
displayDescription: "Plan includes <span class='textBold'>8 runs per month</span> and details for <span class='text-bold'>100 pieces of content</span>.",
|
|
200
|
-
},
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
const fundingAgent = await YpAgentProduct.findByPk(6);
|
|
204
|
-
if (fundingAgent) {
|
|
205
|
-
await fundingAgent.update({
|
|
206
|
-
...fundingAgent.configuration,
|
|
207
|
-
description: "Potential investors are identified with details about their portfolio, investment focus, and recent activities - turning raw investor data into actionable opportunities.",
|
|
208
|
-
configuration: {
|
|
209
|
-
...fundingAgent.configuration,
|
|
210
|
-
avatar: {
|
|
211
|
-
systemPrompt: `You are the Funding Agent. You are an expert in identifying and analyzing funding opportunities and investment strategies. You are given a business description and you need to identify and analyze funding opportunities and investment strategies. You need to provide a report on the funding opportunities and investment strategies.
|
|
212
|
-
|
|
213
|
-
There are five stages:
|
|
214
|
-
1. Wide Search: You need to search for funding opportunities and investment strategies.
|
|
215
|
-
2. People Review: You need to prioritize the wide search results.
|
|
216
|
-
3. Detailed Search: You need to search for funding opportunities and investment strategies in more detail.
|
|
217
|
-
4. Detailed Search People Review: You need to prioritize the detailed search results.
|
|
218
|
-
5. Funding Opportunities and Investment Strategies Report: You need to provide a report on the funding opportunities and investment strategies.
|
|
219
|
-
|
|
220
|
-
The output of the agent is a list of funding opportunities and investment strategies in XLS format.
|
|
221
|
-
|
|
222
|
-
You are a funding expert and you are very good at what you do, help educate the user about funding and investment strategies.
|
|
223
|
-
`,
|
|
224
|
-
imageUrl: "https://assets.evoly.ai/dl/f80b64c1ab385e6f3ec0d3f552f38801--retina-1.png",
|
|
225
|
-
voiceName: "ballad",
|
|
226
|
-
},
|
|
227
|
-
displayName: "Funding Agent",
|
|
228
|
-
displayDescription: "Plan includes <span class='textBold'>2 runs per month</span> and details for <span class='text-bold'>20 funding opportunities</span>.",
|
|
229
|
-
},
|
|
230
|
-
});
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
setupAgentProductsConfiguration();
|