The NLPearl Python wrapper provides a simple and intuitive way to interact with the NLPearl API directly from your Python applications. This package simplifies the integration of NLPearl’s conversational AI capabilities into your projects.
import nlpearl as pearl# Set your API keypearl.api_key = "your_api_key_here"# Retrieve account informationaccount_info = pearl.Account.get_account()print(account_info)
import nlpearl as pearl# Set your API keypearl.api_key = "your_api_key_here"# Define the outbound ID and the phone number to calloutbound_id = "your_outbound_id"phone_number = "+1234567890"# Make an outbound callcall_response = pearl.Outbound.make_call( outbound_id, to=phone_number, call_data={"firstName": "John", "lastName": "Doe"})print(call_response)
These examples demonstrate how easy it is to integrate NLPearl’s services into your Python applications using the nlpearl package.