curl --request POST \ --url https://api-lr.agent.ai/v1/action/save_to_file \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "file_type": "pdf", "body": "# Sample Document\n\nThis is a sample document content that will be saved to a file.", "output_variable_name": "saved_file"}'
curl --request POST \ --url https://api-lr.agent.ai/v1/action/save_to_file \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "file_type": "pdf", "body": "# Sample Document\n\nThis is a sample document content that will be saved to a file.", "output_variable_name": "saved_file"}'