@xuda.io/account_module 1.2.2230 → 1.2.2231
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/index.mjs +7 -0
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -2060,6 +2060,8 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2060
2060
|
profile_avatar_stat: 0,
|
|
2061
2061
|
};
|
|
2062
2062
|
|
|
2063
|
+
|
|
2064
|
+
|
|
2063
2065
|
if (!is_spam) {
|
|
2064
2066
|
if (account_type === 'personal' || contact_obj?.business_has_person) {
|
|
2065
2067
|
contact_obj.person_info = await ai_ms.get_person_info(uid, contact_obj.name, contact_obj.email, account_profile_info, metadata?.summarized_body, { light: true });
|
|
@@ -2067,6 +2069,11 @@ export const add_contact = async function (req, job_id, headers) {
|
|
|
2067
2069
|
contact_obj.name = await ai_ms.get_name_from_email_addr(uid, contact_obj.email, account_profile_info);
|
|
2068
2070
|
}
|
|
2069
2071
|
}
|
|
2072
|
+
|
|
2073
|
+
const conversation_obj = await ai_ms.create_openai_conversation();
|
|
2074
|
+
contact_obj.contact_reference_conversation_id= conversation_obj.id,
|
|
2075
|
+
|
|
2076
|
+
|
|
2070
2077
|
} else {
|
|
2071
2078
|
if (!contact_obj.name) {
|
|
2072
2079
|
contact_obj.name = '';
|