async def METHOD_NAME():
    # [START analyze_orchestration_app_conv_response]
    # import libraries
    import os
    from azure.core.credentials import AzureKeyCredential
    from azure.ai.language.conversations.aio import ConversationAnalysisClient
    # get secrets
    clu_endpoint = os.environ["AZURE_CONVERSATIONS_ENDPOINT"]
    clu_key = os.environ["AZURE_CONVERSATIONS_KEY"]
    project_name = os.environ["AZURE_CONVERSATIONS_WORKFLOW_PROJECT_NAME"]
    deployment_name = os.environ["AZURE_CONVERSATIONS_WORKFLOW_DEPLOYMENT_NAME"]
    # analyze query
    client = ConversationAnalysisClient(clu_endpoint, AzureKeyCredential(clu_key))
    async with client:
        query = "Send an email to Carol about the tomorrow's demo"
        result = await client.analyze_conversation(
            task={
                "kind": "Conversation",
                "analysisInput": {
                    "conversationItem": {
                        "participantId": "1",
                        "id": "1",
                        "modality": "text",
                        "language": "en",
                        "text": query
                    },
                    "isLoggingEnabled": False
                },
                "parameters": {
                    "projectName": project_name,
                    "deploymentName": deployment_name,
                    "verbose": True
                }
            }
        )
    # view result
    print(f"query: {result['result']['query']}")
    print(f"project kind: {result['result']['prediction']['projectKind']}\n")
    # top intent
    top_intent = result['result']['prediction']['topIntent']
    print(f"top intent: {top_intent}")
    top_intent_object = result['result']['prediction']['intents'][top_intent]
    print(f"confidence score: {top_intent_object['confidenceScore']}")
    print(f"project kind: {top_intent_object['targetProjectKind']}")
    # conversation result
    if top_intent_object['targetProjectKind'] == "Conversation":
        print("\nview conversation result:")
        print(f"\ntop intent: {top_intent_object['result']['prediction']['topIntent']}")
        print(f"category: {top_intent_object['result']['prediction']['intents'][0]['category']}")
        print(f"confidence score: {top_intent_object['result']['prediction']['intents'][0]['confidenceScore']}\n")
        print("\nview entities:")
        for entity in top_intent_object['result']['prediction']['entities']:
            print(f"\ncategory: {entity['category']}")
            print(f"text: {entity['text']}")
            print(f"confidence score: {entity['confidenceScore']}")
            if "resolutions" in entity:
                print("resolutions")
                for resolution in entity['resolutions']:
                    print(f"kind: {resolution['resolutionKind']}")
                    print(f"value: {resolution['value']}")
            if "extraInformation" in entity:
                print("extra info")
                for data in entity['extraInformation']:
                    print(f"kind: {data['extraInformationKind']}")
                    if data['extraInformationKind'] == "ListKey":
                        print(f"key: {data['key']}")
                    if data['extraInformationKind'] == "EntitySubtype":
                        print(f"value: {data['value']}")
    # [END analyze_orchestration_app_conv_response]