batch_get_intent_for_profile
async
¶
batch_get_intent_for_profile(
domain_name: name,
intent_domain: IntentDomain,
intents: IntentTypeList,
key_name: BatchGetIntentForProfileRequestKeyNameString,
key_values: KeyValues,
*,
config_overrides: Optional[AsyncCustomerProfilesClientConfig] = None,
) -> BatchGetIntentForProfileResponse
Returns intents for a profile. Predictive Intent analyzes the recent web clickstream activity of the profile to generate the requested intents. The profile is identified using a search key, which consists of a KeyName and a KeyValues list.
The search key must match exactly one profile. If no profile matches the search key, the operation returns a ResourceNotFoundException. If more than one profile matches the search key, the operation returns a BadRequestException.
The operation supports partial success. Intents that can't be generated, for example because the intent type isn't enabled in the intent definition or the profile doesn't have enough recent activity, are returned in Errors.
Parameters:
-
domain_name(name) –The unique name of the Customer Profiles domain.
-
intent_domain(IntentDomain) –The intent domain of the intent definition. The only supported value is
DEFAULT. -
intents(IntentTypeList) –A list of intent types to generate. Intent types that aren't enabled in the intent definition are returned in
Errorswith theINTENT_NOT_ENABLEDerror code. -
key_name(BatchGetIntentForProfileRequestKeyNameString) –A searchable identifier of a customer profile. You can use a predefined key, such as
_profileId,_phone, or_email, or a custom-defined key. For more information, see Key definitions in Customer Profiles object type mappings. -
key_values(KeyValues) –A list of key values. Provide one value for each field of the search key.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
BadRequestException–The input you provided is invalid.
-
InternalServerException–An internal service error occurred.
-
ResourceNotFoundException–The requested resource does not exist, or access was denied.
-
ThrottlingException–You exceeded the maximum number of requests.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_customer_profiles/_services/async_customer_profiles.py
717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 | |