You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: hooks_controller.rb
    path of file: ./repos/chaskiq/app/controllers/api/v1
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "open-uri"

class Api::V1::HooksController < ActionController::API
  include MessageApis::Helpers
  include Action
    
  def handle_campaigns_recipient(mail)
    recipient = mail.recipients.first
    campaign = Campaign.decode_email(recipient)
    return if campaign.nil?

    app = campaign.app
    create_conversation_from_incoming(app, mail)
  end