1a. Explanation of Python Code Step
Last updated
Last updated
Simplifying the Code Step
Despite its technical appearance, the code step in Zapier has been simplified to mainly involve copy-pasting and filling in different values.
Utilizing 'Code by Zapier' Step
This step is used after everything in the 'ingest' part of the process. It involves running Python code.
Guidance on Usage
The speaker encourages pausing and revisiting sections of the tutorial as needed, emphasizing the ease of the process.
Mapping Input Data
The tutorial focuses on mapping specific fields like message, phone, and first name in the input data to the code.
Extracting User Query Information
The 'message' field involves dropping in the user's question, which will be sent to Maax AI for processing.
Additional Data Fields
Other data fields like phone and first name are also sent over. The user has the option to add more information like email and Instagram based on their needs.
API Key Handling
The API key is discussed, with a recommendation to use 'storage by Zap' in Zapier for better security, instead of directly showing API keys.
Setting up Sales Automation and AI ID
The user selects their sales automation platform and inputs the AI ID from their dashboard, which links the specific version of AI to the Zapier step.
Establishing Personalized Responses
Different AI IDs may represent different use cases, each driving a unique goal, thus establishing different 'personalities' for the responses.
Setting Up Follow-Up URLs
The tutorial includes mapping webhooks from Zapier in the body response, which is crucial for sending responses to Zapier triggers.
Finalizing the Step and Testing
After setting up, a test is run to ensure that the output is successful and that the data is correctly sent to Maax AI.